summaryrefslogtreecommitdiff
path: root/src/tests/test_validate.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-12-06 20:57:11 +0100
committerChristian Poessinger <christian@poessinger.com>2020-12-06 20:57:15 +0100
commite0831f39d8ec0c65dfb55e97dd1e8e98463504f0 (patch)
tree71a602105a587c8969b9f270b23ff8c8172823e9 /src/tests/test_validate.py
parent95459d4111fd1488dc811de29db29420c06cf52b (diff)
downloadvyos-1x-e0831f39d8ec0c65dfb55e97dd1e8e98463504f0.tar.gz
vyos-1x-e0831f39d8ec0c65dfb55e97dd1e8e98463504f0.zip
Revert "vyos.ifconfig: T1579: do not remove IPv6 link-local address on reconfiguration"
This reverts commit d247736f67cc056062b75a4215a031bebcfee2ee. We need to clean link-local IPv6 addresses on link reconfiguration to also drop no longer existing link-local addresse son MAC address change.
Diffstat (limited to 'src/tests/test_validate.py')
-rw-r--r--src/tests/test_validate.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/tests/test_validate.py b/src/tests/test_validate.py
index 4348e2ef8..226e856a3 100644
--- a/src/tests/test_validate.py
+++ b/src/tests/test_validate.py
@@ -22,16 +22,13 @@ class TestVyOSValidate(TestCase):
pass
def test_is_ipv6_link_local(self):
+ self.assertFalse(vyos.validate.is_ipv6_link_local('169.254.0.1'))
self.assertTrue(vyos.validate.is_ipv6_link_local('fe80::'))
self.assertTrue(vyos.validate.is_ipv6_link_local('fe80::affe:1'))
- self.assertTrue(vyos.validate.is_ipv6_link_local('fe80::250:56ff:febf:efaa/64'))
-
- self.assertFalse(vyos.validate.is_ipv6_link_local('169.254.0.1'))
self.assertFalse(vyos.validate.is_ipv6_link_local('2001:db8::'))
- self.assertFalse(vyos.validate.is_ipv6_link_local('2001:db8::1/64'))
self.assertFalse(vyos.validate.is_ipv6_link_local('VyOS'))
- def test_is_loopback(self):
+ def test_is_ipv6_link_local(self):
self.assertTrue(vyos.validate.is_loopback_addr('127.0.0.1'))
self.assertTrue(vyos.validate.is_loopback_addr('127.0.1.1'))
self.assertTrue(vyos.validate.is_loopback_addr('127.1.1.1'))