Package ganeti :: Module netutils :: Class IP4Address
[hide private]
[frames] | no frames]

Class IP4Address

source code


IPv4 address class.

Instance Methods [hide private]
 
__init__(self, address)
Constructor for IPv4 address.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from IPAddress: InNetwork, IsLoopback, IsValid, Own

Static Methods [hide private]
int
_GetIPIntFromString(address)
Get integer value of IPv4 address.
source code

Inherited from IPAddress: GetAddressFamily

Class Variables [hide private]
  iplen = 32
  family = socket.AF_INET
  loopback_cidr = "127.0.0.0/8"
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, address)
(Constructor)

source code 

Constructor for IPv4 address.

Parameters:
  • address (str) - IP address
Raises:
Overrides: object.__init__

_GetIPIntFromString(address)
Static Method

source code 

Get integer value of IPv4 address.

Parameters:
  • address (str) - IPv6 address
Returns: int
integer value of given IP address
Overrides: IPAddress._GetIPIntFromString