diff options
Diffstat (limited to 'src/console/trex_console.py')
-rwxr-xr-x | src/console/trex_console.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/console/trex_console.py b/src/console/trex_console.py index 3e452bf5..ca4c7e86 100755 --- a/src/console/trex_console.py +++ b/src/console/trex_console.py @@ -4,6 +4,7 @@ import cmd import json from trex_rpc_client import RpcClient +import trex_status class TrexConsole(cmd.Cmd): """Trex Console""" @@ -78,6 +79,10 @@ class TrexConsole(cmd.Cmd): def complete_rpc (self, text, line, begidx, endidx): return [x for x in self.supported_rpc if x.startswith(text)] + def do_status (self, line): + '''Shows a graphical console\n''' + trex_status.show_trex_status(self.rpc_client) + def do_quit(self, line): '''\nexit the client\n''' return True |