test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH]tests vxlan_sample(tep_termination): Import vxlan layer from dep folder
@ 2016-04-20  5:26 Lijuan Tu
  2016-04-22  1:39 ` Liu, Yong
  0 siblings, 1 reply; 2+ messages in thread
From: Lijuan Tu @ 2016-04-20  5:26 UTC (permalink / raw)
  To: dts, yong.liu; +Cc: Lijuan Tu

Signed-off-by: Lijuan Tu <lijuanx.a.tu@intel.com>
---
 tests/TestSuite_vxlan_sample.py | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/tests/TestSuite_vxlan_sample.py b/tests/TestSuite_vxlan_sample.py
index c7e0701..13e63c5 100644
--- a/tests/TestSuite_vxlan_sample.py
+++ b/tests/TestSuite_vxlan_sample.py
@@ -48,12 +48,13 @@ from etgen import IxiaPacketGenerator
 from qemu_kvm import QEMUKvm
 from TestSuite_vxlan import VxlanTestConfig
 from pmd_output import PmdOutput
+from packet import IncreaseIP, IncreaseIPv6
 
-from scapy.utils import struct, socket, wrpcap, rdpcap
+from scapy.utils import wrpcap, rdpcap
 from scapy.layers.inet import Ether, IP, TCP, UDP
 from scapy.layers.inet6 import IPv6
 from scapy.layers.l2 import Dot1Q
-from scapy.layers.vxlan import Vxlan
+from vxlan import Vxlan
 from scapy.layers.sctp import SCTP, SCTPChunkData
 from scapy.sendrecv import sniff
 from scapy.config import conf
@@ -345,7 +346,7 @@ class TestVxlanSample(TestCase):
 
             # create vxlan pcap file and tranfer it to tester
             vxlan_pkt = VxlanTestConfig(self, **params)
-            vxlan_pkt.create_pcap(scp=True)
+            vxlan_pkt.create_pcap()
 
             # start capture
             self.start_capture(tester_iface, pkt_dmac=params['inner_mac_dst'])
@@ -380,7 +381,7 @@ class TestVxlanSample(TestCase):
 
             # create vxlan pcap file and tranfer it to tester
             vxlan_pkt = VxlanTestConfig(self, **params)
-            vxlan_pkt.create_pcap(scp=True)
+            vxlan_pkt.create_pcap()
 
             # start capture
             self.start_capture(tester_iface, pkt_smac=self.pf_mac)
@@ -422,19 +423,19 @@ class TestVxlanSample(TestCase):
             vxlan_pkt = VxlanTestConfig(self, **params)
             vxlan_pkt.create_pcap()
             chksums_ref = vxlan_pkt.get_chksums()
+            print dts.GREEN("Checksum reference: %s" % chksums_ref)
 
             params['inner_ip_invalid'] = 1
             params['inner_l4_invalid'] = 1
 
             # create vxlan pcap file and tranfer it to tester
             vxlan_pkt = VxlanTestConfig(self, **params)
-            vxlan_pkt.create_pcap(scp=True)
+            vxlan_pkt.create_pcap()
 
             # start capture
             self.start_capture(tester_iface, pkt_smac=self.pf_mac)
             vxlan_pkt.send_pcap(tester_iface)
             time.sleep(5)
-
             # transfer capture pcap to dts server
             pkts = self.transfer_capture_file()
             # check packet number and payload
@@ -442,6 +443,7 @@ class TestVxlanSample(TestCase):
             self.verify(pkts[0].haslayer(Vxlan) == 1,
                         "Packet not encapsulated")
             chksums = vxlan_pkt.get_chksums(pcap='vxlan_cap.pcap')
+            print dts.GREEN("Checksum : %s" % chksums)
             for key in chksums_ref:
                 if 'inner' in key:  # only check inner packet chksum
                     self.verify(chksums[key] == chksums_ref[key],
@@ -551,7 +553,7 @@ class TestVxlanSample(TestCase):
 
             # create vxlan pcap file and tranfer it to tester
             vxlan_pkt = VxlanTestConfig(self, **params)
-            vxlan_pkt.create_pcap(scp=False)
+            vxlan_pkt.create_pcap()
 
             if perf_cfg['VirtIO'] == "Two Ports":
                 # create vxlan packet pf mac + vni=1000 + inner virtIO port0
-- 
1.9.3

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

* Re: [dts] [PATCH]tests vxlan_sample(tep_termination): Import vxlan layer from dep folder
  2016-04-20  5:26 [dts] [PATCH]tests vxlan_sample(tep_termination): Import vxlan layer from dep folder Lijuan Tu
@ 2016-04-22  1:39 ` Liu, Yong
  0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2016-04-22  1:39 UTC (permalink / raw)
  To: Lijuan Tu, dts

