aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_bier.py
diff options
context:
space:
mode:
authorNeale Ranns <neale.ranns@cisco.com>2018-01-09 04:11:28 -0800
committerNeale Ranns <nranns@cisco.com>2018-01-09 13:49:50 +0000
commiteea537a288721b867d65b736363ab3f71ba6116c (patch)
treea9eb23c91b9f1f8f7c6e6ab723748c2317c7e848 /test/test_bier.py
parent52fae862646e25bac6d1cd11b9fc7ac77299bc25 (diff)
BIER: missing endian swap for imposition object in API return
Change-Id: Iddd754d00ace3d042336e5c2c40431566275051a Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'test/test_bier.py')
-rw-r--r--test/test_bier.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/test_bier.py b/test/test_bier.py
index e9c23febdd1..03ae52abad4 100644
--- a/test/test_bier.py
+++ b/test/test_bier.py
@@ -470,10 +470,14 @@ class TestBier(VppTestCase):
bier_route.add_vpp_config()
#
- # An imposition object with all bit-positions set
+ # An 2 imposition objects with all bit-positions set
+ # only use the second, but creating 2 tests with a non-zero
+ # value index in the route add
#
bi = VppBierImp(self, bti, 333, chr(0xff) * 32)
bi.add_vpp_config()
+ bi2 = VppBierImp(self, bti, 334, chr(0xff) * 32)
+ bi2.add_vpp_config()
#
# Add a multicast route that will forward into the BIER doamin
@@ -488,7 +492,7 @@ class TestBier(VppTestCase):
VppMRoutePath(0xffffffff,
MRouteItfFlags.MFIB_ITF_FLAG_FORWARD,
proto=DpoProto.DPO_PROTO_BIER,
- bier_imp=bi.bi_index)])
+ bier_imp=bi2.bi_index)])
route_ing_232_1_1_1.add_vpp_config()
#