multi_interface_roam::ipaddr::_BaseV6 Class Reference
List of all members.
Detailed Description
Base IPv6 object.
The following methods are used by IPv6 objects in both single IP
addresses and networks.
Definition at line 1334 of file ipaddr.py.
Member Function Documentation
def multi_interface_roam::ipaddr::_BaseV6::__init__ |
( |
|
self, |
|
|
|
address | |
|
) |
| | |
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.
Definition at line 1388 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV6::_explode_shorthand_ip_string |
( |
|
self, |
|
|
|
ip_str = None | |
|
) |
| | [private] |
Expand a shortened IPv6 address.
Args:
ip_str: A string, the IPv6 address.
Returns:
A string, the expanded IPv6 address.
Definition at line 1462 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV6::_ip_int_from_string |
( |
|
self, |
|
|
|
ip_str = None | |
|
) |
| | [private] |
Turn an IPv6 ip_str into an integer.
Args:
ip_str: A string, the IPv6 ip_str.
Returns:
A long, the IPv6 ip_str.
Raises:
AddressValueError: if ip_str isn't a valid IP Address.
Definition at line 1349 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV6::_is_shorthand_ip |
( |
|
self, |
|
|
|
ip_str = None | |
|
) |
| | [private] |
Determine if the address is shortened.
Args:
ip_str: A string, the IPv6 address.
Returns:
A boolean, True if the address is shortened.
Definition at line 1555 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV6::_is_valid_ip |
( |
|
self, |
|
|
|
ip_str | |
|
) |
| | [private] |
Ensure we have a valid IPv6 address.
Probably not as exhaustive as it should be.
Args:
ip_str: A string, the IPv6 address.
Returns:
A boolean, True if this is a valid IPv6 address.
Definition at line 1496 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV6::_string_from_ip_int |
( |
|
self, |
|
|
|
ip_int = None | |
|
) |
| | [private] |
Turns a 128-bit integer into hexadecimal notation.
Args:
ip_int: An integer, the IP address.
Returns:
A string, the hexadecimal representation of the address.
Raises:
ValueError: The address is bigger than 128 bits of all ones.
Definition at line 1435 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV6::ipv4_mapped |
( |
|
self |
) |
|
Return the IPv4 mapped address.
Returns:
If the IPv6 address is a v4 mapped address, return the
IPv4 mapped address. Return None otherwise.
Definition at line 1675 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV6::is_link_local |
( |
|
self |
) |
|
Test if the address is reserved for link-local.
Returns:
A boolean, True if the address is reserved per RFC 4291.
Definition at line 1641 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV6::is_loopback |
( |
|
self |
) |
|
Test if the address is a loopback address.
Returns:
A boolean, True if the address is a loopback address as defined in
RFC 2373 2.5.3.
Definition at line 1630 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV6::is_multicast |
( |
|
self |
) |
|
Test if the address is reserved for multicast use.
Returns:
A boolean, True if the address is a multicast address.
See RFC 2373 2.7 for details.
Definition at line 1583 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV6::is_private |
( |
|
self |
) |
|
Test if this address is allocated for private networks.
Returns:
A boolean, True if the address is reserved per RFC 4193.
Definition at line 1665 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV6::is_reserved |
( |
|
self |
) |
|
Test if the address is otherwise IETF reserved.
Returns:
A boolean, True if the address is within one of the
reserved IPv6 Network ranges.
Definition at line 1594 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV6::is_site_local |
( |
|
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.
Definition at line 1651 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV6::is_unspecified |
( |
|
self |
) |
|
Test if the address is unspecified.
Returns:
A boolean, True if this is the unspecified address as defined in
RFC 2373 2.5.2.
Definition at line 1619 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV6::max_prefixlen |
( |
|
self |
) |
|
def multi_interface_roam::ipaddr::_BaseV6::packed |
( |
|
self |
) |
|
The binary representation of this address.
Definition at line 1574 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV6::version |
( |
|
self |
) |
|
Member Data Documentation
The documentation for this class was generated from the following file: