diff options
author | Neale Ranns <nranns@cisco.com> | 2017-02-13 23:20:04 -0800 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2017-03-03 17:11:26 +0000 |
commit | 4008ac998f43265451281cb6e759cd6184e50bed (patch) | |
tree | 7129722f04fac33d79f90b36ca91be2a3aa94eaa /test/test_mpls.py | |
parent | 7112c542eac53d28861062b13b602a2817dc4052 (diff) |
Changing the IP table for an interface is an error if the interface already has an address configured (VPP-601)
Change-Id: I311fc264f73dd3b2b3ce9d7d1c33cd0515b36c4a
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'test/test_mpls.py')
-rw-r--r-- | test/test_mpls.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/test_mpls.py b/test/test_mpls.py index 41d9426b508..9082637b0db 100644 --- a/test/test_mpls.py +++ b/test/test_mpls.py @@ -17,10 +17,6 @@ from scapy.contrib.mpls import MPLS class TestMPLS(VppTestCase): """ MPLS Test Case """ - @classmethod - def setUpClass(cls): - super(TestMPLS, cls).setUpClass() - def setUp(self): super(TestMPLS, self).setUp() @@ -44,6 +40,11 @@ class TestMPLS(VppTestCase): def tearDown(self): super(TestMPLS, self).tearDown() + for i in self.pg_interfaces: + i.unconfig_ip4() + i.unconfig_ip6() + i.ip6_disable() + i.admin_down() # the default of 64 matches the IP packet TTL default def create_stream_labelled_ip4( |