RPKI Engine 1.0
|
Public Member Functions | |
def | __init__ |
def | close |
def | update |
Public Attributes | |
db |
Front-end to the IRDB. This is broken out from class main so that other applications (namely, the portal-gui) can reuse it.
def rpki.myrpki.IRDB.__init__ | ( | self, | |
cfg | |||
) |
def rpki.myrpki.IRDB.close | ( | self | ) |
def rpki.myrpki.IRDB.update | ( | self, | |
handle, | |||
roa_requests, | |||
children, | |||
ghostbusters = None |
|||
) |
Update the IRDB for a given resource handle. Removes all existing data and replaces it with that specified in the argument list. The "roa_requests" argument is a sequence of tuples of the form (asID, v4_addresses, v6_addresses), where "v*_addresses" are instances of rpki.resource_set.roa_prefix_set_ipv*. The "children" argument is a sequence of tuples of the form (child_handle, asns, v4addrs, v6addrs, valid_until), where "asns" is an instance of rpki.resource_set.resource_set_asn, "v*addrs" are instances of rpki.resource_set.resource_set_ipv*, and "valid_until" is an instance of rpki.sundial.datetime. The "ghostbusters" argument is a sequence of tuples of the form (parent_handle, vcard_string). "parent_handle" may be value None, in which case the specified vcard object will be used for all parents.