def vserver_exists(v_name, v_ip=None, v_port=None, v_type=None, **connection_args):
 vserver = _vserver_get(v_name, **connection_args)
 if (vserver is None):
  return False
 if ((v_ip is not None) and (vserver.get_ipv46() != v_ip)):
  return False
 if ((v_port is not None) and (vserver.get_port() != v_port)):
  return False
 if ((v_type is not None) and (vserver.get_servicetype().upper() != v_type.upper())):
  return False
 return True

def vserver_exists ( v_name , v_ip = None , v_port = None , v_type = None , ** connection_args ) : vserver = _vserver_get ( v_name , ** connection_args ) if ( vserver is None ) : return False if ( ( v_ip is not None ) and ( vserver . get_ipv46 ( ) != v_ip ) ) : return False if ( ( v_port is not None ) and ( vserver . get_port ( ) != v_port ) ) : return False if ( ( v_type is not None ) and ( vserver . get_servicetype ( ) . upper ( ) != v_type . upper ( ) ) ) : return False return True
checks if a vserver exists cli example: .