RPKI Engine 1.0
|
Classes | |
class | resource_bag |
class | resource_range |
class | resource_range_as |
class | resource_range_ip |
class | resource_range_ipv4 |
class | resource_range_ipv6 |
class | resource_set |
class | resource_set_as |
class | resource_set_ip |
class | resource_set_ipv4 |
class | resource_set_ipv6 |
class | roa_prefix |
class | roa_prefix_ipv4 |
class | roa_prefix_ipv6 |
class | roa_prefix_set |
class | roa_prefix_set_ipv4 |
class | roa_prefix_set_ipv6 |
Functions | |
def | _bs2long |
def | _long2bs |
def | _rsplit |
def | test1 |
def | test2 |
def | test3 |
def | testprefix |
Variables | |
string | inherit_token = "<inherit>" |
Token used to indicate inheritance in read and print syntax. | |
tuple | re_address_range = re.compile("^([0-9:.a-fA-F]+)-([0-9:.a-fA-F]+)$") |
tuple | re_asn_range = re.compile("^([0-9]+)-([0-9]+)$") |
tuple | re_prefix = re.compile("^([0-9:.a-fA-F]+)/([0-9]+)$") |
tuple | re_prefix_with_maxlen = re.compile("^([0-9:.a-fA-F]+)/([0-9]+)-([0-9]+)$") |
Classes dealing with sets of resources. The basic mechanics of a resource set are the same for any of the resources we handle (ASNs, IPv4 addresses, or IPv6 addresses), so we can provide the same operations on any of them, even though the underlying details vary. We also provide some basic set operations (union, intersection, etc). $Id: resource_set.py 3688 2011-02-24 00:00:05Z melkins $ Copyright (C) 2009--2010 Internet Systems Consortium ("ISC") Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. Portions copyright (C) 2007--2008 American Registry for Internet Numbers ("ARIN") Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND ARIN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ARIN BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
def rpki.resource_set._bs2long | ( | bs, | |
addrlen, | |||
fill | |||
) | [private] |
Utility function to convert a bitstring (rpki.POW.pkix tuple representation) into a Python long.
Definition at line 632 of file resource_set.py.
def rpki.resource_set._long2bs | ( | number, | |
addrlen, | |||
prefixlen = None , |
|||
strip = None |
|||
) | [private] |
Utility function to convert a Python long into a rpki.POW.pkix tuple bitstring. This is a bit complicated because it supports the fiendishly compact encoding used in RFC 3779.
Definition at line 644 of file resource_set.py.
def rpki.resource_set._rsplit | ( | rset, | |
that | |||
) | [private] |
Utility function to split a resource range into two resource ranges.
Definition at line 270 of file resource_set.py.
def rpki.resource_set.test1 | ( | t, | |
s1, | |||
s2 | |||
) |
Definition at line 1039 of file resource_set.py.
def rpki.resource_set.test2 | ( | t, | |
s1, | |||
s2 | |||
) |
Definition at line 1072 of file resource_set.py.
def rpki.resource_set.test3 | ( | t, | |
s1, | |||
s2 | |||
) |
Definition at line 1085 of file resource_set.py.
def rpki.resource_set.testprefix | ( | v | ) |
Definition at line 1036 of file resource_set.py.
rpki::resource_set::inherit_token = "<inherit>" |
Token used to indicate inheritance in read and print syntax.
Definition at line 48 of file resource_set.py.
tuple rpki::resource_set.re_address_range = re.compile("^([0-9:.a-fA-F]+)-([0-9:.a-fA-F]+)$") |
Definition at line 51 of file resource_set.py.
tuple rpki::resource_set.re_asn_range = re.compile("^([0-9]+)-([0-9]+)$") |
Definition at line 50 of file resource_set.py.
tuple rpki::resource_set.re_prefix = re.compile("^([0-9:.a-fA-F]+)/([0-9]+)$") |
Definition at line 53 of file resource_set.py.
tuple rpki::resource_set.re_prefix_with_maxlen = re.compile("^([0-9:.a-fA-F]+)/([0-9]+)-([0-9]+)$") |
Definition at line 52 of file resource_set.py.