multi_interface_roam::ipaddr::_BaseV4 Class Reference
List of all members.
Detailed Description
Base IPv4 object.
The following methods are used by IPv4 objects in both single IP
addresses and networks.
Definition at line 939 of file ipaddr.py.
Member Function Documentation
def multi_interface_roam::ipaddr::_BaseV4::__init__ |
( |
|
self, |
|
|
|
address | |
|
) |
| | |
def multi_interface_roam::ipaddr::_BaseV4::_explode_shorthand_ip_string |
( |
|
self, |
|
|
|
ip_str = None | |
|
) |
| | [private] |
def multi_interface_roam::ipaddr::_BaseV4::_ip_int_from_string |
( |
|
self, |
|
|
|
ip_str | |
|
) |
| | [private] |
Turn the given IP string into an integer for comparison.
Args:
ip_str: A string, the IP ip_str.
Returns:
The IP ip_str as an integer.
Raises:
AddressValueError: if the string isn't a valid IP string.
Definition at line 960 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV4::_is_valid_ip |
( |
|
self, |
|
|
|
address | |
|
) |
| | [private] |
Validate the dotted decimal notation IP/netmask string.
Args:
address: A string, either representing a quad-dotted ip
or an integer which is a valid IPv4 IP address.
Returns:
A boolean, True if the string is a valid dotted decimal IP
string.
Definition at line 1000 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV4::_string_from_ip_int |
( |
|
self, |
|
|
|
ip_int | |
|
) |
| | [private] |
Turns a 32-bit integer into dotted decimal notation.
Args:
ip_int: An integer, the IP address.
Returns:
The IP address as a string in dotted decimal notation.
Definition at line 984 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV4::is_link_local |
( |
|
self |
) |
|
Test if the address is reserved for link-local.
Returns:
A boolean, True if the address is link-local per RFC 3927.
Definition at line 1100 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV4::is_loopback |
( |
|
self |
) |
|
Test if the address is a loopback address.
Returns:
A boolean, True if the address is a loopback per RFC 3330.
Definition at line 1090 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV4::is_multicast |
( |
|
self |
) |
|
Test if the address is reserved for multicast use.
Returns:
A boolean, True if the address is multicast.
See RFC 3171 for details.
Definition at line 1068 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV4::is_private |
( |
|
self |
) |
|
Test if this address is allocated for private networks.
Returns:
A boolean, True if the address is reserved per RFC 1918.
Definition at line 1056 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV4::is_reserved |
( |
|
self |
) |
|
Test if the address is otherwise IETF reserved.
Returns:
A boolean, True if the address is within the
reserved IPv4 Network range.
Definition at line 1045 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV4::is_unspecified |
( |
|
self |
) |
|
Test if the address is unspecified.
Returns:
A boolean, True if this is the unspecified address as defined in
RFC 5735 3.
Definition at line 1079 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV4::max_prefixlen |
( |
|
self |
) |
|
def multi_interface_roam::ipaddr::_BaseV4::packed |
( |
|
self |
) |
|
The binary representation of this address.
Definition at line 1036 of file ipaddr.py.
def multi_interface_roam::ipaddr::_BaseV4::version |
( |
|
self |
) |
|
Member Data Documentation
The documentation for this class was generated from the following file: