

def get_ip_version(cidr):
    net = netaddr.IPNetwork(net)
    return int(net.version)

dataset/ETHPy150Open nii-cloud/dodai-compute/nova/virt/libvirt/netutils.py get_ip_version/VarMisuse@16/21 `cidr`->`net`