diff options
author | Neale Ranns <nranns@cisco.com> | 2020-04-03 07:46:28 +0000 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2020-04-10 09:49:55 -0400 |
commit | 8c6efc06104ebccf4915d0d10c399292bac55874 (patch) | |
tree | dc9ef15ba24cc9ddfe6bfe986a65ad44a9af2a7b /src/plugins/gtpu/test/test_gtpu.py | |
parent | 5a4ee8d824d1d49d405832b4251a5282e3cc9373 (diff) |
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 <nranns@cisco.com>
(cherry picked from commit 91fd910d7d7611a28d1f85482ed5d5c3ee6a8853)
Diffstat (limited to 'src/plugins/gtpu/test/test_gtpu.py')
-rw-r--r-- | src/plugins/gtpu/test/test_gtpu.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/gtpu/test/test_gtpu.py b/src/plugins/gtpu/test/test_gtpu.py index 667d61c0143..00f641c0088 100644 --- a/src/plugins/gtpu/test/test_gtpu.py +++ b/src/plugins/gtpu/test/test_gtpu.py @@ -187,7 +187,7 @@ class TestGtpu(BridgeDomain, VppTestCase): # Pick first received frame and check if it's correctly encapsulated. out = self.pg0.get_capture(1) pkt = out[0] - self.check_encapsulation(pkt, self.single_tunnel_bd) + self.check_encapsulation(pkt, self.single_tunnel_vni) # payload = self.decapsulate(pkt) # self.assert_eq_pkts(payload, self.frame_reply) @@ -343,13 +343,14 @@ class TestGtpu(BridgeDomain, VppTestCase): # Create GTPU VTEP on VPP pg0, and put gtpu_tunnel0 and pg1 # into BD. cls.single_tunnel_bd = 11 + cls.single_tunnel_vni = 11 r = cls.vapi.gtpu_add_del_tunnel( is_add=True, mcast_sw_if_index=0xFFFFFFFF, decap_next_index=0xFFFFFFFF, src_address=cls.pg0.local_ip4, dst_address=cls.pg0.remote_ip4, - teid=cls.single_tunnel_bd) + teid=cls.single_tunnel_vni) cls.vapi.sw_interface_set_l2_bridge(rx_sw_if_index=r.sw_if_index, bd_id=cls.single_tunnel_bd) cls.vapi.sw_interface_set_l2_bridge( |