summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNeale Ranns <neale.ranns@cisco.com>2018-09-24 23:38:37 -0700
committerDamjan Marion <dmarion@me.com>2018-09-25 11:59:37 +0000
commitfe4e48f617f3e0f62880adebdcfb5989aa4e6db7 (patch)
treeb5d0778bc798a9119760992f878ff2e3666ea1ee /test
parent608f95cddc4e1e78b4d3ac3b2c3f1ae86f1fa632 (diff)
BIER; bi-dir to/from underlay
set and check a special RX interface value as the packet enters and exits a BIER domain Change-Id: I5ff2f0e2d1b3ce0f3598b935f518fc11eb0896ee Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/test_bier.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/test_bier.py b/test/test_bier.py
index b719f0cfbf6..cc4c9b3ea0c 100644
--- a/test/test_bier.py
+++ b/test/test_bier.py
@@ -482,6 +482,37 @@ class TestBier(VppTestCase):
#
self.send_and_expect(self.pg0, [p], self.pg1)
+ #
+ # A multicast route to forward post BIER disposition that needs
+ # a check against sending back into the BIER core
+ #
+ bi = VppBierImp(self, bti, 333, chr(0x3) * 32)
+ bi.add_vpp_config()
+
+ route_eg_232_1_1_2 = VppIpMRoute(
+ self,
+ "0.0.0.0",
+ "232.1.1.2", 32,
+ MRouteEntryFlags.MFIB_ENTRY_FLAG_NONE,
+ paths=[VppMRoutePath(0xffffffff,
+ MRouteItfFlags.MFIB_ITF_FLAG_FORWARD,
+ proto=DpoProto.DPO_PROTO_BIER,
+ bier_imp=bi.bi_index),
+ VppMRoutePath(self.pg1.sw_if_index,
+ MRouteItfFlags.MFIB_ITF_FLAG_FORWARD)])
+ route_eg_232_1_1_2.add_vpp_config()
+ route_eg_232_1_1_2.update_rpf_id(8192)
+
+ p = (Ether(dst=self.pg0.local_mac, src=self.pg0.remote_mac) /
+ MPLS(label=77, ttl=255) /
+ BIER(length=BIERLength.BIER_LEN_256,
+ BitString=chr(255)*32,
+ BFRID=77) /
+ IP(src="1.1.1.1", dst="232.1.1.2") /
+ UDP(sport=1234, dport=1234) /
+ Raw())
+ self.send_and_expect(self.pg0, [p], self.pg1)
+
def bier_e2e(self, hdr_len_id, n_bytes, max_bp):
""" BIER end-to-end"""