Public Member Functions | |
def | __init__ |
def | __str__ |
def | contains |
def | difference |
def | from_sql |
def | intersection |
def | issubset |
def | issuperset |
def | symmetric_difference |
def | union |
Static Public Attributes | |
inherit = False | |
Boolean indicating whether this resource_set uses RFC 3779 inheritance. | |
Private Member Functions | |
def | _comm |
Generic resource set. This is a list subclass containing resource ranges. This is a virtual class. You probably don't want to use it directly.
Definition at line 162 of file resource_set.py.
def rpki.resource_set.resource_set.__init__ | ( | self, | ||
ini = None | ||||
) |
def rpki.resource_set.resource_set.__str__ | ( | self | ) |
def rpki.resource_set.resource_set._comm | ( | self, | ||
other | ||||
) | [private] |
Like comm(1), sort of. Returns a tuple of three resource sets: resources only in self, resources only in other, and resources in both. Used (not very efficiently) as the basis for most set operations on resource sets.
Definition at line 206 of file resource_set.py.
def rpki.resource_set.resource_set.contains | ( | self, | ||
item | ||||
) |
def rpki.resource_set.resource_set.difference | ( | self, | ||
other | ||||
) |
def rpki.resource_set.resource_set.from_sql | ( | cls, | ||
sql, | ||||
query, | ||||
args = None | ||||
) |
Create resource 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 (min, max) pairs.
Definition at line 298 of file resource_set.py.
def rpki.resource_set.resource_set.intersection | ( | self, | ||
other | ||||
) |
def rpki.resource_set.resource_set.issubset | ( | self, | ||
other | ||||
) |
Test whether self is a subset (possibly improper) of other.
Definition at line 286 of file resource_set.py.
def rpki.resource_set.resource_set.issuperset | ( | self, | ||
other | ||||
) |
Test whether self is a superset (possibly improper) of other.
Definition at line 293 of file resource_set.py.
def rpki.resource_set.resource_set.symmetric_difference | ( | self, | ||
other | ||||
) |
def rpki.resource_set.resource_set.union | ( | self, | ||
other | ||||
) |
rpki::resource_set.resource_set::inherit = False [static] |
Boolean indicating whether this resource_set uses RFC 3779 inheritance.
Reimplemented in rpki.resource_set.resource_set_as, and rpki.resource_set.resource_set_ip.
Definition at line 173 of file resource_set.py.