Implement Egress TPID flow table test
Change-Id: I6a9aaef52f9400877420dabdcc65197a07e9850c
diff --git a/src/python/oftest/testutils.py b/src/python/oftest/testutils.py
index 57fe0b6..abf4a27 100755
--- a/src/python/oftest/testutils.py
+++ b/src/python/oftest/testutils.py
@@ -304,6 +304,7 @@
in_dl_vlan_enable=False,
out_vlan_vid=0,
out_vlan_pcp=0,
+ out_vlan_tpid=0x8100,
out_dl_vlan_cfi=0,
in_vlan_vid=0,
in_vlan_pcp=0,
@@ -346,7 +347,7 @@
# Note Dot1Q.id is really CFI
if (out_dl_vlan_enable and in_dl_vlan_enable):
- pkt = scapy.Ether(dst=eth_dst, src=eth_src)/ \
+ pkt = scapy.Ether(dst=eth_dst, src=eth_src, type=out_vlan_tpid)/ \
scapy.Dot1Q(prio=out_vlan_pcp, id=out_dl_vlan_cfi, vlan=out_vlan_vid)
if in_dl_vlan_enable: