summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Liu <yong.liu@intel.com>2015-07-21 10:12:39 +0800
committerMarvin Liu <yong.liu@intel.com>2015-07-21 10:17:51 +0800
commit0d98f2ddd4ead9e5db456e67ee525da2f34429fa (patch)
tree3920d49a1f87aaaed1c6592ea96973cf0a4fd15e
parente6c046ec3ae09e000b9fdbbc0132bde369d9dd6b (diff)
downloaddts-0d98f2ddd4ead9e5db456e67ee525da2f34429fa.zip
dts-0d98f2ddd4ead9e5db456e67ee525da2f34429fa.tar.gz
dts-0d98f2ddd4ead9e5db456e67ee525da2f34429fa.tar.xz
fix bug that packet type detect failure
Packet type value changed after unified packet type. So suite need modification as consequence. Signed-off-by: Marvin Liu <yong.liu@intel.com>
-rw-r--r--tests/TestSuite_nvgre.py10
-rw-r--r--tests/TestSuite_vxlan.py10
2 files changed, 10 insertions, 10 deletions
diff --git a/tests/TestSuite_nvgre.py b/tests/TestSuite_nvgre.py
index 62bb83b..954259d 100644
--- a/tests/TestSuite_nvgre.py
+++ b/tests/TestSuite_nvgre.py
@@ -163,14 +163,14 @@ class NvgreTestConfig(object):
"""
if self.outer_ip_proto != 47:
if self.outer_l3_type == 'IPv4':
- return 'PKT_RX_IPV4_HDR'
+ return '(outer) L3 type: IPV4_EXT_UNKNOWN'
else:
- return 'PKT_RX_IPV6_HDR'
+ return '(outer) L3 type: IPV6_EXT_UNKNOWN'
else:
- if self.outer_l3_type == 'IPv4':
- return 'PKT_RX_TUNNEL_IPV4_HDR'
+ if self.inner_l3_type == 'IPv4':
+ return 'Inner L3 type: IPV4_EXT_UNKNOWN'
else:
- return 'PKT_RX_TUNNEL_IPV6_HDR'
+ return 'Inner L3 type: IPV6_EXT_UNKNOWN'
def create_pcap(self, scp=True):
"""
diff --git a/tests/TestSuite_vxlan.py b/tests/TestSuite_vxlan.py
index 9dd7862..91da7ca 100644
--- a/tests/TestSuite_vxlan.py
+++ b/tests/TestSuite_vxlan.py
@@ -90,14 +90,14 @@ class VxlanTestConfig(object):
"""
if self.outer_udp_dst != VXLAN_PORT:
if self.outer_ip6_src != 'N/A':
- return 'PKT_RX_IPV6_HDR'
+ return '(outer) L3 type: IPV6_EXT_UNKNOWN'
else:
- return 'PKT_RX_IPV4_HDR'
+ return '(outer) L3 type: IPV4_EXT_UNKNOWN'
else:
- if self.outer_ip6_src != 'N/A':
- return 'PKT_RX_TUNNEL_IPV6_HDR'
+ if self.inner_ip6_src != 'N/A':
+ return 'Inner L3 type: IPV6_EXT_UNKNOWN'
else:
- return 'PKT_RX_TUNNEL_IPV4_HDR'
+ return 'Inner L3 type: IPV4_EXT_UNKNOWN'
def create_pcap(self, scp=True):
"""