summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/console/parsing_opts.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2015-11-12 18:28:21 +0200
committerimarom <imarom@cisco.com>2015-11-12 18:28:21 +0200
commit513581840e5787e73161de049aa59552f23e719d (patch)
treeebb128f76c53e353c46b0af3f0a183280257a863 /scripts/automation/trex_control_plane/console/parsing_opts.py
parent78c6593c5a2d3d2242be7fc659d15eac6b869358 (diff)
modifying stateless client to a simpler lightweight module
Diffstat (limited to 'scripts/automation/trex_control_plane/console/parsing_opts.py')
-rwxr-xr-xscripts/automation/trex_control_plane/console/parsing_opts.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/automation/trex_control_plane/console/parsing_opts.py b/scripts/automation/trex_control_plane/console/parsing_opts.py
index f983d837..252d33bf 100755
--- a/scripts/automation/trex_control_plane/console/parsing_opts.py
+++ b/scripts/automation/trex_control_plane/console/parsing_opts.py
@@ -139,8 +139,8 @@ class CCmdArgParser(argparse.ArgumentParser):
opts.ports = self.stateless_client.get_port_ids()
for port in opts.ports:
- if not self.stateless_client._is_ports_valid(port):
- self.error("port id {0} is not a valid\n".format(port))
+ if not self.stateless_client.validate_port_list(port):
+ self.error("port id {0} is not a valid port id\n".format(port))
return opts