aboutsummaryrefslogtreecommitdiffstats
path: root/test/vpp_interface.py
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-06-07 15:01:12 -0400
committerOle Trøan <otroan@employees.org>2019-06-12 16:15:42 +0000
commit7a99823c0b6db74b6b845c35bc1ac09f37a4374d (patch)
treedd615dd3230f5f1897d6def5b1ab7e5eedcd1e26 /test/vpp_interface.py
parent33035c78301ce1a71a044215f9d6ef3f0a25f3be (diff)
tests: filter sw_interface_dump in tests.
Type: test Change-Id: I92921444ef6b0e574701398cf57971c9ecc1cc91 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test/vpp_interface.py')
-rw-r--r--test/vpp_interface.py4
1 files changed, 2 insertions, 2 deletions
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):