RPKI Engine  1.0
Public Member Functions | Public Attributes
rpki::myrpki::IRDB Class Reference
Inheritance diagram for rpki::myrpki::IRDB:
Inheritance graph
Collaboration diagram for rpki::myrpki::IRDB:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def close
def update

Public Attributes

 db

Detailed Description

Front-end to the IRDB.  This is broken out from class main so
that other applications (namely, the portal-gui) can reuse it.

Definition at line 924 of file myrpki.py.


Constructor & Destructor Documentation

def rpki::myrpki::IRDB::__init__ (   self,
  cfg 
)
Opens a new connection to the IRDB, using the configuration
information from a rpki.config.parser object.

Definition at line 929 of file myrpki.py.


Member Function Documentation

def rpki::myrpki::IRDB::close (   self)
Close the connection to the IRDB.

Definition at line 1028 of file myrpki.py.

Referenced by rpki::http::http_stream::handle_error(), and rpki::http::http_stream::handle_timeout().

Here is the caller graph for this function:

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.

Definition at line 943 of file myrpki.py.


Member Data Documentation

Definition at line 932 of file myrpki.py.

Referenced by rpki::sql::session::close().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties