aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_mtu.py2
-rw-r--r--test/vpp_interface.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/test_mtu.py b/test/test_mtu.py
index 14535b23e21..1c7f6413f61 100644
--- a/test/test_mtu.py
+++ b/test/test_mtu.py
@@ -65,7 +65,7 @@ class TestMTU(VppTestCase):
return 'x' * len
def get_mtu(self, sw_if_index):
- rv = self.vapi.sw_interface_dump()
+ rv = self.vapi.sw_interface_dump(sw_if_index=sw_if_index)
for i in rv:
if i.sw_if_index == sw_if_index:
return i.mtu[0]
diff --git a/test/vpp_interface.py b/test/vpp_interface.py
index 7be0d45e39b..36118192915 100644
--- a/test/vpp_interface.py
+++ b/test/vpp_interface.py
@@ -229,7 +229,7 @@ class VppInterface(object):
self._remote_addr_n = {socket.AF_INET: self.remote_ip4n,
socket.AF_INET6: self.remote_ip6n}
- r = self.test.vapi.sw_interface_dump()
+ r = self.test.vapi.sw_interface_dump(sw_if_index=self.sw_if_index)
for intf in r:
if intf.sw_if_index == self.sw_if_index:
self._name = intf.interface_name.split(b'\0',
@@ -429,7 +429,7 @@ class VppInterface(object):
enable)
def query_vpp_config(self):
- dump = self.test.vapi.sw_interface_dump()
+ dump = self.test.vapi.sw_interface_dump(sw_if_index=self.sw_if_index)
return self.is_interface_config_in_dump(dump)
def get_interface_config_from_dump(self, dump):