Lines Matching defs:netaddr
25 import netaddr
248 ipversion = netaddr.IPNetwork(port_subnet).version
281 if netaddr.IPAddress(ex_gw_ip).version != 4 or ipversion != 4:
326 if netaddr.IPNetwork(subnet).version == 4]
359 ipnet = netaddr.IPNetwork(subnet)
379 ipnet = netaddr.IPNetwork(subnet)
545 if netaddr.IPAddress(gw_ip).version != 4:
549 if netaddr.IPNetwork(port_subnet).version != 4:
628 if netaddr.IPNetwork(ip_cidr).version == 4:
657 if netaddr.IPAddress(ex_gw_port_ip).version != 4:
728 ip_addr = netaddr.IPAddress(self.conf.ipv6_gateway)
732 except netaddr.AddrFormatError: