def _valid_iface(iface):
    '''
    Validate the specified interface
    '''
    ifaces = list_interfaces()
    if ifaces.keys() in iface:
        return True
    return False
dataset/ETHPy150Open saltstack/salt/salt/modules/iwtools.py/_valid_iface/swapped operands of `in`