Revision a744b676 daemons/ganeti-noded
b/daemons/ganeti-noded | ||
---|---|---|
46 | 46 |
from ganeti import utils |
47 | 47 |
from ganeti import storage |
48 | 48 |
from ganeti import serializer |
49 |
from ganeti import netutils |
|
49 | 50 |
|
50 | 51 |
import ganeti.http.server # pylint: disable-msg=W0611 |
51 | 52 |
|
... | ... | |
589 | 590 |
"""Do a TcpPing on the remote node. |
590 | 591 |
|
591 | 592 |
""" |
592 |
return utils.TcpPing(params[1], params[2], timeout=params[3], |
|
593 |
live_port_needed=params[4], source=params[0]) |
|
593 |
return netutils.TcpPing(params[1], params[2], timeout=params[3],
|
|
594 |
live_port_needed=params[4], source=params[0])
|
|
594 | 595 |
|
595 | 596 |
@staticmethod |
596 | 597 |
def perspective_node_has_ip_address(params): |
597 | 598 |
"""Checks if a node has the given ip address. |
598 | 599 |
|
599 | 600 |
""" |
600 |
return utils.OwnIpAddress(params[0]) |
|
601 |
return netutils.OwnIpAddress(params[0])
|
|
601 | 602 |
|
602 | 603 |
@staticmethod |
603 | 604 |
def perspective_node_info(params): |
Also available in: Unified diff