From 67bae20b05cb46e5f6d19afeaf1f7a52a5309d59 Mon Sep 17 00:00:00 2001 From: Steven Luong Date: Mon, 8 Jul 2024 11:21:23 -0700 Subject: session: application namespace may reference a deleted vrf table lock the vrf table when adding an application namespace and unlock the vrf table when deleting an application namespace. Free the session table when no more application namespace uses it anymore to avoid memory leaks. Type: fix Change-Id: I10422c9a3b549bd4403962c925e29dd61a058eb0 Signed-off-by: Steven Luong --- test/test_udp.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/test_udp.py') diff --git a/test/test_udp.py b/test/test_udp.py index edcd293197f..2c0710ba2e2 100644 --- a/test/test_udp.py +++ b/test/test_udp.py @@ -725,6 +725,14 @@ class TestUDP(VppTestCase): i.unconfig_ip4() i.set_table_ip4(0) i.admin_down() + # Unconfigure namespaces - remove our locks to the vrf tables + self.vapi.app_namespace_add_del_v4( + is_add=0, namespace_id="0", sw_if_index=self.loop0.sw_if_index + ) + self.vapi.app_namespace_add_del_v4( + is_add=0, namespace_id="1", sw_if_index=self.loop1.sw_if_index + ) + self.vapi.session_enable_disable(is_enable=0) super(TestUDP, self).tearDown() -- cgit 1.2.3-korg