summaryrefslogtreecommitdiffstats
path: root/test/test_gbp.py
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2019-03-22 15:13:31 +0100
committerNeale Ranns <nranns@cisco.com>2019-04-04 07:29:34 +0000
commit8ea109e40a65c1d7696162fa3d4c1e386b6c9414 (patch)
tree949205872a9366ed13c3979bdc1b712101bc8c62 /test/test_gbp.py
parentdc66aadb9ad7e4a7623e6689a21a46aadb9942b4 (diff)
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 <sykazmi@cisco.com>
Diffstat (limited to 'test/test_gbp.py')
-rw-r--r--test/test_gbp.py6
1 files changed, 5 insertions, 1 deletions
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(