Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
bonding: add support for numa-only in lacp mode
[vpp.git]
/
test
/
vpp_bond_interface.py
diff --git
a/test/vpp_bond_interface.py
b/test/vpp_bond_interface.py
index
1c33e1c
..
f05a07b
100644
(file)
--- a/
test/vpp_bond_interface.py
+++ b/
test/vpp_bond_interface.py
@@
-5,24
+5,24
@@
from vpp_interface import VppInterface
class VppBondInterface(VppInterface):
"""VPP bond interface."""
class VppBondInterface(VppInterface):
"""VPP bond interface."""
- def __init__(self, test, mode, lb=0,
+ def __init__(self, test, mode, lb=0,
numa_only=0,
use_custom_mac=0, mac_address=''):
""" Create VPP Bond interface """
use_custom_mac=0, mac_address=''):
""" Create VPP Bond interface """
- s
elf._test = test
+ s
uper(VppBondInterface, self).__init__(test)
self.mode = mode
self.lb = lb
self.mode = mode
self.lb = lb
+ self.numa_only = numa_only
self.use_custom_mac = use_custom_mac
self.mac_address = mac_address
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,
self.lb,
def add_vpp_config(self):
r = self.test.vapi.bond_create(self.mode,
self.lb,
+ self.numa_only,
self.use_custom_mac,
self.mac_address)
self.use_custom_mac,
self.mac_address)
- self.
_sw_if_index = r.sw_if_index
+ self.
set_sw_if_index(r.sw_if_index)
def remove_vpp_config(self):
self.test.vapi.bond_delete(self.sw_if_index)
def remove_vpp_config(self):
self.test.vapi.bond_delete(self.sw_if_index)