Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
multi_interface_roam.ipaddr._BaseV6 Class Reference
Inheritance diagram for multi_interface_roam.ipaddr._BaseV6:
Inheritance graph
[legend]

List of all members.

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)

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.


Constructor & Destructor Documentation

def multi_interface_roam.ipaddr._BaseV6.__init__ (   self,
  address 
)

Reimplemented in multi_interface_roam.ipaddr.IPv6Address.

Definition at line 1345 of file ipaddr.py.


Member Function Documentation

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.

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.

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.

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.

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.

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.

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.

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.

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.

Definition at line 1570 of file ipaddr.py.

The binary representation of this address.

Definition at line 1574 of file ipaddr.py.

Definition at line 1579 of file ipaddr.py.


Member Data Documentation

tuple multi_interface_roam::ipaddr._BaseV6::_ALL_ONES = (2**128) [static, private]

Definition at line 1343 of file ipaddr.py.

Definition at line 1345 of file ipaddr.py.

Definition at line 1345 of file ipaddr.py.


The documentation for this class was generated from the following file:


multi_interface_roam
Author(s): Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:18