From f34d418db773ad900a0dfb600d66d4892bb8a341 Mon Sep 17 00:00:00 2001 From: imarom Date: Sun, 26 Feb 2017 14:21:07 +0200 Subject: added 'pkt' console command to help with debugging single packets transmit Signed-off-by: imarom --- scripts/automation/trex_control_plane/stl/console/trex_console.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts/automation/trex_control_plane/stl/console') 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 5d758fba..a0ff472d 100755 --- a/scripts/automation/trex_control_plane/stl/console/trex_console.py +++ b/scripts/automation/trex_control_plane/stl/console/trex_console.py @@ -580,6 +580,14 @@ class TRexConsole(TRexGeneralCmd): def help_service (self, line): self.do_service("-h") + @verify_connected + def do_pkt (self, line): + '''Sends a scapy notation packet''' + self.stateless_client.pkt_line(line) + + def help_pkt (self, line): + self.do_pkt("-h") + def help_clear(self): self.do_clear("-h") -- cgit 1.2.3-korg