Revision caad16e2 lib/rpc.py

b/lib/rpc.py
339 339
    """Do a TcpPing on the remote node
340 340

  
341 341
    This is a single-node call.
342

  
342 343
    """
343 344
    c = Client("node_tcp_ping", [source, target, port, timeout,
344 345
                                 live_port_needed])
......
346 347
    c.run()
347 348
    return c.getresult().get(node, False)
348 349

  
350
  def call_node_has_ip_address(self, node, address):
351
    """Checks if a node has the given IP address.
352

  
353
    This is a single-node call.
354

  
355
    """
356
    c = Client("node_has_ip_address", [address])
357
    c.connect(node)
358
    c.run()
359
    return c.getresult().get(node, False)
349 360

  
350 361
  def call_node_info(self, node_list, vg_name, hypervisor_type):
351 362
    """Return node information.

Also available in: Unified diff