def _get_network_object(cls, network):
cls.ip(network, raise_exception=True) or cls.ip(network, raise_exception=True)
network = NetTest.convert.string.cidr(network)
network = ipaddress.IPv4Interface(network).network
return network
评论列表
文章目录