PyDocs

Nav

Internet Protocols and Support

IPv4Network.supernet_of

ipaddress

method of IPv4Network · Added in 3.7 (source)
  • IPv4Network.supernet_of(other)
Return True if this network is a supernet of other.
1 Example
>>> a = ip_network('192.168.1.0/24')
>>> b = ip_network('192.168.1.128/30')
>>> a.supernet_of(b)
True
from the Python docs
See Also
No see-alsos for ipaddress/IPv4Network.supernet_of
0 Notes
No notes for IPv4Network.supernet_of