aboutsummaryrefslogtreecommitdiffstats
path: root/test/vpp_bond_interface.py
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2018-05-23 20:22:20 +0200
committerDamjan Marion <dmarion.lists@gmail.com>2018-05-23 20:52:24 +0000
commitc798bc5b11ad4a0b8673a4a039b448a5c723f17c (patch)
treed57ffbea24a3991478ffb99040a3820731a9576e /test/vpp_bond_interface.py
parentda6e11b47d47c764b11304524de559dda0d0d223 (diff)
make test: VPP-1288 fix from sw_if_index values
Change-Id: I80297e78d93d8cf0d347863e4d2fdb12ea9294ac Signed-off-by: Klement Sekera <ksekera@cisco.com>
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)