

def get_net_and_mask(cidr):
    net = netaddr.IPNetwork(cidr)
    return (str(net.ip), str(net.netmask))

dataset/ETHPy150Open nii-cloud/dodai-compute/nova/virt/libvirt/netutils.py get_net_and_mask/original