PyDocs

Nav

Internet Protocols and Support

IPv6Network

  • IPv6Network(address, strict=True)
This class represents and manipulates 128-bit IPv6 networks.

Attributes: [examples for IPv6('2001:db8::1000/124')]
    .network_address: IPv6Address('2001:db8::1000')
    .hostmask: IPv6Address('::f')
    .broadcast_address: IPv6Address('2001:db8::100f')
    .netmask: IPv6Address('ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0')
    .prefixlen: 124
Changed in 3.5
  • 3.5: Added the two-tuple form for the address constructor parameter.
Members of IPv6Network

a

address_exclude
Remove an address from a larger block.

b

broadcast_address
Returns an iterator over the usable hosts in the network.

c

compare_networks
Compare two IP objects.
compressed
Return the shorthand version of the IP address as a string.

e

exploded
Return the longhand version of the IP address as a string.

h

hostmask
Returns an iterator over the usable hosts in the network.
hosts
Generate Iterator over usable hosts in a network.

i

is_link_local
Test if the address is reserved for link-local.
is_loopback
Test if the address is a loopback address.
is_multicast
Test if the address is reserved for multicast use.
is_private
Test if this network belongs to a private range.
is_reserved
Test if the address is otherwise IETF reserved.
is_site_local
Test if the address is reserved for site-local.
is_unspecified
Test if the address is unspecified.

m

max_prefixlen
Returns an iterator over the usable hosts in the network.

n

netmask
Returns an iterator over the usable hosts in the network.
network_address
Returns an iterator over the usable hosts in the network.
num_addresses
Number of hosts in the current subnet.

o

overlaps
Tell if self is partly contained in other.

p

prefixlen
Returns an iterator over the usable hosts in the network.

s

subnet_of
Return True if this network is a subnet of other.
subnets
The subnets which join to make the current subnet.
supernet
The supernet containing the current network.
supernet_of
Return True if this network is a supernet of other.

v

version
Returns an iterator over the usable hosts in the network.

w

with_hostmask
Returns an iterator over the usable hosts in the network.
with_netmask
Returns an iterator over the usable hosts in the network.
with_prefixlen
Returns an iterator over the usable hosts in the network.
0 Examples
No examples for ipaddress/IPv6Network.
See Also
No see-alsos for ipaddress/IPv6Network
0 Notes
No notes for IPv6Network