X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_srmpls.py;h=b9abeaeffecee1105aa9a5287403ea6e490529b5;hb=cbe25aab3be72154f2c706c39eeba6a77f34450f;hp=756405ab6d7b2444917ebedfd1502e6dad669f3f;hpb=c0a93143412b4be7bba087bf633855aeeaee7c56;p=vpp.git diff --git a/test/test_srmpls.py b/test/test_srmpls.py index 756405ab6d7..b9abeaeffec 100644 --- a/test/test_srmpls.py +++ b/test/test_srmpls.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import unittest import socket @@ -49,6 +49,14 @@ def verify_mpls_stack(tst, rx, mpls_labels): class TestSRMPLS(VppTestCase): """ SR-MPLS Test Case """ + @classmethod + def setUpClass(cls): + super(TestSRMPLS, cls).setUpClass() + + @classmethod + def tearDownClass(cls): + super(TestSRMPLS, cls).tearDownClass() + def setUp(self): super(TestSRMPLS, self).setUp() @@ -76,7 +84,6 @@ class TestSRMPLS(VppTestCase): for i in self.pg_interfaces: i.unconfig_ip4() i.unconfig_ip6() - i.ip6_disable() i.disable_mpls() i.admin_down() super(TestSRMPLS, self).tearDown()