RPKI Engine  1.0
Public Member Functions | Static Private Attributes
rpki::resource_set::resource_range_ip Class Reference
Inheritance diagram for rpki::resource_set::resource_range_ip:
Inheritance graph
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)
def rpki::resource_set::resource_range_ip::chop_into_prefixes (   self,
  result 
)
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.

Referenced by chop_into_prefixes().

Here is the caller graph for this function:

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.

Referenced by rpki::resource_set::resource_set::__init__(), and rpki::resource_set::roa_prefix_set::__init__().

Here is the caller graph for this function:

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.

References rpki::resource_set::resource_range_as::datum_type, rpki::resource_set::resource_range_ipv4::datum_type, rpki::resource_set::resource_range_ipv6::datum_type, rpki::resource_set::resource_range::max, rpki::resource_set::roa_prefix::max(), rpki::resource_set::resource_range::min, rpki::resource_set::resource_range_as::min, and rpki::resource_set::roa_prefix::min().

Referenced by __str__(), chop_into_prefixes(), and to_rfc3779_tuple().

Here is the call graph for this function:

Here is the caller graph for this function:

def rpki::resource_set::resource_range_ip::to_rfc3779_tuple (   self)

Member Data Documentation

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 Properties