summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/console/trex_console.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-04-12 14:26:10 +0300
committerimarom <imarom@cisco.com>2016-04-12 14:59:59 +0300
commit5a26a09958318032868d82a7d2d0207464e1af2d (patch)
treecdf99b60d8b298a5f4fc6fbd2e431dcd442aebb0 /scripts/automation/trex_control_plane/stl/console/trex_console.py
parent2a3c0616c8cfb6b11a83ab8dc6a45e315d16bd26 (diff)
events API and RX core util.
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/console/trex_console.py')
-rwxr-xr-xscripts/automation/trex_control_plane/stl/console/trex_console.py25
1 files changed, 2 insertions, 23 deletions
diff --git a/scripts/automation/trex_control_plane/stl/console/trex_console.py b/scripts/automation/trex_control_plane/stl/console/trex_console.py
index aade572f..94cb4009 100755
--- a/scripts/automation/trex_control_plane/stl/console/trex_console.py
+++ b/scripts/automation/trex_control_plane/stl/console/trex_console.py
@@ -538,28 +538,7 @@ class TRexConsole(TRexGeneralCmd):
def do_events (self, line):
'''shows events recieved from server\n'''
-
- x = parsing_opts.ArgumentPack(['-c','--clear'],
- {'action' : "store_true",
- 'default': False,
- 'help': "clear the events log"})
-
- parser = parsing_opts.gen_parser(self,
- "events",
- self.do_events.__doc__,
- x)
-
- opts = parser.parse_args(line.split())
- if opts is None:
- return
-
- events = self.stateless_client.get_events()
- for ev in events:
- print(ev)
-
- if opts.clear:
- self.stateless_client.clear_events()
- print(format_text("\n\nEvent log was cleared\n\n"))
+ return self.stateless_client.get_events_line(line)
def complete_profile(self, text, line, begidx, endidx):
@@ -591,7 +570,7 @@ class TRexConsole(TRexGeneralCmd):
info = self.stateless_client.get_connection_info()
exe = './trex-console --top -t -q -s {0} -p {1} --async_port {2}'.format(info['server'], info['sync_port'], info['async_port'])
- cmd = ['/usr/bin/xterm', '-geometry', '111x47', '-sl', '0', '-title', 'trex_tui', '-e', exe]
+ cmd = ['/usr/bin/xterm', '-geometry', '111x48', '-sl', '0', '-title', 'trex_tui', '-e', exe]
self.terminal = subprocess.Popen(cmd)