diff options
author | Neale Ranns <nranns@cisco.com> | 2017-12-13 09:13:41 -0800 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2017-12-14 09:25:31 +0000 |
commit | ceb4d05ba0fb9771069b0081b928a9e75401fc87 (patch) | |
tree | cf05e164bcd06abde9e75a72ff402837a0644a2c /test | |
parent | ff6e7699a5e9921d73818970ecf3571080922ecc (diff) |
BIER disposition default route
Change-Id: I7196ad8bf6afaf356674789c05e23ac000bc038e
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/test_bier.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/test_bier.py b/test/test_bier.py index 48d0a297ca6..514265cb5b5 100644 --- a/test/test_bier.py +++ b/test/test_bier.py @@ -335,6 +335,31 @@ class TestBier(VppTestCase): self.send_and_expect(self.pg0, [p], self.pg1) + # + # A packet that does not match the Disposition entry gets dropped + # + p = (Ether(dst=self.pg0.local_mac, src=self.pg0.remote_mac) / + MPLS(label=77, ttl=255) / + BIER(length=BIERLength.BIER_LEN_256, BFRID=77) / + IP(src="1.1.1.1", dst="232.1.1.1") / + UDP(sport=1234, dport=1234) / + Raw()) + self.send_and_assert_no_replies(self.pg0, p*2, + "no matching disposition entry") + + # + # Add the default route to the disposition table + # + bier_de_2 = VppBierDispEntry(self, bdt.id, 0, + BIER_HDR_PAYLOAD.BIER_HDR_PROTO_IPV4, + "0.0.0.0", 0, rpf_id=8192) + bier_de_2.add_vpp_config() + + # + # now the previous packet is forwarded + # + self.send_and_expect(self.pg0, [p], self.pg1) + def test_bier_e2e(self): """ BIER end-to-end """ |