Package netaddr :: Module strategy
[frames] | no frames]

Module strategy

source code

classes that implement the behaviour of each network address type, constants used to identify them and shared strategy instances used by address objects.

Classes
  AddrStrategy
Very basic support for all common operations performed on each network type.
  IPv4Strategy
An optimised AddrStrategy for IP version 4 address processing.
  IPv6Strategy
Implements the operations that can be performed on an Internet Protocol version 6 network address.
  EUI48Strategy
Implements the operations that can be performed on an IEEE 48-bit EUI (Extended Unique Identifer).
Variables
  BIG_ENDIAN_PLATFORM = False
  AT_UNSPEC = 0
  AT_INET = 4
  AT_INET6 = 6
  AT_LINK = 48
  AT_EUI64 = 64
  AT_DESCR = {0: 'Unspecified', 4: 'Internet Protocol (version 4...
  ST_EUI48 = EUI48Strategy()
  ST_EUI64 = AddrStrategy(addr_type= AT_EUI64, width= 64, word_s...
  ST_IPV4 = IPv4Strategy()
  ST_IPV6 = IPv6Strategy()
Variables Details

AT_DESCR

Value:
{0: 'Unspecified',
 4: 'Internet Protocol (version 4)',
 6: 'Internet Protocol (version 6)',
 48: 'MAC (Media Access Control)',
 64: '64-bit IEEE Extended Unique Identifier'}

ST_EUI64

Value:
AddrStrategy(addr_type= AT_EUI64, width= 64, word_size= 8, word_fmt= '\
%02x', delimiter= '-', to_upper= True)