• Home
  • Raw
  • Download

Lines Matching refs:ip2

1220         ip2 = ipaddress.IPv4Address('10.10.10.11')
1226 self.assertEqual(list(ipaddress._find_address_range([ip1, ip2, ip3])),
1751 ip2 = ipaddress.IPv4Address('1.1.1.1')
1758 [ip1, ip2, ip3, ip4, ip5, ip6])
1765 ip2 = ipaddress.IPv4Address('1.1.1.1')
1771 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3, ip4])
1777 ip2 = ipaddress.IPv4Network('1.1.1.0/24')
1785 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3, ip4, ip5,
1792 collapsed = ipaddress.collapse_addresses([ip1, ip2])
1808 ip2 = ipaddress.IPv6Network('2001::/120')
1811 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3])
1815 ip2 = ipaddress.IPv6Network('2001::%scope/120')
1818 collapsed = ipaddress.collapse_addresses([ip1, ip2, ip3])
1830 for ip1, ip2 in addr_tuples:
1832 [ip1, ip2])
1842 for ip1, ip2 in addr_tuples:
1844 [ip1, ip2])
1851 ip2 = ipaddress.ip_address('1.1.1.255')
1868 self.assertEqual(list(summarize(ip1, ip2))[0],
1871 ip2 = ipaddress.ip_address('1.1.1.8')
1872 self.assertEqual(list(summarize(ip1, ip2)),
1877 ip2 = ipaddress.IPv4Address(ipaddress.IPv4Address._ALL_ONES)
1879 list(summarize(ip1, ip2)))
1882 ip2 = ipaddress.ip_address('1:ffff:ffff:ffff:ffff:ffff:ffff:ffff')
1884 self.assertEqual(list(summarize(ip1, ip2))[0],
1887 ip2 = ipaddress.ip_address('2::')
1888 self.assertEqual(list(summarize(ip1, ip2)),
1893 ip2 = ipaddress.ip_address('1:ffff:ffff:ffff:ffff:ffff:ffff:ffff%scope')
1895 self.assertEqual(list(summarize(ip1, ip2))[0],
1898 ip2 = ipaddress.ip_address('2::%scope')
1899 self.assertEqual(list(summarize(ip1, ip2)),
2013 ip2 = ipaddress.IPv4Network('1.1.1.0/32')
2017 self.assertTrue(ip3 > ip2)
2022 self.assertEqual(ip1.compare_networks(ip2), -1)
2023 self.assertEqual(ip2.compare_networks(ip1), 1)
2030 ip2 = ipaddress.IPv6Network('2001:2001::/96')
2034 self.assertTrue(ip3 > ip2)
2054 ip2 = ipaddress.ip_network('10.1.3.0/24')
2055 self.assertTrue(ip1 < ip2)
2056 self.assertFalse(ip2 < ip1)
2057 self.assertFalse(ip1 > ip2)
2058 self.assertTrue(ip2 > ip1)
2060 self.assertTrue(ip2 < ip3)
2061 self.assertFalse(ip3 < ip2)
2062 self.assertFalse(ip2 > ip3)
2063 self.assertTrue(ip3 > ip2)
2067 ip2 = ipaddress.ip_network('10.10.10.0')
2070 sorted = [ip1, ip2, ip3, ip4]
2071 unsorted = [ip2, ip4, ip1, ip3]
2074 unsorted = [ip4, ip1, ip3, ip2]
2079 self.assertIs(ip2.__lt__(ipaddress.ip_address('10.10.10.0')),
2384 ip2 = ipaddress.ip_address('1::')
2389 dummy[ip2] = None
2391 self.assertIn(ip2, dummy)