[dts] [PATCH] tests vlan: fix vlan not insert
Marvin Liu
yong.liu at intel.com
Thu May 5 06:15:29 CEST 2016
Function name for vlan changed in packet module. Vlan suite should also
updated as followed.
Signed-off-by: Marvin Liu <yong.liu at intel.com>
---
tests/TestSuite_vlan.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_vlan.py b/tests/TestSuite_vlan.py
index ba3741e..1c4608b 100644
--- a/tests/TestSuite_vlan.py
+++ b/tests/TestSuite_vlan.py
@@ -90,7 +90,7 @@ class TestVlan(TestCase):
pkts = load_sniff_packets(self.inst)
vlans = []
for packet in pkts:
- vlan = packet.strip_element_dot1q("vlan")
+ vlan = packet.strip_element_vlan("vlan")
vlans.append(vlan)
return vlans
@@ -117,7 +117,7 @@ class TestVlan(TestCase):
else:
pkt = Packet(pkt_type='VLAN_UDP')
pkt.config_layer('ether', {'dst': self.dmac, 'src': self.smac})
- pkt.config_layer('dot1q', {'vlan': vid})
+ pkt.config_layer('vlan', {'vlan': vid})
pkt.send_pkt(tx_port=self.txItf)
--
1.9.3
More information about the dts
mailing list