Public Member Functions | |
def | __init__ |
def | ipv4_mapped |
def | is_link_local |
def | is_loopback |
def | is_multicast |
def | is_private |
def | is_reserved |
def | is_site_local |
def | is_unspecified |
def | max_prefixlen |
def | packed |
def | version |
Private Member Functions | |
def | _compress_hextets |
def | _explode_shorthand_ip_string |
def | _ip_int_from_string |
def | _is_shorthand_ip |
def | _is_valid_ip |
def | _string_from_ip_int |
Private Attributes | |
_max_prefixlen | |
_version | |
Static Private Attributes | |
tuple | _ALL_ONES = (2**128) |
Base IPv6 object. The following methods are used by IPv6 objects in both single IP addresses and networks.
def multi_interface_roam.ipaddr._BaseV6.__init__ | ( | self, | |
address | |||
) |
Reimplemented in multi_interface_roam.ipaddr.IPv6Address.
def multi_interface_roam.ipaddr._BaseV6._compress_hextets | ( | self, | |
hextets | |||
) | [private] |
Compresses a list of hextets. Compresses a list of strings, replacing the longest continuous sequence of "0" in the list with "" and adding empty strings at the beginning or at the end of the string such that subsequently calling ":".join(hextets) will produce the compressed version of the IPv6 address. Args: hextets: A list of strings, the hextets to compress. Returns: A list of strings.
def multi_interface_roam.ipaddr._BaseV6._explode_shorthand_ip_string | ( | self, | |
ip_str = None |
|||
) | [private] |
def multi_interface_roam.ipaddr._BaseV6._ip_int_from_string | ( | self, | |
ip_str = None |
|||
) | [private] |
def multi_interface_roam.ipaddr._BaseV6._is_shorthand_ip | ( | self, | |
ip_str = None |
|||
) | [private] |
def multi_interface_roam.ipaddr._BaseV6._is_valid_ip | ( | self, | |
ip_str | |||
) | [private] |
def multi_interface_roam.ipaddr._BaseV6._string_from_ip_int | ( | self, | |
ip_int = None |
|||
) | [private] |
def multi_interface_roam.ipaddr._BaseV6.ipv4_mapped | ( | self | ) |
def multi_interface_roam.ipaddr._BaseV6.is_loopback | ( | self | ) |
def multi_interface_roam.ipaddr._BaseV6.is_multicast | ( | self | ) |
def multi_interface_roam.ipaddr._BaseV6.is_private | ( | self | ) |
def multi_interface_roam.ipaddr._BaseV6.is_reserved | ( | self | ) |
Test if the address is reserved for site-local. Note that the site-local address space has been deprecated by RFC 3879. Use is_private to test if this address is in the space of unique local addresses as defined by RFC 4193. Returns: A boolean, True if the address is reserved per RFC 3513 2.5.6.
def multi_interface_roam.ipaddr._BaseV6.packed | ( | self | ) |
def multi_interface_roam.ipaddr._BaseV6.version | ( | self | ) |
tuple multi_interface_roam::ipaddr._BaseV6::_ALL_ONES = (2**128) [static, private] |