diff options
-rwxr-xr-x | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py | 6 |
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() |