rpki.resource_set.roa_prefix Class Reference

Inheritance diagram for rpki.resource_set.roa_prefix:

Inheritance graph

List of all members.

Public Member Functions

def __cmp__
def __init__
def __str__
def max
def min
def to_resource_range
def to_roa_tuple

Public Attributes

 address
 Address portion of prefix.
 max_prefixlen
 Maxmimum prefix length.
 prefixlen
 (Minimum) prefix length.


Detailed Description

ROA prefix.  This is similar to the resource_range_ip class, but
differs in that it only represents prefixes, never ranges, and
includes the maximum prefix length as an additional value.

This is a virtual class, you probably don't want to use it directly.

Definition at line 557 of file resource_set.py.


Member Function Documentation

def rpki.resource_set.roa_prefix.__cmp__ (   self,
  other 
)

Compare two ROA prefix objects.  Comparision is based on
address, prefixlen, and max_prefixlen, in that order.

Definition at line 586 of file resource_set.py.

def rpki.resource_set.roa_prefix.__init__ (   self,
  address,
  prefixlen,
  max_prefixlen = None 
)

Initialize a ROA prefix.  max_prefixlen is optional and
defaults to prefixlen.  max_prefixlen must not be smaller than
prefixlen.

Definition at line 574 of file resource_set.py.

def rpki.resource_set.roa_prefix.__str__ (   self  ) 

Convert a ROA prefix to string format.

Definition at line 598 of file resource_set.py.

def rpki.resource_set.roa_prefix.max (   self  ) 

Return highest address covered by prefix.

Definition at line 616 of file resource_set.py.

def rpki.resource_set.roa_prefix.min (   self  ) 

Return lowest address covered by prefix.

Definition at line 612 of file resource_set.py.

def rpki.resource_set.roa_prefix.to_resource_range (   self  ) 

Convert this ROA prefix to the equivilent resource_range_ip
object.  This is an irreversable transformation because it loses
the max_prefixlen attribute, nothing we can do about that.

Definition at line 605 of file resource_set.py.

def rpki.resource_set.roa_prefix.to_roa_tuple (   self  ) 

Convert a resource_range_ip to tuple format for ROA ASN.1 encoding.

Definition at line 621 of file resource_set.py.


Member Data Documentation

Address portion of prefix.

Definition at line 582 of file resource_set.py.

Maxmimum prefix length.

Definition at line 584 of file resource_set.py.

(Minimum) prefix length.

Definition at line 583 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