rpki.resource_set.roa_prefix_set Class Reference

Inheritance diagram for rpki.resource_set.roa_prefix_set:

Inheritance 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 642 of file resource_set.py.


Member Function Documentation

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

Initialize a ROA prefix set.

Definition at line 645 of file resource_set.py.

def rpki.resource_set.roa_prefix_set.__str__ (   self  ) 

Convert a ROA prefix set to string format.

Definition at line 658 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 (address,
prefixlen, max_prefixlen) triples.

Definition at line 679 of file resource_set.py.

def rpki.resource_set.roa_prefix_set.parse_str (   self,
  x 
)

Parse ROA prefix from text (eg, an XML attribute).

Definition at line 662 of file resource_set.py.

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.

Definition at line 672 of file resource_set.py.

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 693 of file resource_set.py.


The documentation for this class was generated from the following file:

Generated on Mon Jun 16 22:22:52 2008 for RPKI Engine by  doxygen 1.5.5