summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-12-20 16:43:17 +0200
committerimarom <imarom@cisco.com>2016-12-20 16:43:17 +0200
commit72d312651fbd011baffad2a3444866abb856c9ba (patch)
tree13673a60df760336a057fc28a8847080f4c6e679 /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
parent69724d5d02b9bb13a94439243109a3e2f4607033 (diff)
trex-190 - Shutting down server and restarting with different config - console out of sync
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py')
-rwxr-xr-xscripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
index a42247e7..4662768a 100755
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
@@ -944,6 +944,7 @@ class STLClient(object):
self.supported_cmds = sorted(rc.data())
# create ports
+ self.ports.clear()
for port_id in range(self.system_info["port_count"]):
info = self.system_info['ports'][port_id]
@@ -3227,15 +3228,14 @@ class STLClient(object):
parser = parsing_opts.gen_parser(self,
"connect",
self.connect_line.__doc__,
- parsing_opts.PORT_LIST_WITH_ALL,
parsing_opts.FORCE)
- opts = parser.parse_args(line.split(), default_ports = self.get_all_ports())
+ opts = parser.parse_args(line.split())
if not opts:
return opts
self.connect()
- self.acquire(ports = opts.ports, force = opts.force)
+ self.acquire(force = opts.force)
return RC_OK()