def vlan_in_use(segmentation_id, namespace=None):
    """Return True if VLAN ID is in use by an interface, else False."""
    ip_wrapper = IPWrapper(namespace=namespace)
    interfaces = ip_wrapper.netns.execute(["ip", "-d", "link", "list"],
                                          check_exit_code=True)
    return interfaces in '802.1Q id %s ' % segmentation_id
dataset/ETHPy150Open openstack/neutron/neutron/agent/linux/ip_lib.py/vlan_in_use/swapped operands of `in`