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

List of all members.

Public Member Functions

def __eq__
def __init__
def __ne__
def __str__
def empty
def from_inheritance
def from_rfc3779_tuples
def intersection
def oversized
def undersized
def union

Public Attributes

 asn
 Set of Autonomous System Number resources.
 v4
 Set of IPv4 resources.
 v6
 Set of IPv6 resources.
 valid_until
 Expiration date of resources, for setting certificate notAfter field.

Detailed Description

Container to simplify passing around the usual triple of ASN, IPv4,
and IPv6 resource sets.

Definition at line 665 of file resource_set.py.


Constructor & Destructor Documentation

def rpki::resource_set::resource_bag::__init__ (   self,
  asn = None,
  v4 = None,
  v6 = None,
  valid_until = None 
)

Definition at line 683 of file resource_set.py.


Member Function Documentation

def rpki::resource_set::resource_bag::__eq__ (   self,
  other 
)
def rpki::resource_set::resource_bag::__ne__ (   self,
  other 
)

Definition at line 756 of file resource_set.py.

def rpki::resource_set::resource_bag::__str__ (   self)
def rpki::resource_set::resource_bag::empty (   self)
True iff all resource sets in this bag are empty.

Definition at line 744 of file resource_set.py.

References rpki::myrpki::roa_request::asn, asn, rpki::left_right::list_resources_elt::asn, rpki::myrpki::roa_request::v4, rpki::myrpki::child::v4, v4, rpki::myrpki::roa_request::v6, rpki::myrpki::child::v6, and v6.

Referenced by rpki::x509::DER_object::check().

Here is the caller graph for this function:

def rpki::resource_set::resource_bag::from_inheritance (   cls)
def rpki::resource_set::resource_bag::from_rfc3779_tuples (   cls,
  exts 
)
Build a resource_bag from intermediate form generated by RFC 3779
ASN.1 decoder.

Definition at line 721 of file resource_set.py.

def rpki::resource_set::resource_bag::intersection (   self,
  other 
)
Compute intersection with another resource_bag.  valid_until
attribute (if any) inherits from self.

Definition at line 759 of file resource_set.py.

References valid_until, and rpki::left_right::list_resources_elt::valid_until.

def rpki::resource_set::resource_bag::oversized (   self,
  other 
)
True iff self is oversized with respect to other.

Definition at line 689 of file resource_set.py.

def rpki::resource_set::resource_bag::undersized (   self,
  other 
)
def rpki::resource_set::resource_bag::union (   self,
  other 
)
Compute union with another resource_bag.  valid_until attribute
(if any) inherits from self.

Definition at line 769 of file resource_set.py.

References valid_until, and rpki::left_right::list_resources_elt::valid_until.


Member Data Documentation

Set of Autonomous System Number resources.

Definition at line 683 of file resource_set.py.

Referenced by __eq__(), rpki::rpkid::roa_obj::__repr__(), __str__(), empty(), from_inheritance(), rpki::rpkid::roa_obj::generate(), and undersized().

Set of IPv4 resources.

Definition at line 683 of file resource_set.py.

Referenced by __eq__(), __str__(), empty(), from_inheritance(), and undersized().

Set of IPv6 resources.

Definition at line 683 of file resource_set.py.

Referenced by __eq__(), __str__(), empty(), from_inheritance(), and undersized().

Expiration date of resources, for setting certificate notAfter field.

Definition at line 683 of file resource_set.py.

Referenced by __eq__(), intersection(), and union().


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