diff options
author | Dan Klein <danklein10@gmail.com> | 2015-11-29 00:25:07 +0200 |
---|---|---|
committer | Dan Klein <danklein10@gmail.com> | 2015-11-29 00:25:07 +0200 |
commit | a609111bc37ef88f14d4f2ebf7cd186b04b86402 (patch) | |
tree | 2b166dca6d9763ae74328a9e279c118f28b9b00a /scripts/automation/trex_control_plane/console/trex_console.py | |
parent | 4486f9863e7f541ce5b6b4ff2bce6c6f7c41fcd2 (diff) |
Supports all desired stats option, plus clearing option
Diffstat (limited to 'scripts/automation/trex_control_plane/console/trex_console.py')
-rwxr-xr-x | scripts/automation/trex_control_plane/console/trex_console.py | 7 |
1 files changed, 7 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 3ddfd8c6..9236ce98 100755 --- a/scripts/automation/trex_control_plane/console/trex_console.py +++ b/scripts/automation/trex_control_plane/console/trex_console.py @@ -350,6 +350,13 @@ class TRexConsole(TRexGeneralCmd): def help_stats(self): self.do_stats("-h") + def do_clear(self, line): + '''Clear cached local statistics\n''' + self.stateless_client.cmd_clear_line(line) + + def help_clear(self): + self.do_clear("-h") + def help_events (self): self.do_events("-h") |