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

# Module strategy

source code

network address conversion logic, constants and shared strategy objects.

Classes
| AddrStrategy Basic support for common operations performed on each address type
| IPv4StrategyStd A 'safe' AddrStrategy for IPv4 addresses.
| IPv4StrategyOpt An optimised AddrStrategy for IPv4 addresses.
| IPv6Strategy Implements the operations that can be performed on an Internet Protocol version 6 network address in accordance with RFC 4291.
| EUI48Strategy Implements the operations that can be performed on an IEEE 48-bit EUI (Extended Unique Identifer) a.k.a.

Variables
| USE_IPV4_OPT = `True` Use optimised IPv4 strategy? Default: True
| ST_IPV4 = `IPv4StrategyOpt(32, 8, '.', 4, 10, False)` A shared strategy object supporting all operations on IPv4 addresses.
| ST_IPV6 = `IPv6Strategy(128, 16, ':', 6, 16, False)` A shared strategy object supporting all operations on IPv6 addresses.
| ST_EUI48 = `EUI48Strategy(48, 8, '-', 48, 16, True)` A shared strategy object supporting all operations on EUI-48/MAC addresses.
| ST_EUI64 = `AddrStrategy(64, 8, '-', 64, 16, True)` A shared strategy object supporting all operations on EUI-64 addresses.