Home
last modified time | relevance | path

Searched refs:supernet (Results 1 – 4 of 4) sorted by relevance

/third_party/python/Lib/test/
Dtest_ipaddress.py1362 self.assertEqual(self.ipv4_network.supernet().prefixlen, 23)
1363 self.assertEqual(str(self.ipv4_network.supernet().network_address),
1366 ipaddress.IPv4Interface('0.0.0.0/0').network.supernet(),
1369 self.assertEqual(self.ipv6_network.supernet().prefixlen, 63)
1370 self.assertEqual(str(self.ipv6_network.supernet().network_address),
1372 self.assertEqual(ipaddress.IPv6Interface('::0/0').network.supernet(),
1374 self.assertEqual(self.ipv6_scoped_network.supernet().prefixlen, 63)
1375 self.assertEqual(str(self.ipv6_scoped_network.supernet().network_address),
1379 self.assertEqual(self.ipv4_network.supernet(3).prefixlen, 21)
1380 self.assertEqual(str(self.ipv4_network.supernet(3).network_address),
[all …]
/third_party/python/Lib/
Dipaddress.py287 supernet = net.supernet()
288 existing = subnets.get(supernet)
290 subnets[supernet] = net
293 del subnets[supernet]
294 to_merge.append(supernet)
985 def supernet(self, prefixlen_diff=1, new_prefix=None): member in _BaseNetwork
/third_party/python/Doc/library/
Dipaddress.rst619 .. method:: supernet(prefixlen_diff=1, new_prefix=None)
621 The supernet containing this network definition, depending on the
624 the supernet; it must be smaller than our prefix. One and only one
628 >>> ip_network('192.0.2.0/24').supernet()
630 >>> ip_network('192.0.2.0/24').supernet(prefixlen_diff=2)
632 >>> ip_network('192.0.2.0/24').supernet(new_prefix=20)
648 Return ``True`` if this network is a supernet of *other*.
742 .. method:: supernet(prefixlen_diff=1, new_prefix=None)
/third_party/python/Doc/whatsnew/
D3.5.rst2120 :meth:`~ipaddress.IPv4Network.subnets`, :meth:`~ipaddress.IPv4Network.supernet`,