From a609111bc37ef88f14d4f2ebf7cd186b04b86402 Mon Sep 17 00:00:00 2001 From: Dan Klein Date: Sun, 29 Nov 2015 00:25:07 +0200 Subject: Supports all desired stats option, plus clearing option --- scripts/automation/trex_control_plane/console/trex_console.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts/automation/trex_control_plane/console/trex_console.py') 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") -- cgit 1.2.3-korg