X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_sctp.py;h=75bbb23f31f6d8f31dba6a18e263e3880338cc6c;hb=3ffe6cadf;hp=70201eba36019837f0932d9e64f07d81437787aa;hpb=9a6dafd569db0d0b5dc9d7b5b34b17e3f411a9ee;p=vpp.git diff --git a/test/test_sctp.py b/test/test_sctp.py index 70201eba360..75bbb23f31f 100644 --- a/test/test_sctp.py +++ b/test/test_sctp.py @@ -11,11 +11,17 @@ class TestSCTP(VppTestCase): @classmethod def setUpClass(cls): + cls.extra_vpp_plugin_config.append("plugin sctp_plugin.so { enable }") super(TestSCTP, cls).setUpClass() + @classmethod + def tearDownClass(cls): + super(TestSCTP, cls).tearDownClass() + def setUp(self): super(TestSCTP, self).setUp() self.vapi.session_enable_disable(is_enabled=1) + self.vapi.cli("sctp enable") self.create_loopback_interfaces(2) table_id = 0 @@ -32,9 +38,9 @@ class TestSCTP(VppTestCase): table_id += 1 # Configure namespaces - self.vapi.app_namespace_add_del(namespace_id="0", + self.vapi.app_namespace_add_del(namespace_id=b"0", sw_if_index=self.loop0.sw_if_index) - self.vapi.app_namespace_add_del(namespace_id="1", + self.vapi.app_namespace_add_del(namespace_id=b"1", sw_if_index=self.loop1.sw_if_index) def tearDown(self):