Inherits rpki::publication::control_elt.
Inherited by irbe_cli.config_elt.
Public Member Functions | |
def | fetch |
def | serve_fetch_one_maybe |
def | serve_set |
def | startElement |
Public Attributes | |
config_id | |
Static Public Attributes | |
tuple | attributes = ("action", "tag") |
XML attributes for this element. | |
string | element_name = "config" |
tuple | elements = ("bpki_crl",) |
XML elements contained by this element. | |
tuple | sql_template = rpki.sql.template("config", "config_id", ("bpki_crl", rpki.x509.CRL)) |
int | wired_in_config_id = 1 |
<config/> element. This is a little weird because there should never be more than one row in the SQL config table, but we have to put the BPKI CRL somewhere and SQL is the least bad place available. So we reuse a lot of the SQL machinery, but we nail config_id at 1, we don't expose it in the XML protocol, and we only support the get and set actions.
Definition at line 61 of file publication.py.
def rpki.publication.config_elt.fetch | ( | cls, | ||
gctx | ||||
) |
Fetch the config object from SQL. This requires special handling because of the weird way we treat config_id.
Definition at line 89 of file publication.py.
def rpki.publication.config_elt.serve_fetch_one_maybe | ( | self | ) |
Find the config object on which a get or set method should operate.
Definition at line 106 of file publication.py.
def rpki.publication.config_elt.serve_set | ( | self, | ||
r_msg, | ||||
cb, | ||||
eb | ||||
) |
Handle a set action. This requires special handling because config doesn't support the create method.
Reimplemented from rpki.xml_utils.data_elt.
Definition at line 96 of file publication.py.
def rpki.publication.config_elt.startElement | ( | self, | ||
stack, | ||||
name, | ||||
attrs | ||||
) |
StartElement() handler for config object. This requires special handling because of the weird way we treat config_id.
Reimplemented from rpki.xml_utils.base_elt.
Definition at line 80 of file publication.py.
tuple rpki.publication.config_elt.attributes = ("action", "tag") [static] |
XML attributes for this element.
Reimplemented from rpki.xml_utils.base_elt.
Definition at line 72 of file publication.py.
Definition at line 86 of file publication.py.
string rpki.publication.config_elt.element_name = "config" [static] |
Definition at line 73 of file publication.py.
tuple rpki.publication.config_elt.elements = ("bpki_crl",) [static] |
XML elements contained by this element.
Reimplemented from rpki.xml_utils.base_elt.
Definition at line 74 of file publication.py.
tuple rpki.publication.config_elt.sql_template = rpki.sql.template("config", "config_id", ("bpki_crl", rpki.x509.CRL)) [static] |
Definition at line 76 of file publication.py.
int rpki.publication.config_elt.wired_in_config_id = 1 [static] |
Definition at line 78 of file publication.py.