ipaddress.IPv4Network.with_hostmask

with_hostmask A string representation of the network, with the mask in host mask notation.

ipaddress.IPv4Network.version

version

ipaddress.IPv4Network.supernet()

supernet(prefixlen_diff=1, new_prefix=None) The supernet containing this network definition, depending on the argument values. prefixlen_diff is the amount our prefix length should be decreased by. new_prefix is the desired new prefix of the supernet; it must be smaller than our prefix. One and only one of prefixlen_diff and new_prefix must be set. Returns a single network object. >>> ip_network('192.0.2.0/24').supernet() IPv4Network('192.0.2.0/23') >>> ip_network('192.0.2.

ipaddress.IPv4Network.subnets()

subnets(prefixlen_diff=1, new_prefix=None) The subnets that join to make the current network definition, depending on the argument values. prefixlen_diff is the amount our prefix length should be increased by. new_prefix is the desired new prefix of the subnets; it must be larger than our prefix. One and only one of prefixlen_diff and new_prefix must be set. Returns an iterator of network objects. >>> list(ip_network('192.0.2.0/24').subnets()) [IPv4Network('192.0.2.0/25'), IPv4Netwo

ipaddress.IPv4Network.prefixlen

prefixlen Length of the network prefix, in bits.

ipaddress.IPv4Network.overlaps()

overlaps(other) True if this network is partly or wholly contained in other or other is wholly contained in this network.

ipaddress.IPv4Network.num_addresses

num_addresses The total number of addresses in the network.

ipaddress.IPv4Network.network_address

network_address The network address for the network. The network address and the prefix length together uniquely define a network.

ipaddress.IPv4Network.max_prefixlen

max_prefixlen Refer to the corresponding attribute documentation in IPv4Address

ipaddress.IPv4Network.is_unspecified

is_unspecified