correct word
diff --git a/src/python/oftest/testutils.py b/src/python/oftest/testutils.py
index 2903a5e..cc02d2e 100755
--- a/src/python/oftest/testutils.py
+++ b/src/python/oftest/testutils.py
@@ -252,7 +252,7 @@
udp_sport=1234,
udp_dport=4789,
vnid=1,
- inner_pyload=None,
+ inner_payload=None,
ip_ihl=None,
ip_options=False
):
@@ -292,10 +292,13 @@
pkt = scapy.Ether(dst=eth_dst, src=eth_src)/ \
scapy.IP(src=ip_src, dst=ip_dst, tos=ip_tos, ttl=ip_ttl, ihl=ip_ihl, options=ip_options)/ \
scapy.UDP(sport=udp_sport, dport=udp_dport)
+
+
#add vxlan header
pkt = pkt/scapy.VXLAN(vni=vnid)
#add innder payload
- pkt=pkt/inner_pyload
+ if inner_payload!=None:
+ pkt=pkt/inner_payload
return pkt