diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_session.py | 4 | ||||
-rw-r--r-- | test/test_tcp.py | 4 | ||||
-rw-r--r-- | test/test_tls.py | 4 | ||||
-rw-r--r-- | test/test_udp.py | 4 | ||||
-rw-r--r-- | test/vpp_papi_provider.py | 3 |
5 files changed, 9 insertions, 10 deletions
diff --git a/test/test_session.py b/test/test_session.py index 60e5eb4f8a3..94218d08e8e 100644 --- a/test/test_session.py +++ b/test/test_session.py @@ -37,9 +37,9 @@ class TestSession(VppTestCase): table_id += 1 # Configure namespaces - self.vapi.app_namespace_add_del(namespace_id=b"0", + self.vapi.app_namespace_add_del(namespace_id="0", sw_if_index=self.loop0.sw_if_index) - self.vapi.app_namespace_add_del(namespace_id=b"1", + self.vapi.app_namespace_add_del(namespace_id="1", sw_if_index=self.loop1.sw_if_index) def tearDown(self): diff --git a/test/test_tcp.py b/test/test_tcp.py index 8decac52b9d..40579e284e4 100644 --- a/test/test_tcp.py +++ b/test/test_tcp.py @@ -36,9 +36,9 @@ class TestTCP(VppTestCase): table_id += 1 # Configure namespaces - self.vapi.app_namespace_add_del(namespace_id=b"0", + self.vapi.app_namespace_add_del(namespace_id="0", sw_if_index=self.loop0.sw_if_index) - self.vapi.app_namespace_add_del(namespace_id=b"1", + self.vapi.app_namespace_add_del(namespace_id="1", sw_if_index=self.loop1.sw_if_index) def tearDown(self): diff --git a/test/test_tls.py b/test/test_tls.py index 86ee3cc80a5..008664dfd7a 100644 --- a/test/test_tls.py +++ b/test/test_tls.py @@ -82,9 +82,9 @@ class TestTLS(VppTestCase): table_id += 1 # Configure namespaces - self.vapi.app_namespace_add_del(namespace_id=b"0", + self.vapi.app_namespace_add_del(namespace_id="0", sw_if_index=self.loop0.sw_if_index) - self.vapi.app_namespace_add_del(namespace_id=b"1", + self.vapi.app_namespace_add_del(namespace_id="1", sw_if_index=self.loop1.sw_if_index) def tearDown(self): diff --git a/test/test_udp.py b/test/test_udp.py index af64f8ae704..5336675c79d 100644 --- a/test/test_udp.py +++ b/test/test_udp.py @@ -277,9 +277,9 @@ class TestUDP(VppTestCase): table_id += 1 # Configure namespaces - self.vapi.app_namespace_add_del(namespace_id="0".encode('ascii'), + self.vapi.app_namespace_add_del(namespace_id="0", sw_if_index=self.loop0.sw_if_index) - self.vapi.app_namespace_add_del(namespace_id="1".encode('ascii'), + self.vapi.app_namespace_add_del(namespace_id="1", sw_if_index=self.loop1.sw_if_index) def tearDown(self): diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py index f9c72fa0d29..bf3f17d2c51 100644 --- a/test/vpp_papi_provider.py +++ b/test/vpp_papi_provider.py @@ -1564,8 +1564,7 @@ class VppPapiProvider(object): 'sw_if_index': sw_if_index, 'ip4_fib_id': ip4_fib_id, 'ip6_fib_id': ip6_fib_id, - 'namespace_id': namespace_id, - 'namespace_id_len': len(namespace_id)}) + 'namespace_id': namespace_id}) def punt_socket_register(self, reg, pathname, header_version=1): |