1 from vpp_object import VppObject
2 from vpp_interface import VppInterface
5 class VppBondInterface(VppInterface):
6 """VPP bond interface."""
20 """Create VPP Bond interface"""
21 super(VppBondInterface, self).__init__(test)
24 self.numa_only = numa_only
25 self.enable_gso = enable_gso
26 self.use_custom_mac = use_custom_mac
27 self.mac_address = mac_address
30 def add_vpp_config(self):
31 r = self.test.vapi.bond_create2(
40 self.set_sw_if_index(r.sw_if_index)
42 def remove_vpp_config(self):
43 self.test.vapi.bond_delete(self.sw_if_index)
45 def add_member_vpp_bond_interface(
46 self, sw_if_index, is_passive=0, is_long_timeout=0
48 self.test.vapi.bond_add_member(
49 sw_if_index, self.sw_if_index, is_passive, is_long_timeout
52 def detach_vpp_bond_interface(self, sw_if_index):
53 self.test.vapi.bond_detach_member(sw_if_index)
55 def is_interface_config_in_dump(self, dump):
57 if i.sw_if_index == self.sw_if_index: