def _valid_iface(iface):
 ifaces = list_interfaces()
 if (iface in ifaces.keys()):
  return True
 return False

def _valid_iface ( iface ) : ifaces = list_interfaces ( ) if ( iface in ifaces . keys ( ) ) : return True return False
validate the specified interface .