diff options
author | 2016-01-08 13:54:36 +0200 | |
---|---|---|
committer | 2016-01-08 13:54:36 +0200 | |
commit | 8e037c2bd51844dc7c42ce7b2339806d9dcb964b (patch) | |
tree | cd45e5214e3db13f214a0e68b3fd37f366438b80 /scripts/automation/trex_control_plane/console | |
parent | 8db09096b9dcf030b7dc744fbd7ee463d8e6fd1b (diff) | |
parent | 9fc980b8aa43cf53446eeeb5184f10a86476da28 (diff) |
Merge branch 'dan_stateless'
Added the support for "streams" command
Missing:
1. "--full" output
2. sync with server after crash
3. merging output for identical port streams
Diffstat (limited to 'scripts/automation/trex_control_plane/console')
-rwxr-xr-x | scripts/automation/trex_control_plane/console/trex_console.py | 9 |
1 files changed, 9 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 a3ea6693..fe4001b2 100755 --- a/scripts/automation/trex_control_plane/console/trex_console.py +++ b/scripts/automation/trex_control_plane/console/trex_console.py @@ -416,6 +416,15 @@ class TRexConsole(TRexGeneralCmd): self.do_stats("-h") @verify_connected + def do_streams(self, line): + '''Fetch statistics from TRex server by port\n''' + self.stateless_client.cmd_streams_line(line) + + + def help_streams(self): + self.do_streams("-h") + + @verify_connected def do_clear(self, line): '''Clear cached local statistics\n''' self.stateless_client.cmd_clear_line(line) |