diff options
author | 2017-02-26 14:21:07 +0200 | |
---|---|---|
committer | 2017-02-26 14:26:51 +0200 | |
commit | f34d418db773ad900a0dfb600d66d4892bb8a341 (patch) | |
tree | 2f5c27957340646643079b059d93e1a25a746b03 /scripts/automation/trex_control_plane/stl/console | |
parent | bed055d35b3ce5be1dd68ea7635dcf2e2da81567 (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-x | scripts/automation/trex_control_plane/stl/console/trex_console.py | 8 |
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") |