summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vcl/test/test_vcl.py10
-rw-r--r--test/test_session.py8
-rw-r--r--test/test_tcp.py8
-rw-r--r--test/test_tls.py4
-rw-r--r--test/test_udp.py4
-rw-r--r--test/vpp_papi_provider.py49
6 files changed, 17 insertions, 66 deletions
diff --git a/src/vcl/test/test_vcl.py b/src/vcl/test/test_vcl.py
index 37ede7b6979..f6d638539f0 100644
--- a/src/vcl/test/test_vcl.py
+++ b/src/vcl/test/test_vcl.py
@@ -80,10 +80,10 @@ class VCLTestCase(VppTestCase):
super(VCLTestCase, self).setUp()
def cut_thru_setup(self):
- self.vapi.session_enable_disable(is_enabled=1)
+ self.vapi.session_enable_disable(is_enable=1)
def cut_thru_tear_down(self):
- self.vapi.session_enable_disable(is_enabled=0)
+ self.vapi.session_enable_disable(is_enable=0)
def cut_thru_test(self, server_app, server_args, client_app, client_args):
self.env = {'VCL_VPP_API_SOCKET': self.api_sock,
@@ -103,7 +103,7 @@ class VCLTestCase(VppTestCase):
self.sleep(self.post_test_sleep)
def thru_host_stack_setup(self):
- self.vapi.session_enable_disable(is_enabled=1)
+ self.vapi.session_enable_disable(is_enable=1)
self.create_loopback_interfaces(2)
table_id = 1
@@ -145,7 +145,7 @@ class VCLTestCase(VppTestCase):
i.admin_down()
def thru_host_stack_ipv6_setup(self):
- self.vapi.session_enable_disable(is_enabled=1)
+ self.vapi.session_enable_disable(is_enable=1)
self.create_loopback_interfaces(2)
table_id = 1
@@ -186,7 +186,7 @@ class VCLTestCase(VppTestCase):
i.set_table_ip6(0)
i.admin_down()
- self.vapi.session_enable_disable(is_enabled=0)
+ self.vapi.session_enable_disable(is_enable=0)
@unittest.skipUnless(_have_iperf3, "'%s' not found, Skipping.")
def thru_host_stack_test(self, server_app, server_args,
diff --git a/test/test_session.py b/test/test_session.py
index 309bf6e32e4..5b1bfb77989 100644
--- a/test/test_session.py
+++ b/test/test_session.py
@@ -20,7 +20,7 @@ class TestSession(VppTestCase):
def setUp(self):
super(TestSession, self).setUp()
- self.vapi.session_enable_disable(is_enabled=1)
+ self.vapi.session_enable_disable(is_enable=1)
self.create_loopback_interfaces(2)
table_id = 0
@@ -49,7 +49,7 @@ class TestSession(VppTestCase):
i.admin_down()
super(TestSession, self).tearDown()
- self.vapi.session_enable_disable(is_enabled=1)
+ self.vapi.session_enable_disable(is_enable=1)
def test_segment_manager_alloc(self):
""" Session Segment Manager Multiple Segment Allocation """
@@ -102,7 +102,7 @@ class TestSessionUnitTests(VppTestCase):
def setUp(self):
super(TestSessionUnitTests, self).setUp()
- self.vapi.session_enable_disable(is_enabled=1)
+ self.vapi.session_enable_disable(is_enable=1)
def test_session(self):
""" Session Unit Tests """
@@ -114,7 +114,7 @@ class TestSessionUnitTests(VppTestCase):
def tearDown(self):
super(TestSessionUnitTests, self).tearDown()
- self.vapi.session_enable_disable(is_enabled=0)
+ self.vapi.session_enable_disable(is_enable=0)
class TestSvmFifoUnitTests(VppTestCase):
diff --git a/test/test_tcp.py b/test/test_tcp.py
index 40579e284e4..f8e51057d38 100644
--- a/test/test_tcp.py
+++ b/test/test_tcp.py
@@ -19,7 +19,7 @@ class TestTCP(VppTestCase):
def setUp(self):
super(TestTCP, self).setUp()
- self.vapi.session_enable_disable(is_enabled=1)
+ self.vapi.session_enable_disable(is_enable=1)
self.create_loopback_interfaces(2)
table_id = 0
@@ -46,7 +46,7 @@ class TestTCP(VppTestCase):
i.unconfig_ip4()
i.set_table_ip4(0)
i.admin_down()
- self.vapi.session_enable_disable(is_enabled=0)
+ self.vapi.session_enable_disable(is_enable=0)
super(TestTCP, self).tearDown()
def test_tcp_transfer(self):
@@ -97,11 +97,11 @@ class TestTCPUnitTests(VppTestCase):
def setUp(self):
super(TestTCPUnitTests, self).setUp()
- self.vapi.session_enable_disable(is_enabled=1)
+ self.vapi.session_enable_disable(is_enable=1)
def tearDown(self):
super(TestTCPUnitTests, self).tearDown()
- self.vapi.session_enable_disable(is_enabled=0)
+ self.vapi.session_enable_disable(is_enable=0)
def test_tcp_unittest(self):
""" TCP Unit Tests """
diff --git a/test/test_tls.py b/test/test_tls.py
index 008664dfd7a..2f8edd4e0e2 100644
--- a/test/test_tls.py
+++ b/test/test_tls.py
@@ -65,7 +65,7 @@ class TestTLS(VppTestCase):
def setUp(self):
super(TestTLS, self).setUp()
- self.vapi.session_enable_disable(is_enabled=1)
+ self.vapi.session_enable_disable(is_enable=1)
self.create_loopback_interfaces(2)
table_id = 0
@@ -92,7 +92,7 @@ class TestTLS(VppTestCase):
i.unconfig_ip4()
i.set_table_ip4(0)
i.admin_down()
- self.vapi.session_enable_disable(is_enabled=0)
+ self.vapi.session_enable_disable(is_enable=0)
super(TestTLS, self).tearDown()
@unittest.skipUnless(checkAll(),
diff --git a/test/test_udp.py b/test/test_udp.py
index 0f1c5a47255..a0b2167d701 100644
--- a/test/test_udp.py
+++ b/test/test_udp.py
@@ -260,7 +260,7 @@ class TestUDP(VppTestCase):
def setUp(self):
super(TestUDP, self).setUp()
- self.vapi.session_enable_disable(is_enabled=1)
+ self.vapi.session_enable_disable(is_enable=1)
self.create_loopback_interfaces(2)
table_id = 0
@@ -287,7 +287,7 @@ class TestUDP(VppTestCase):
i.unconfig_ip4()
i.set_table_ip4(0)
i.admin_down()
- self.vapi.session_enable_disable(is_enabled=0)
+ self.vapi.session_enable_disable(is_enable=0)
super(TestUDP, self).tearDown()
def test_udp_transfer(self):
diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py
index c4328a0e833..56b01fdc0c9 100644
--- a/test/vpp_papi_provider.py
+++ b/test/vpp_papi_provider.py
@@ -861,11 +861,6 @@ class VppPapiProvider(object):
self.papi.bier_disp_entry_dump,
{'bde_tbl_id': bdti})
- def session_enable_disable(self, is_enabled):
- return self.api(
- self.papi.session_enable_disable,
- {'is_enable': is_enabled})
-
def ipsec_spd_add_del(self, spd_id, is_add=1):
""" SPD add/del - Wrapper to add or del ipsec SPD
Sample CLI : 'ipsec spd add 1'
@@ -1008,20 +1003,6 @@ class VppPapiProvider(object):
def ipsec_backend_dump(self):
return self.api(self.papi.ipsec_backend_dump, {})
- def app_namespace_add_del(self,
- namespace_id,
- ip4_fib_id=0,
- ip6_fib_id=0,
- sw_if_index=0xFFFFFFFF,
- secret=0):
- return self.api(
- self.papi.app_namespace_add_del,
- {'secret': secret,
- 'sw_if_index': sw_if_index,
- 'ip4_fib_id': ip4_fib_id,
- 'ip6_fib_id': ip6_fib_id,
- 'namespace_id': namespace_id})
-
def punt_socket_register(self, reg, pathname,
header_version=1):
""" Register punt socket """
@@ -1246,33 +1227,3 @@ class VppPapiProvider(object):
def want_igmp_events(self, enable=1):
return self.api(self.papi.want_igmp_events, {'enable': enable,
'pid': os.getpid()})
-
- def bond_create(
- self,
- mode,
- lb,
- numa_only,
- use_custom_mac,
- mac_address='',
- interface_id=0xFFFFFFFF):
- """
- :param mode: mode
- :param lb: load balance
- :param numa_only: tx on local numa node for lacp mode
- :param use_custom_mac: use custom mac
- :param mac_address: mac address
- :param interface_id: custom interface ID
- """
- return self.api(
- self.papi.bond_create,
- {'mode': mode,
- 'lb': lb,
- 'numa_only': numa_only,
- 'use_custom_mac': use_custom_mac,
- 'mac_address': mac_address,
- 'id': interface_id
- })
-
- def pipe_delete(self, parent_sw_if_index):
- return self.api(self.papi.pipe_delete,
- {'parent_sw_if_index': parent_sw_if_index})