summaryrefslogtreecommitdiffstats
path: root/test/vpp_l2.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/vpp_l2.py')
-rw-r--r--test/vpp_l2.py28
1 files changed, 11 insertions, 17 deletions
diff --git a/test/vpp_l2.py b/test/vpp_l2.py
index 72f14dcfa3c..45b7d69dd01 100644
--- a/test/vpp_l2.py
+++ b/test/vpp_l2.py
@@ -79,18 +79,16 @@ class VppBridgeDomain(VppObject):
self.arp_term = arp_term
def add_vpp_config(self):
- self._test.vapi.bridge_domain_add_del(
- self.bd_id,
- is_add=1,
- flood=self.flood,
- uu_flood=self.uu_flood,
- forward=self.forward,
- learn=self.learn,
- arp_term=self.arp_term)
+ self._test.vapi.bridge_domain_add_del(bd_id=self.bd_id,
+ flood=self.flood,
+ uu_flood=self.uu_flood,
+ forward=self.forward,
+ learn=self.learn,
+ arp_term=self.arp_term, is_add=1)
self._test.registry.register(self, self._test.logger)
def remove_vpp_config(self):
- self._test.vapi.bridge_domain_add_del(self.bd_id, is_add=0)
+ self._test.vapi.bridge_domain_add_del(bd_id=self.bd_id, is_add=0)
def query_vpp_config(self):
return find_bridge_domain(self._test, self.bd_id)
@@ -113,18 +111,14 @@ class VppBridgeDomainPort(VppObject):
def add_vpp_config(self):
self._test.vapi.sw_interface_set_l2_bridge(
- self.itf.sw_if_index,
- self.bd.bd_id,
- port_type=self.port_type,
- enable=1)
+ rx_sw_if_index=self.itf.sw_if_index, bd_id=self.bd.bd_id,
+ port_type=self.port_type, enable=1)
self._test.registry.register(self, self._test.logger)
def remove_vpp_config(self):
self._test.vapi.sw_interface_set_l2_bridge(
- self.itf.sw_if_index,
- self.bd.bd_id,
- port_type=self.port_type,
- enable=0)
+ rx_sw_if_index=self.itf.sw_if_index, bd_id=self.bd.bd_id,
+ port_type=self.port_type, enable=0)
def query_vpp_config(self):
return find_bridge_domain_port(self._test,