diff options
Diffstat (limited to 'test/vpp_bond_interface.py')
-rw-r--r-- | test/vpp_bond_interface.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/vpp_bond_interface.py b/test/vpp_bond_interface.py index 153f1142c5c..4bd7cb8235c 100644 --- a/test/vpp_bond_interface.py +++ b/test/vpp_bond_interface.py @@ -9,7 +9,7 @@ class VppBondInterface(VppInterface): use_custom_mac=0, mac_address=''): """ Create VPP Bond interface """ - super(VppBondInterface, self).__init__(test) + self._test = test self.mode = mode self.lb = lb self.use_custom_mac = use_custom_mac @@ -20,7 +20,8 @@ class VppBondInterface(VppInterface): self.lb, self.use_custom_mac, self.mac_address) - self.set_sw_if_index(r.sw_if_index) + self._sw_if_index = r.sw_if_index + super(VppBondInterface, self).__init__(self._test) def remove_vpp_config(self): self.test.vapi.bond_delete(self.sw_if_index) |