diff options
author | Steven Luong <sluong@cisco.com> | 2024-07-08 11:21:23 -0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2024-07-15 20:57:35 +0000 |
commit | 67bae20b05cb46e5f6d19afeaf1f7a52a5309d59 (patch) | |
tree | 2c05544136add3eeb35e29228a6ca30bc8d064e4 /test/asf/test_quic.py | |
parent | ca2f2e1ec9131c01b340381f2cbbac2bc5951566 (diff) |
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 <sluong@cisco.com>
Diffstat (limited to 'test/asf/test_quic.py')
-rw-r--r-- | test/asf/test_quic.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/asf/test_quic.py b/test/asf/test_quic.py index e453bd5b3e5..c4fa6912114 100644 --- a/test/asf/test_quic.py +++ b/test/asf/test_quic.py @@ -117,6 +117,18 @@ class QUICTestCase(VppAsfTestCase): self.logger.debug(self.vapi.cli("show ip fib")) def tearDown(self): + self.vapi.app_namespace_add_del_v4( + is_add=0, + namespace_id=self.server_appns, + secret=self.server_appns_secret, + sw_if_index=self.loop0.sw_if_index, + ) + self.vapi.app_namespace_add_del_v4( + is_add=0, + namespace_id=self.client_appns, + secret=self.client_appns_secret, + sw_if_index=self.loop1.sw_if_index, + ) # Delete inter-table routes self.ip_t01.remove_vpp_config() self.ip_t10.remove_vpp_config() |