summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-12-06 18:13:31 +0100
committerChristian Poessinger <christian@poessinger.com>2020-12-06 18:13:31 +0100
commitd247736f67cc056062b75a4215a031bebcfee2ee (patch)
tree9670119cd318c2299afd8a1d93605b2f73dc5357 /src/tests
parent2bfe25d4376f3b410906d157c3f9cdfd07fe79f2 (diff)
downloadvyos-1x-d247736f67cc056062b75a4215a031bebcfee2ee.tar.gz
vyos-1x-d247736f67cc056062b75a4215a031bebcfee2ee.zip
vyos.ifconfig: T1579: do not remove IPv6 link-local address on reconfiguration
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test_validate.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tests/test_validate.py b/src/tests/test_validate.py
index 226e856a3..4348e2ef8 100644
--- a/src/tests/test_validate.py
+++ b/src/tests/test_validate.py
@@ -22,13 +22,16 @@ 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_ipv6_link_local(self):
+ def test_is_loopback(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'))