RPKI Engine  1.0
Public Member Functions
rpki::resource_set::roa_prefix_set Class Reference
Inheritance diagram for rpki::resource_set::roa_prefix_set:
Inheritance graph
Collaboration diagram for rpki::resource_set::roa_prefix_set:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def __str__
def from_sql
def parse_str
def to_resource_set
def to_roa_tuple

Detailed Description

Set of ROA prefixes, analogous to the resource_set_ip class.

Definition at line 921 of file resource_set.py.


Constructor & Destructor Documentation

def rpki::resource_set::roa_prefix_set::__init__ (   self,
  ini = None 
)

Member Function Documentation

def rpki::resource_set::roa_prefix_set::__str__ (   self)
Convert a ROA prefix set to string format.

Definition at line 939 of file resource_set.py.

def rpki::resource_set::roa_prefix_set::from_sql (   cls,
  sql,
  query,
  args = None 
)
Create ROA prefix set from an SQL query.

sql is an object that supports execute() and fetchall() methods
like a DB API 2.0 cursor object.

query is an SQL query that returns a sequence of (prefix,
prefixlen, max_prefixlen) triples.

Definition at line 971 of file resource_set.py.

def rpki::resource_set::roa_prefix_set::parse_str (   cls,
  s 
)
Parse ROA prefix from text (eg, an XML attribute).
This method is a backwards compatability shim.

Definition at line 946 of file resource_set.py.

Referenced by __init__().

Here is the caller graph for this function:

def rpki::resource_set::roa_prefix_set::to_resource_set (   self)
Convert a ROA prefix set to a resource set.  This is an
irreversable transformation.  We have to compute a union here
because ROA prefix sets can include overlaps, while RFC 3779
resource sets cannot.  This is ugly, and there is almost certainly
a more efficient way to do this, but start by getting the output
right before worrying about making it fast or pretty.

Definition at line 953 of file resource_set.py.

References rpki::resource_set::roa_prefix_set_ipv4::resource_set_type, and rpki::resource_set::roa_prefix_set_ipv6::resource_set_type.

def rpki::resource_set::roa_prefix_set::to_roa_tuple (   self)
Convert ROA prefix set into tuple format used by ROA ASN.1
encoder.  This is a variation on the format used in RFC 3779.

Definition at line 986 of file resource_set.py.

References rpki::resource_set::roa_prefix_set_ipv4::resource_set_type, and rpki::resource_set::roa_prefix_set_ipv6::resource_set_type.


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