Commit ee8fd7b7 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Remove “node_tcp_ping” RPC



It is not used anywhere.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent dce20078
......@@ -843,18 +843,6 @@ class RpcRunner(object):
"""
return self._MultiNodeCall(node_list, "instance_list", [hypervisor_list])
@_RpcTimeout(_TMO_FAST)
def call_node_tcp_ping(self, node, source, target, port, timeout,
live_port_needed):
"""Do a TcpPing on the remote node
This is a single-node call.
"""
return self._SingleNodeCall(node, "node_tcp_ping",
[source, target, port, timeout,
live_port_needed])
@_RpcTimeout(_TMO_FAST)
def call_node_has_ip_address(self, node, address):
"""Checks if a node has the given IP address.
......
......@@ -654,14 +654,6 @@ class NodeHttpServer(http.server.HttpServer):
# node --------------------------
@staticmethod
def perspective_node_tcp_ping(params):
"""Do a TcpPing on the remote node.
"""
return netutils.TcpPing(params[1], params[2], timeout=params[3],
live_port_needed=params[4], source=params[0])
@staticmethod
def perspective_node_has_ip_address(params):
"""Checks if a node has the given ip address.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment