aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_map.py
diff options
context:
space:
mode:
authorMaxime Peim <mpeim@cisco.com>2023-08-01 11:29:15 +0200
committerBeno�t Ganne <bganne@cisco.com>2023-09-01 08:43:23 +0000
commit23d13c071e80ab6bbed4f5d6cf14ef9ccf05384a (patch)
tree36f3e30647df41b6c71ca05db16fde773e0d6143 /test/test_map.py
parentda652cc46604f5c98736404a2342ac3a178240e7 (diff)
map: test fix feature disabling
Upon test teardown, MAP features were not disabled, potentially leading packets to be treated by the wrong node. Type: test Change-Id: I0c1c614318d1308f825c5cc0bf95688e92f6d00a Signed-off-by: Maxime Peim <mpeim@cisco.com>
Diffstat (limited to 'test/test_map.py')
-rw-r--r--test/test_map.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_map.py b/test/test_map.py
index 16e9607cedc..8ddc6bd5cd3 100644
--- a/test/test_map.py
+++ b/test/test_map.py
@@ -53,7 +53,12 @@ class TestMAP(VppTestCase):
def tearDown(self):
super(TestMAP, self).tearDown()
+
for i in self.pg_interfaces:
+ for t in (0, 1):
+ self.vapi.map_if_enable_disable(
+ is_enable=0, sw_if_index=i.sw_if_index, is_translation=t
+ )
i.unconfig_ip4()
i.unconfig_ip6()
i.admin_down()