summaryrefslogtreecommitdiffstats
path: root/test/vpp_bond_interface.py
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2018-06-22 22:33:41 +0200
committerOle Troan <ot@cisco.com>2018-06-22 22:34:56 +0200
commitc8efa29b6f9a91381897b54f1147daf922ed7164 (patch)
tree405258dffbc11e9c29ca10fc8c734ec311a374b4 /test/vpp_bond_interface.py
parentd5c60b96a3fd93916fc4af5c8d6d25625c28242e (diff)
Revert "make test: fix broken interfaces"
This reverts commit d5c60b96a3fd93916fc4af5c8d6d25625c28242e. Change-Id: I3632b9c3f76c615aee897f28f76d094e7031e689 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'test/vpp_bond_interface.py')
-rw-r--r--test/vpp_bond_interface.py5
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)