Package ganeti :: Module network
[hide private]
[frames] | no frames]

Module network

source code

IP address pool management functions.

Classes [hide private]
  AddressPool
Address pool class, wrapping an objects.Network object.
Functions [hide private]
 
_ComputeIpv4NumHosts(network_size)
Derives the number of hosts in an IPv4 network from the size.
source code
Variables [hide private]
  IPV4_NETWORK_MIN_SIZE = 30
  IPV4_NETWORK_MAX_SIZE = 16
  IPV4_NETWORK_MIN_NUM_HOSTS = _ComputeIpv4NumHosts(IPV4_NETWORK...
  IPV4_NETWORK_MAX_NUM_HOSTS = _ComputeIpv4NumHosts(IPV4_NETWORK...

Imports: ipaddr, bitarray, errors


Variables Details [hide private]

IPV4_NETWORK_MIN_NUM_HOSTS

Value:
_ComputeIpv4NumHosts(IPV4_NETWORK_MIN_SIZE)

IPV4_NETWORK_MAX_NUM_HOSTS

Value:
_ComputeIpv4NumHosts(IPV4_NETWORK_MAX_SIZE)