summaryrefslogtreecommitdiffstats
path: root/test/vpp_bond_interface.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/vpp_bond_interface.py')
-rw-r--r--test/vpp_bond_interface.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/vpp_bond_interface.py b/test/vpp_bond_interface.py
index 1c33e1cecd6..4bd7cb8235c 100644
--- a/test/vpp_bond_interface.py
+++ b/test/vpp_bond_interface.py
@@ -14,8 +14,6 @@ class VppBondInterface(VppInterface):
self.lb = lb
self.use_custom_mac = use_custom_mac
self.mac_address = mac_address
- self._sw_if_index = 0
- super(VppBondInterface, self).__init__(test)
def add_vpp_config(self):
r = self.test.vapi.bond_create(self.mode,
@@ -23,6 +21,7 @@ class VppBondInterface(VppInterface):
self.use_custom_mac,
self.mac_address)
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)