From 7c35235f67b009cb2a9a605c3c89ea39d6f10871 Mon Sep 17 00:00:00 2001 From: Dan Klein Date: Sun, 25 Oct 2015 06:17:33 +0200 Subject: refactor tx_link -> comm_link --- .../trex_control_plane/client/trex_stateless_client.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'scripts/automation/trex_control_plane') diff --git a/scripts/automation/trex_control_plane/client/trex_stateless_client.py b/scripts/automation/trex_control_plane/client/trex_stateless_client.py index 7d287a5e..8856a793 100755 --- a/scripts/automation/trex_control_plane/client/trex_stateless_client.py +++ b/scripts/automation/trex_control_plane/client/trex_stateless_client.py @@ -21,7 +21,7 @@ class CTRexStatelessClient(object): def __init__(self, username, server="localhost", port=5050, virtual=False): super(CTRexStatelessClient, self).__init__() self.user = username - self.tx_link = CTRexStatelessClient.CTxLink(server, port, virtual) + self.comm_link = CTRexStatelessClient.CCommLink(server, port, virtual) self._conn_handler = {} self._active_ports = set() self._stats = CTRexStatsManager("port", "stream") @@ -64,7 +64,7 @@ class CTRexStatelessClient(object): # ----- user-access methods ----- # def connect(self): - self.tx_link.connect() + self.comm_link.connect() def ping(self): return self.transmit("ping") @@ -238,10 +238,10 @@ class CTRexStatelessClient(object): # ----- internal methods ----- # def transmit(self, method_name, params={}): - return self.tx_link.transmit(method_name, params) + return self.comm_link.transmit(method_name, params) def transmit_batch(self, batch_list): - return self.tx_link.transmit_batch(batch_list) + return self.comm_link.transmit_batch(batch_list) @staticmethod def _object_decoder(obj_type, obj_data): @@ -318,10 +318,10 @@ class CTRexStatelessClient(object): # ------ private classes ------ # - class CTxLink(object): + class CCommLink(object): """describes the connectivity of the stateless client method""" def __init__(self, server="localhost", port=5050, virtual=False): - super(CTRexStatelessClient.CTxLink, self).__init__() + super(CTRexStatelessClient.CCommLink, self).__init__() self.virtual = virtual self.server = server self.port = port -- cgit 1.2.3-korg