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>
This commit is contained in:
Maxime Peim
2023-08-01 11:29:15 +02:00
committed by Beno�t Ganne
parent da652cc466
commit 23d13c071e

View File

@ -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()