summaryrefslogtreecommitdiff
path: root/python/vyos/validate.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/vyos/validate.py')
-rw-r--r--python/vyos/validate.py2
1 files changed, 1 insertions, 1 deletions
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