test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/vmdq: recorrect the dst mac of pcap
@ 2020-06-17 18:29 lihong
  2020-06-18  2:12 ` Han, YingyaX
  2020-06-19  6:23 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: lihong @ 2020-06-17 18:29 UTC (permalink / raw)
  To: dts, yingyax.han; +Cc: lihong

Signed-off-by: lihong <lihongx.ma@intel.com>
---
 tests/TestSuite_vmdq.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_vmdq.py b/tests/TestSuite_vmdq.py
index e5dcd82..162636f 100644
--- a/tests/TestSuite_vmdq.py
+++ b/tests/TestSuite_vmdq.py
@@ -166,11 +166,13 @@ class TestVmdq(TestCase):
         for _port in self.dut_ports:
             if _port % len(self.dut_ports) == 0 or len(self.dut_ports) % _port == 2:
                 txIntf = self.tester.get_local_port(self.dut_ports[_port + 1])
+                dst_port = _port + 1
             else:
                 txIntf = self.tester.get_local_port(self.dut_ports[_port - 1])
+                dst_port = _port - 1
             rxIntf = self.tester.get_local_port(self.dut_ports[_port])
-            self.tester.scapy_append('flows = [Ether(dst="%s")/Dot1Q(vlan=0)/("X"*%d)]'
-                                     % (self.destmac_port[txIntf], payload))
+            self.tester.scapy_append('flows = [Ether(dst="%s")/Dot1Q(vlan=0)/IP(src="1.2.3.4", dst="1.1.1.1")/("X"*%d)]'
+                                     % (self.destmac_port[dst_port], payload))
             pcap = os.sep.join([self.output_path, "%s-%d.pcap" % (self.suite_name, _port)])
             self.tester.scapy_append('wrpcap("%s", flows)' % pcap)
             self.tester.scapy_execute()
-- 
2.7.4


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-19  6:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-17 18:29 [dts] [PATCH V1] tests/vmdq: recorrect the dst mac of pcap lihong
2020-06-18  2:12 ` Han, YingyaX
2020-06-19  6:23 ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).