summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2015-11-09 17:10:24 +0200
committerimarom <imarom@cisco.com>2015-11-09 17:10:24 +0200
commit9c32c36b6006d2a81e1a5658a1fb1616eff650f3 (patch)
tree6c768596aedd26eea82ec22cb61a04da7d8a3304 /scripts
parent67bcc46be09049d2ca65c0af2aa6a2fe0821eb04 (diff)
moved logic to the port class
also implemented the state machine for CP port
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/automation/trex_control_plane/console/trex_console.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/automation/trex_control_plane/console/trex_console.py b/scripts/automation/trex_control_plane/console/trex_console.py
index a2c738ab..68050fc0 100755
--- a/scripts/automation/trex_control_plane/console/trex_console.py
+++ b/scripts/automation/trex_control_plane/console/trex_console.py
@@ -778,6 +778,9 @@ class TRexConsole(cmd.Cmd):
return
else:
port_list = self.stateless_client.get_active_ports()
+ if not port_list:
+ print magenta("no active ports - operation aborted\n")
+ return
else:
port_list = self.extract_port_ids_from_line(line)