From 51f1b26e85a758338b13bacfdf4ba9e7d7cb7f8f Mon Sep 17 00:00:00 2001 From: Nathan Skrzypczak Date: Thu, 27 Apr 2023 12:43:46 +0200 Subject: session: update due to clib_socket refactoring After the clib_socket_init syntax changed, the behavior of VCL socket creation was broken. This patch introduces app_namespace_add_del_v4 to address the behavioral change. Type: refactor Change-Id: Ice016bdb372233fd3317f166d45625e086e9b4df Signed-off-by: Nathan Skrzypczak --- test/asf/test_quic.py | 4 ++-- test/asf/test_session.py | 4 ++-- test/asf/test_tcp.py | 4 ++-- test/asf/test_tls.py | 4 ++-- test/asf/test_vcl.py | 8 ++++---- test/test_udp.py | 4 ++-- 6 files changed, 14 insertions(+), 14 deletions(-) (limited to 'test') diff --git a/test/asf/test_quic.py b/test/asf/test_quic.py index 31e9a81bea0..681385a0046 100644 --- a/test/asf/test_quic.py +++ b/test/asf/test_quic.py @@ -87,12 +87,12 @@ class QUICTestCase(VppTestCase): table_id += 1 # Configure namespaces - self.vapi.app_namespace_add_del( + self.vapi.app_namespace_add_del_v4( namespace_id=self.server_appns, secret=self.server_appns_secret, sw_if_index=self.loop0.sw_if_index, ) - self.vapi.app_namespace_add_del( + self.vapi.app_namespace_add_del_v4( namespace_id=self.client_appns, secret=self.client_appns_secret, sw_if_index=self.loop1.sw_if_index, diff --git a/test/asf/test_session.py b/test/asf/test_session.py index cbca98d04e1..d01381537e1 100644 --- a/test/asf/test_session.py +++ b/test/asf/test_session.py @@ -40,10 +40,10 @@ class TestSession(VppTestCase): table_id += 1 # Configure namespaces - self.vapi.app_namespace_add_del( + self.vapi.app_namespace_add_del_v4( namespace_id="0", sw_if_index=self.loop0.sw_if_index ) - self.vapi.app_namespace_add_del( + self.vapi.app_namespace_add_del_v4( namespace_id="1", sw_if_index=self.loop1.sw_if_index ) diff --git a/test/asf/test_tcp.py b/test/asf/test_tcp.py index 678d2cca8b8..184e5700773 100644 --- a/test/asf/test_tcp.py +++ b/test/asf/test_tcp.py @@ -36,10 +36,10 @@ class TestTCP(VppTestCase): table_id += 1 # Configure namespaces - self.vapi.app_namespace_add_del( + self.vapi.app_namespace_add_del_v4( namespace_id="0", sw_if_index=self.loop0.sw_if_index ) - self.vapi.app_namespace_add_del( + self.vapi.app_namespace_add_del_v4( namespace_id="1", sw_if_index=self.loop1.sw_if_index ) diff --git a/test/asf/test_tls.py b/test/asf/test_tls.py index 68107f7ad04..89ee4501126 100644 --- a/test/asf/test_tls.py +++ b/test/asf/test_tls.py @@ -83,10 +83,10 @@ class TestTLS(VppTestCase): table_id += 1 # Configure namespaces - self.vapi.app_namespace_add_del( + self.vapi.app_namespace_add_del_v4( namespace_id="0", sw_if_index=self.loop0.sw_if_index ) - self.vapi.app_namespace_add_del( + self.vapi.app_namespace_add_del_v4( namespace_id="1", sw_if_index=self.loop1.sw_if_index ) diff --git a/test/asf/test_vcl.py b/test/asf/test_vcl.py index cfa97775a3d..fbc824904d3 100644 --- a/test/asf/test_vcl.py +++ b/test/asf/test_vcl.py @@ -162,10 +162,10 @@ class VCLTestCase(VppTestCase): table_id += 1 # Configure namespaces - self.vapi.app_namespace_add_del( + self.vapi.app_namespace_add_del_v4( namespace_id="1", secret=1234, sw_if_index=self.loop0.sw_if_index ) - self.vapi.app_namespace_add_del( + self.vapi.app_namespace_add_del_v4( namespace_id="2", secret=5678, sw_if_index=self.loop1.sw_if_index ) @@ -212,10 +212,10 @@ class VCLTestCase(VppTestCase): table_id += 1 # Configure namespaces - self.vapi.app_namespace_add_del( + self.vapi.app_namespace_add_del_v4( namespace_id="1", secret=1234, sw_if_index=self.loop0.sw_if_index ) - self.vapi.app_namespace_add_del( + self.vapi.app_namespace_add_del_v4( namespace_id="2", secret=5678, sw_if_index=self.loop1.sw_if_index ) diff --git a/test/test_udp.py b/test/test_udp.py index ebc99e85388..a026b042b02 100644 --- a/test/test_udp.py +++ b/test/test_udp.py @@ -709,10 +709,10 @@ class TestUDP(VppTestCase): table_id += 1 # Configure namespaces - self.vapi.app_namespace_add_del( + self.vapi.app_namespace_add_del_v4( namespace_id="0", sw_if_index=self.loop0.sw_if_index ) - self.vapi.app_namespace_add_del( + self.vapi.app_namespace_add_del_v4( namespace_id="1", sw_if_index=self.loop1.sw_if_index ) -- cgit 1.2.3-korg