Public Member Functions | Static Private Attributes

rpki.resource_set.resource_range_ip Class Reference

Inherits rpki::resource_set::resource_range.

Inherited by rpki.resource_set.resource_range_ipv4, and rpki.resource_set.resource_range_ipv6.

Collaboration diagram for rpki.resource_set.resource_range_ip:
Collaboration graph

List of all members.

Public Member Functions

def __str__
def chop_into_prefixes
def from_strings
def make_prefix
def parse_str
def prefixlen
def to_rfc3779_tuple

Static Private Attributes

 _prefixlen = prefixlen

Detailed Description

Range of (generic) IP addresses.

Prefixes are converted to ranges on input, and ranges that can be
represented as prefixes are written as prefixes on output.

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

Definition at line 131 of file resource_set.py.


Member Function Documentation

def rpki.resource_set.resource_range_ip.__str__ (   self  ) 
Convert a resource_range_ip to string format.

Definition at line 162 of file resource_set.py.

def rpki.resource_set.resource_range_ip.chop_into_prefixes (   self,
  result 
)
Chop up a resource_range_ip into ranges that can be represented as
prefixes.

Definition at line 207 of file resource_set.py.

def rpki.resource_set.resource_range_ip.from_strings (   cls,
  a,
  b = None 
)
Construct IP address range from strings.

Definition at line 231 of file resource_set.py.

def rpki.resource_set.resource_range_ip.make_prefix (   cls,
  prefix,
  prefixlen 
)
Construct a resource range corresponding to a prefix.

Definition at line 197 of file resource_set.py.

def rpki.resource_set.resource_range_ip.parse_str (   cls,
  x 
)
Parse IP address range or prefix from text (eg, XML attributes).

Definition at line 184 of file resource_set.py.

def rpki.resource_set.resource_range_ip.prefixlen (   self  ) 
Determine whether a resource_range_ip can be expressed as a
prefix.  Returns prefix length if it can, otherwise raises
MustBePrefix exception.

Definition at line 142 of file resource_set.py.

def rpki.resource_set.resource_range_ip.to_rfc3779_tuple (   self  ) 
Convert a resource_range_ip to tuple format for RFC 3779 ASN.1
encoding.

Definition at line 171 of file resource_set.py.


Member Data Documentation

rpki.resource_set.resource_range_ip._prefixlen = prefixlen [static, private]

Definition at line 160 of file resource_set.py.


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