diff options
author | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2019-06-07 15:01:12 -0400 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2019-06-12 16:15:42 +0000 |
commit | 7a99823c0b6db74b6b845c35bc1ac09f37a4374d (patch) | |
tree | dd615dd3230f5f1897d6def5b1ab7e5eedcd1e26 | |
parent | 33035c78301ce1a71a044215f9d6ef3f0a25f3be (diff) |
tests: filter sw_interface_dump in tests.
Type: test
Change-Id: I92921444ef6b0e574701398cf57971c9ecc1cc91
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
-rw-r--r-- | test/test_mtu.py | 2 | ||||
-rw-r--r-- | test/vpp_interface.py | 4 |
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): |