summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/console
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2017-02-26 14:21:07 +0200
committerimarom <imarom@cisco.com>2017-02-26 14:26:51 +0200
commitf34d418db773ad900a0dfb600d66d4892bb8a341 (patch)
tree2f5c27957340646643079b059d93e1a25a746b03 /scripts/automation/trex_control_plane/stl/console
parentbed055d35b3ce5be1dd68ea7635dcf2e2da81567 (diff)
added 'pkt' console command to help with debugging single packets transmit
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/console')
-rwxr-xr-xscripts/automation/trex_control_plane/stl/console/trex_console.py8
1 files changed, 8 insertions, 0 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 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")