bonding lacp: replace slave string with member

- Replace textual string slave with member except APIs.
- For APIs, mark the existing APIs as deprecated and introduce new APIs
- While introducing sw_bond_interface_dump, add the optional filter by
  sw_if_index and enhance the testcases to make use of it.

Type: improvement

Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: Ib6626c514e45350308aeeda0decb70f3aba2f63e
This commit is contained in:
Steven Luong
2020-07-15 08:44:54 -07:00
committed by Dave Barach
parent 4d1423c5ac
commit 4c4223edfd
26 changed files with 1424 additions and 1137 deletions

View File

@ -27,18 +27,18 @@ class VppBondInterface(VppInterface):
def remove_vpp_config(self):
self.test.vapi.bond_delete(self.sw_if_index)
def enslave_vpp_bond_interface(self,
sw_if_index,
is_passive=0,
is_long_timeout=0):
self.test.vapi.bond_enslave(sw_if_index,
self.sw_if_index,
is_passive,
is_long_timeout)
def add_member_vpp_bond_interface(self,
sw_if_index,
is_passive=0,
is_long_timeout=0):
self.test.vapi.bond_add_member(sw_if_index,
self.sw_if_index,
is_passive,
is_long_timeout)
def detach_vpp_bond_interface(self,
sw_if_index):
self.test.vapi.bond_detach_slave(sw_if_index)
self.test.vapi.bond_detach_member(sw_if_index)
def is_interface_config_in_dump(self, dump):
for i in dump: