From 8ea109e40a65c1d7696162fa3d4c1e386b6c9414 Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Fri, 22 Mar 2019 15:13:31 +0100 Subject: gbp: Add bd flags Add flags for unknown unicast drop, multicast and broadcast drop and arp unicast. Change-Id: I1203137510b8bee0a20ecfe5f2efad8043d4bac6 Signed-off-by: Mohsin Kazmi --- test/test_gbp.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_gbp.py b/test/test_gbp.py index 7f9032970d5..b9bca811cbc 100644 --- a/test/test_gbp.py +++ b/test/test_gbp.py @@ -318,7 +318,7 @@ class VppGbpBridgeDomain(VppObject): """ def __init__(self, test, bd, bvi, uu_fwd=None, - bm_flood=None, learn=True): + bm_flood=None, learn=True, uu_drop=False, bm_drop=False): self._test = test self.bvi = bvi self.uu_fwd = uu_fwd @@ -330,6 +330,10 @@ class VppGbpBridgeDomain(VppObject): self.learn = e.GBP_BD_API_FLAG_NONE else: self.learn = e.GBP_BD_API_FLAG_DO_NOT_LEARN + if (uu_drop): + self.learn |= e.GBP_BD_API_FLAG_UU_FWD_DROP + if (bm_drop): + self.learn |= e.GBP_BD_API_FLAG_MCAST_DROP def add_vpp_config(self): self._test.vapi.gbp_bridge_domain_add( -- cgit 1.2.3-korg