RPKI Engine 1.0
|
Public Member Functions | |
def | bsc |
def | make_reply_clone_hook |
def | self |
def | serve_fetch_all |
def | serve_fetch_handle |
def | serve_fetch_one_maybe |
def | serve_pre_save_hook |
Static Public Attributes | |
tuple | handles = () |
self_handle = None | |
self_id = None |
Virtual class for top-level left-right protocol data elements.
Definition at line 50 of file left_right.py.
def rpki.left_right.data_elt.bsc | ( | self | ) |
Return BSC object to which this object links.
Definition at line 68 of file left_right.py.
def rpki.left_right.data_elt.make_reply_clone_hook | ( | self, | |
r_pdu | |||
) |
Set handles when cloning, including _id -> _handle translation.
Reimplemented from rpki.xml_utils.data_elt.
Definition at line 74 of file left_right.py.
def rpki.left_right.data_elt.self | ( | self | ) |
Fetch self object to which this object links.
Definition at line 61 of file left_right.py.
def rpki.left_right.data_elt.serve_fetch_all | ( | self | ) |
Find the objects on which a list method should operate.
Reimplemented in rpki.left_right.self_elt.
Definition at line 105 of file left_right.py.
def rpki.left_right.data_elt.serve_fetch_handle | ( | cls, | |
gctx, | |||
self_id, | |||
handle | |||
) |
Find an object based on its handle.
Reimplemented in rpki.left_right.self_elt.
Definition at line 90 of file left_right.py.
def rpki.left_right.data_elt.serve_fetch_one_maybe | ( | self | ) |
Find the object on which a get, set, or destroy method should operate, or which would conflict with a create method.
Reimplemented in rpki.left_right.self_elt.
Definition at line 96 of file left_right.py.
def rpki.left_right.data_elt.serve_pre_save_hook | ( | self, | |
q_pdu, | |||
r_pdu, | |||
cb, | |||
eb | |||
) |
Hook to do _handle => _id translation before saving. self is always the object to be saved to SQL. For create operations, self and q_pdu are be the same object; for set operations, self is the pre-existing object from SQL and q_pdu is the set request received from the the IRBE.
Reimplemented from rpki.xml_utils.data_elt.
Reimplemented in rpki.left_right.bsc_elt.
Definition at line 112 of file left_right.py.
tuple rpki.left_right.data_elt.handles = () [static] |
Reimplemented in rpki.left_right.self_elt, rpki.left_right.bsc_elt, rpki.left_right.repository_elt, rpki.left_right.parent_elt, and rpki.left_right.child_elt.
Definition at line 55 of file left_right.py.
rpki.left_right.data_elt.self_handle = None [static] |
Definition at line 58 of file left_right.py.
rpki.left_right.data_elt.self_id = None [static] |
Definition at line 57 of file left_right.py.