From 7dbb6ec597f8ffe747a6630b79a2b9ba2afcc30f Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 25 Jan 2020 11:11:57 +0100 Subject: vyos.validate: improve is_ipv6_link_local() logic --- python/vyos/validate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/vyos') diff --git a/python/vyos/validate.py b/python/vyos/validate.py index b6d8f23b8..33c495d91 100644 --- a/python/vyos/validate.py +++ b/python/vyos/validate.py @@ -57,8 +57,8 @@ def is_ipv6_link_local(addr): Check addr if it is an IPv6 link-local address/network. Returns True/False """ + addr = addr.split('%')[0] if is_ipv6(addr): - addr = addr.split('%')[0] if ipaddress.IPv6Address(addr).is_link_local: return True -- cgit v1.2.3