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") |
string | element_name = "config" |
tuple | elements = ("bpki_crl",) |
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.
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.
Definition at line 80 of file publication.py.
tuple rpki.publication.config_elt.attributes = ("action", "tag") [static] |
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] |
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.