From ee8fd7b72eba989f409490e1070586b2fe296930 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Fri, 21 Oct 2011 14:23:48 +0200 Subject: [PATCH] =?UTF-8?q?Remove=20=E2=80=9Cnode=5Ftcp=5Fping=E2=80=9D=20?= =?UTF-8?q?RPC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is not used anywhere. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- lib/rpc.py | 12 ------------ lib/server/noded.py | 8 -------- 2 files changed, 20 deletions(-) diff --git a/lib/rpc.py b/lib/rpc.py index 3a1cd9b13..7d75a58d5 100644 --- a/lib/rpc.py +++ b/lib/rpc.py @@ -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. diff --git a/lib/server/noded.py b/lib/server/noded.py index 4cdd870ee..c67da1254 100644 --- a/lib/server/noded.py +++ b/lib/server/noded.py @@ -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. -- GitLab