diff options
author | imarom <imarom@cisco.com> | 2015-11-09 17:10:24 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2015-11-09 17:10:24 +0200 |
commit | 9c32c36b6006d2a81e1a5658a1fb1616eff650f3 (patch) | |
tree | 6c768596aedd26eea82ec22cb61a04da7d8a3304 /scripts/automation | |
parent | 67bcc46be09049d2ca65c0af2aa6a2fe0821eb04 (diff) |
moved logic to the port class
also implemented the state machine for CP port
Diffstat (limited to 'scripts/automation')
-rwxr-xr-x | scripts/automation/trex_control_plane/console/trex_console.py | 3 |
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) |