diff options
author | Eyal Bari <ebari@cisco.com> | 2017-05-15 10:13:15 +0300 |
---|---|---|
committer | John Lo <loj@cisco.com> | 2017-05-16 15:10:52 +0000 |
commit | 93b503e1a445f327122276582b68205204a5d62e (patch) | |
tree | 1ea140d52b5e77acc01b708b9bd140bdd5b803f0 /test/vpp_papi_provider.py | |
parent | 814813103bb4acb9ced39c22972bd5e97df13d33 (diff) |
L2FIB: add flush test
add tests for flush int/bd/all
Change-Id: Ia589ec5925b9c8acbb2fc16dafbf4842aa1a6eff
Signed-off-by: Eyal Bari <ebari@cisco.com>
Diffstat (limited to 'test/vpp_papi_provider.py')
-rw-r--r-- | test/vpp_papi_provider.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py index ff8e2cfd595..b8a7a470043 100644 --- a/test/vpp_papi_provider.py +++ b/test/vpp_papi_provider.py @@ -428,6 +428,27 @@ class VppPapiProvider(object): 'filter_mac': filter_mac, 'bvi_mac': bvi_mac}) + def l2fib_flush_int(self, sw_if_index): + """Flush L2 FIB entries for sw_if_index. + + :param int sw_if_index: Software interface index of the interface. + """ + return self.api(self.papi.l2fib_flush_int, + {'sw_if_index': sw_if_index}) + + def l2fib_flush_bd(self, bd_id): + """Flush L2 FIB entries for bd_id. + + :param int sw_if_index: Bridge Domain id. + """ + return self.api(self.papi.l2fib_flush_bd, + {'bd_id': bd_id}) + + def l2fib_flush_all(self): + """Flush all L2 FIB. + """ + return self.api(self.papi.l2fib_flush_all, {}) + def sw_interface_set_l2_bridge(self, sw_if_index, bd_id, shg=0, bvi=0, enable=1): """Add/remove interface to/from bridge domain. |