From e8ba50a8940c1288011b434bb1a7df2159578d67 Mon Sep 17 00:00:00 2001 From: imarom Date: Tue, 9 Feb 2016 08:17:32 -0500 Subject: YAML loader --- .../stl/trex_stl_lib/trex_stl_packet_builder_scapy.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_packet_builder_scapy.py') 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()) -- cgit 1.2.3-korg