summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stf
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-06-20 13:50:27 +0300
committerHanoh Haim <hhaim@cisco.com>2016-06-20 13:50:27 +0300
commite356e9e5b70a5bdfefeaf10a09f45974e3969682 (patch)
treef671a2a994ef930cc12bd5dcf0a1282bfd1a762d /scripts/automation/trex_control_plane/stf
parent7b13e5e5a6ec2dd71f551e61b846b481d5c58205 (diff)
parent88486da4a095bd7fa7094d4bd9ab54eeafd24a26 (diff)
Merge minor
Diffstat (limited to 'scripts/automation/trex_control_plane/stf')
-rwxr-xr-xscripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py b/scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py
index e1b298db..91fe2075 100755
--- a/scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py
+++ b/scripts/automation/trex_control_plane/stf/trex_stf_lib/trex_client.py
@@ -40,7 +40,7 @@ class CTRexClient(object):
This class defines the client side of the RESTfull interaction with TRex
"""
- def __init__(self, trex_host, max_history_size = 100, filtered_latency_amount = 0.001, trex_daemon_port = 8090, master_daemon_port = 8091, trex_zmq_port = 4500, verbose = False):
+ def __init__(self, trex_host, max_history_size = 100, filtered_latency_amount = 0.001, trex_daemon_port = 8090, master_daemon_port = 8091, trex_zmq_port = 4500, verbose = False, debug_image = False):
"""
Instantiate a TRex client object, and connecting it to listening daemon-server
@@ -96,6 +96,7 @@ class CTRexClient(object):
self.master_daemon = jsonrpclib.Server(self.master_daemon_path, history = self.history)
self.trex_server_path = "http://{hostname}:{port}/".format( hostname = self.trex_host, port = trex_daemon_port )
self.server = jsonrpclib.Server(self.trex_server_path, history = self.history)
+ self.debug_image = debug_image
def add (self, x, y):
@@ -159,7 +160,7 @@ class CTRexClient(object):
self.result_obj.clear_results()
try:
issue_time = time.time()
- retval = self.server.start_trex(trex_cmd_options, user, block_to_success, timeout)
+ retval = self.server.start_trex(trex_cmd_options, user, block_to_success, timeout, self.debug_image)
except AppError as err:
self._handle_AppError_exception(err.args[0])
except ProtocolError:
@@ -205,7 +206,7 @@ class CTRexClient(object):
"""
try:
user = user or self.__default_user
- retval = self.server.start_trex(trex_cmd_options, user, block_to_success, timeout, True)
+ retval = self.server.start_trex(trex_cmd_options, user, block_to_success, timeout, True, self.debug_image)
except AppError as err:
self._handle_AppError_exception(err.args[0])
except ProtocolError: