[dts] [PATCH v3 06/17] tests/netmap_compat: Replace sniff_packet to tester.tcpdump_sniff_packet
Phil Yang
phil.yang at arm.com
Mon Apr 2 05:46:15 CEST 2018
Make sniff_packet running on the tester. Create a ssh connection to the
tester then call tcpdump.
Signed-off-by: Phil Yang <phil.yang at arm.com>
---
tests/TestSuite_netmap_compat.py | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/tests/TestSuite_netmap_compat.py b/tests/TestSuite_netmap_compat.py
index 5225a27..84136c7 100644
--- a/tests/TestSuite_netmap_compat.py
+++ b/tests/TestSuite_netmap_compat.py
@@ -43,7 +43,6 @@ from test_case import TestCase
from plotting import Plotting
from settings import HEADER_SIZE
from etgen import IxiaPacketGenerator
-from packet import Packet, sniff_packets, load_sniff_packets
class TestNetmapCompat(TestCase):
@@ -80,7 +79,7 @@ class TestNetmapCompat(TestCase):
self.rxItf = self.tester.get_interface(self.tester.get_local_port(self.dut_ports[0]))
- self.inst = sniff_packets(self.rxItf)
+ self.inst = self.tester.tcpdump_sniff_packets(self.rxItf)
self.scapy_send_packet()
@@ -98,7 +97,7 @@ class TestNetmapCompat(TestCase):
self.dut.send_expect(cmd,"Port %s now in Netmap mode" % self.dut_ports[0], 60)
self.rxItf = self.tester.get_interface(self.tester.get_local_port(self.dut_ports[1]))
- self.inst = sniff_packets(self.rxItf)
+ self.inst = self.tester.tcpdump_sniff_packets(self.rxItf)
self.scapy_send_packet()
@@ -117,7 +116,7 @@ class TestNetmapCompat(TestCase):
def get_tcpdump_package(self):
- pkts = load_sniff_packets(self.inst)
+ pkts = self.tester.load_tcpdump_sniff_packets(self.inst)
dsts = []
for packet in pkts:
dst = packet.strip_element_layer2("dst")
--
2.7.4
More information about the dts
mailing list