Revision 16abfbc2 lib/rpc.py
b/lib/rpc.py | ||
---|---|---|
373 | 373 |
return c.getresult() |
374 | 374 |
|
375 | 375 |
|
376 |
def call_node_tcp_ping(node, source, target, port, timeout, live_port_needed): |
|
377 |
"""Do a TcpPing on the remote node |
|
378 |
|
|
379 |
This is a single-node call. |
|
380 |
""" |
|
381 |
c = Client("node_tcp_ping", [source, target, port, timeout, |
|
382 |
live_port_needed]) |
|
383 |
c.connect(node) |
|
384 |
c.run() |
|
385 |
return c.getresult().get(node, False) |
|
386 |
|
|
387 |
|
|
376 | 388 |
def call_node_info(node_list, vg_name): |
377 | 389 |
"""Return node information. |
378 | 390 |
|
Also available in: Unified diff