diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-12-06 20:57:11 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-12-06 20:57:15 +0100 |
commit | e0831f39d8ec0c65dfb55e97dd1e8e98463504f0 (patch) | |
tree | 71a602105a587c8969b9f270b23ff8c8172823e9 /python/vyos/validate.py | |
parent | 95459d4111fd1488dc811de29db29420c06cf52b (diff) | |
download | vyos-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 'python/vyos/validate.py')
-rw-r--r-- | python/vyos/validate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/validate.py b/python/vyos/validate.py index 98bd40f74..84a7bc2de 100644 --- a/python/vyos/validate.py +++ b/python/vyos/validate.py @@ -27,11 +27,11 @@ from vyos.util import cmd def is_ipv6_link_local(addr): """ Check if addrsss is an IPv6 link-local address. Returns True/False """ - from ipaddress import ip_interface + from ipaddress import IPv6Address from vyos.template import is_ipv6 addr = addr.split('%')[0] if is_ipv6(addr): - if ip_interface(addr).is_link_local: + if IPv6Address(addr).is_link_local: return True return False |