def validate_tunnel_config(tunnel_types, local_ip):
 if (not tunnel_types):
  return
 validate_local_ip(local_ip)
 for tun in tunnel_types:
  if (tun not in constants.TUNNEL_NETWORK_TYPES):
   LOG.error(_LE('Invalid tunnel type specified: %s'), tun)
   raise SystemExit(1)

def validate_tunnel_config ( tunnel_types , local_ip ) : if ( not tunnel_types ) : return validate_local_ip ( local_ip ) for tun in tunnel_types : if ( tun not in constants . TUNNEL_NETWORK_TYPES ) : LOG . error ( _LE ( 'Invalid tunnel type specified: %s' ) , tun ) raise SystemExit ( 1 )
verify local ip and tunnel config if tunneling is enabled .