From 91fd910d7d7611a28d1f85482ed5d5c3ee6a8853 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Fri, 3 Apr 2020 07:46:28 +0000 Subject: geneve: Fix the byte swapping for the VNI Type: fix - swipe away the vomit indent left last time. - add tests for VNIs > 16bit Change-Id: I2d1f591bfb9d7a18996c38969365a509168d4193 Signed-off-by: Neale Ranns --- test/test_vxlan.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/test_vxlan.py') diff --git a/test/test_vxlan.py b/test/test_vxlan.py index 910611c63cc..d66b34d2def 100644 --- a/test/test_vxlan.py +++ b/test/test_vxlan.py @@ -200,9 +200,11 @@ class TestVxlan(BridgeDomain, VppTestCase): super(TestVxlan, self).setUp() # Create VXLAN VTEP on VPP pg0, and put vxlan_tunnel0 and pg1 # into BD. + self.single_tunnel_vni = 0x12345 self.single_tunnel_bd = 1 r = VppVxlanTunnel(self, src=self.pg0.local_ip4, - dst=self.pg0.remote_ip4, vni=self.single_tunnel_bd) + dst=self.pg0.remote_ip4, + vni=self.single_tunnel_vni) r.add_vpp_config() self.vapi.sw_interface_set_l2_bridge(rx_sw_if_index=r.sw_if_index, bd_id=self.single_tunnel_bd) @@ -264,7 +266,7 @@ class TestVxlan(BridgeDomain, VppTestCase): ether = out[0] pkt = reassemble4(out) pkt = ether / pkt - self.check_encapsulation(pkt, self.single_tunnel_bd) + self.check_encapsulation(pkt, self.single_tunnel_vni) payload = self.decapsulate(pkt) # TODO: Scapy bug? -- cgit 1.2.3-korg