def verify_iface(iface):
 try:
  tmp = init_app('ifconfig', True)
  if (not (iface in tmp)):
   return False
  return True
 except Exception:
  return False

def verify_iface ( iface ) : try : tmp = init_app ( 'ifconfig' , True ) if ( not ( iface in tmp ) ) : return False return True except Exception : return False
verify that the given interface exists .