aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/patches/scapy-2.3.3/vxlan.patch11
-rw-r--r--test/test_vxlan_gpe.py2
2 files changed, 12 insertions, 1 deletions
diff --git a/test/patches/scapy-2.3.3/vxlan.patch b/test/patches/scapy-2.3.3/vxlan.patch
new file mode 100644
index 00000000000..556df4dd70a
--- /dev/null
+++ b/test/patches/scapy-2.3.3/vxlan.patch
@@ -0,0 +1,11 @@
+diff --git a/scapy/layers/vxlan.py b/scapy/layers/vxlan.py
+--- a/scapy/layers/vxlan.py
++++ b/scapy/layers/vxlan.py
+@@ -65,6 +65,7 @@
+ return self.sprintf("VXLAN (vni=%VXLAN.vni%)")
+
+ bind_layers(UDP, VXLAN, dport=4789) # RFC standard port
++bind_layers(UDP, VXLAN, dport=4790) # RFC standard vxlan-gpe port
+ bind_layers(UDP, VXLAN, dport=6633) # New IANA assigned port for use with NSH
+ bind_layers(UDP, VXLAN, dport=8472) # Linux implementation port
+ bind_layers(VXLAN, Ether, {'flags': 0x8})
diff --git a/test/test_vxlan_gpe.py b/test/test_vxlan_gpe.py
index 40975bf16f3..762e0709f13 100644
--- a/test/test_vxlan_gpe.py
+++ b/test/test_vxlan_gpe.py
@@ -72,7 +72,7 @@ class TestVxlanGpe(BridgeDomain, VppTestCase):
# could be arbitrary.
self.assertEqual(pkt[UDP].dport, type(self).dport)
# Verify VNI
- self.assertEqual(pkt[VXLAN].VNI, vni)
+ self.assertEqual(pkt[VXLAN].vni, vni)
def test_decap(self):
""" Decapsulation test