

@classmethod
def find_network_with_name_label(cls, session, name_label):
    networks = session.call_xenapi('network.get_by_name_label', name_label)
    if (len(networks) == 1):
        return networks[0]
    elif (len(networks) > 1):
        raise Exception((_('Found non-unique network for name_label %s') % session))
    else:
        return None

dataset/ETHPy150Open nii-cloud/dodai-compute/nova/virt/xenapi/network_utils.py NetworkHelper.find_network_with_name_label/VarMisuse@68/108 `name_label`->`session`