diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_bond.py | 9 | ||||
-rw-r--r-- | test/vpp_bond_interface.py | 4 |
2 files changed, 5 insertions, 8 deletions
diff --git a/test/test_bond.py b/test/test_bond.py index 60ee33c0356..27da15c5ab5 100644 --- a/test/test_bond.py +++ b/test/test_bond.py @@ -86,13 +86,9 @@ class TestBondInterface(VppTestCase): # enslave pg0 and pg1 to BondEthernet0 self.logger.info("bond enslave interface pg0 to BondEthernet0") - bond0.enslave_vpp_bond_interface(sw_if_index=self.pg0.sw_if_index, - is_passive=0, - is_long_timeout=0) + bond0.enslave_vpp_bond_interface(sw_if_index=self.pg0.sw_if_index) self.logger.info("bond enslave interface pg1 to BondEthernet0") - bond0.enslave_vpp_bond_interface(sw_if_index=self.pg1.sw_if_index, - is_passive=0, - is_long_timeout=0) + bond0.enslave_vpp_bond_interface(sw_if_index=self.pg1.sw_if_index) # verify both slaves in BondEthernet0 if_dump = self.vapi.sw_interface_slave_dump(bond0.sw_if_index) @@ -276,5 +272,6 @@ class TestBondInterface(VppTestCase): if_dump = self.vapi.sw_interface_bond_dump() self.assertFalse(bond0.is_interface_config_in_dump(if_dump)) + if __name__ == '__main__': unittest.main(testRunner=VppTestRunner) diff --git a/test/vpp_bond_interface.py b/test/vpp_bond_interface.py index f05a07b0ce2..0db04e135b1 100644 --- a/test/vpp_bond_interface.py +++ b/test/vpp_bond_interface.py @@ -29,8 +29,8 @@ class VppBondInterface(VppInterface): def enslave_vpp_bond_interface(self, sw_if_index, - is_passive, - is_long_timeout): + is_passive=0, + is_long_timeout=0): self.test.vapi.bond_enslave(sw_if_index, self.sw_if_index, is_passive, |