def validate_local_ip(local_ip):
 if (not ip_lib.IPWrapper().get_device_by_ip(local_ip)):
  LOG.error(_LE("Tunneling can't be enabled with invalid local_ip '%s'. IP couldn't be found on this host's interfaces."), local_ip)
  raise SystemExit(1)

def validate_local_ip ( local_ip ) : if ( not ip_lib . IPWrapper ( ) . get_device_by_ip ( local_ip ) ) : LOG . error ( _LE ( "Tunneling can't be enabled with invalid local_ip '%s'. IP couldn't be found on this host's interfaces." ) , local_ip ) raise SystemExit ( 1 )
verify if the ip exists on the agents host .