aboutsummaryrefslogtreecommitdiffstats
path: root/test/vpp_sub_interface.py
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-03-11 19:23:25 +0100
committerPaul Vinciguerra <pvinci@vinciconsulting.com>2019-03-11 21:57:19 +0000
commita5b2eec0535f9025319a752891d77ff9948ae0df (patch)
tree08c801cb85ab9639e00e5f565e613b817b3924e4 /test/vpp_sub_interface.py
parent2d9b427a5b20dcec3d2212a3a8a47c29b4acdd46 (diff)
vpp_papi_provider: Remove more wrapper functions.
Split this work up into pieces. Please don't add new wrappers to vpp_papi_provider.py. Change-Id: I0f8f2afc4cd2bba07ea70ddecea2d7319f7b2e10 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'test/vpp_sub_interface.py')
-rw-r--r--test/vpp_sub_interface.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/vpp_sub_interface.py b/test/vpp_sub_interface.py
index a374cba4354..15cd6edb8e0 100644
--- a/test/vpp_sub_interface.py
+++ b/test/vpp_sub_interface.py
@@ -120,7 +120,7 @@ class VppSubInterface(VppPGInterface):
self._push1q = push1q
self.test.vapi.l2_interface_vlan_tag_rewrite(
- self.sw_if_index, vtr, push=self._push1q,
+ sw_if_index=self.sw_if_index, vtr_op=vtr, push_dot1q=self._push1q,
tag1=self._tag1, tag2=self._tag2)
self._vtr = vtr
@@ -171,9 +171,10 @@ class VppDot1ADSubint(VppSubInterface):
def __init__(self, test, parent, sub_id, outer_vlan, inner_vlan):
super(VppDot1ADSubint, self).__init__(test, parent, sub_id)
- r = test.vapi.create_subif(parent.sw_if_index, sub_id, outer_vlan,
- inner_vlan, dot1ad=1, two_tags=1,
- exact_match=1)
+ r = test.vapi.create_subif(sw_if_index=parent.sw_if_index,
+ sub_id=sub_id, outer_vlan_id=outer_vlan,
+ inner_vlan_id=inner_vlan, two_tags=1,
+ dot1ad=1, exact_match=1)
self.set_sw_if_index(r.sw_if_index)
self._outer_vlan = outer_vlan
self._inner_vlan = inner_vlan