Thanks, applied.

On 04/20/2016 01:26 PM, Lijuan Tu wrote:
> Signed-off-by: Lijuan Tu <lijuanx.a.tu@intel.com>
> ---
>   tests/TestSuite_vxlan_sample.py | 16 +++++++++-------
>   1 file changed, 9 insertions(+), 7 deletions(-)
>
> diff --git a/tests/TestSuite_vxlan_sample.py b/tests/TestSuite_vxlan_sample.py
> index c7e0701..13e63c5 100644
> --- a/tests/TestSuite_vxlan_sample.py
> +++ b/tests/TestSuite_vxlan_sample.py
> @@ -48,12 +48,13 @@ from etgen import IxiaPacketGenerator
>   from qemu_kvm import QEMUKvm
>   from TestSuite_vxlan import VxlanTestConfig
>   from pmd_output import PmdOutput
> +from packet import IncreaseIP, IncreaseIPv6
>   
> -from scapy.utils import struct, socket, wrpcap, rdpcap
> +from scapy.utils import wrpcap, rdpcap
>   from scapy.layers.inet import Ether, IP, TCP, UDP
>   from scapy.layers.inet6 import IPv6
>   from scapy.layers.l2 import Dot1Q
> -from scapy.layers.vxlan import Vxlan
> +from vxlan import Vxlan
>   from scapy.layers.sctp import SCTP, SCTPChunkData
>   from scapy.sendrecv import sniff
>   from scapy.config import conf
> @@ -345,7 +346,7 @@ class TestVxlanSample(TestCase):
>   
>               # create vxlan pcap file and tranfer it to tester
>               vxlan_pkt = VxlanTestConfig(self, **params)
> -            vxlan_pkt.create_pcap(scp=True)
> +            vxlan_pkt.create_pcap()
>   
>               # start capture
>               self.start_capture(tester_iface, pkt_dmac=params['inner_mac_dst'])
> @@ -380,7 +381,7 @@ class TestVxlanSample(TestCase):
>   
>               # create vxlan pcap file and tranfer it to tester
>               vxlan_pkt = VxlanTestConfig(self, **params)
> -            vxlan_pkt.create_pcap(scp=True)
> +            vxlan_pkt.create_pcap()
>   
>               # start capture
>               self.start_capture(tester_iface, pkt_smac=self.pf_mac)
> @@ -422,19 +423,19 @@ class TestVxlanSample(TestCase):
>               vxlan_pkt = VxlanTestConfig(self, **params)
>               vxlan_pkt.create_pcap()
>               chksums_ref = vxlan_pkt.get_chksums()
> +            print dts.GREEN("Checksum reference: %s" % chksums_ref)
>   
>               params['inner_ip_invalid'] = 1
>               params['inner_l4_invalid'] = 1
>   
>               # create vxlan pcap file and tranfer it to tester
>               vxlan_pkt = VxlanTestConfig(self, **params)
> -            vxlan_pkt.create_pcap(scp=True)
> +            vxlan_pkt.create_pcap()
>   
>               # start capture
>               self.start_capture(tester_iface, pkt_smac=self.pf_mac)
>               vxlan_pkt.send_pcap(tester_iface)
>               time.sleep(5)
> -
>               # transfer capture pcap to dts server
>               pkts = self.transfer_capture_file()
>               # check packet number and payload
> @@ -442,6 +443,7 @@ class TestVxlanSample(TestCase):
>               self.verify(pkts[0].haslayer(Vxlan) == 1,
>                           "Packet not encapsulated")
>               chksums = vxlan_pkt.get_chksums(pcap='vxlan_cap.pcap')
> +            print dts.GREEN("Checksum : %s" % chksums)
>               for key in chksums_ref:
>                   if 'inner' in key:  # only check inner packet chksum
>                       self.verify(chksums[key] == chksums_ref[key],
> @@ -551,7 +553,7 @@ class TestVxlanSample(TestCase):
>   
>               # create vxlan pcap file and tranfer it to tester
>               vxlan_pkt = VxlanTestConfig(self, **params)
> -            vxlan_pkt.create_pcap(scp=False)
> +            vxlan_pkt.create_pcap()
>   
>               if perf_cfg['VirtIO'] == "Two Ports":
>                   # create vxlan packet pf mac + vni=1000 + inner virtIO port0

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

end of thread, other threads:[~2016-04-22  1:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-20  5:26 [dts] [PATCH]tests vxlan_sample(tep_termination): Import vxlan layer from dep folder Lijuan Tu
2016-04-22  1:39 ` Liu, Yong

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).