diff options
author | imarom <imarom@cisco.com> | 2016-02-09 08:17:32 -0500 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-02-09 08:17:32 -0500 |
commit | e8ba50a8940c1288011b434bb1a7df2159578d67 (patch) | |
tree | b86c87714071a9a7f009d50d4693c83461fba118 /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_packet_builder_scapy.py | |
parent | 7e2be1dd25c03b76765cbaa0cfa615210a4efc73 (diff) |
YAML loader
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_packet_builder_scapy.py')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_packet_builder_scapy.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_packet_builder_scapy.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_packet_builder_scapy.py index 0811209a..0828fbd9 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_packet_builder_scapy.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_packet_builder_scapy.py @@ -665,13 +665,12 @@ class CScapyTRexPktBuilder(CTrexPktBuilderInterface): + :exc:`AssertionError`, in case packet is empty. """ - - assert self.pkt, 'empty packet' pkt_buf = self._get_pkt_as_str() return {'binary': base64.b64encode(pkt_buf) if encode else pkt_buf, 'meta': self.metadata} + def dump_pkt_to_pcap(self, file_path): wrpcap(file_path, self._get_pkt_as_str()) |