summaryrefslogtreecommitdiff
path: root/src/conf_mode/dhcpv6_relay.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-12-06 18:15:26 +0100
committerChristian Poessinger <christian@poessinger.com>2020-12-06 18:15:26 +0100
commit438fbca0240bdf0a8b34bf7698f7145c7d1b9c22 (patch)
treefaa43570bfea22679fe8ad326c68771e30a48cd2 /src/conf_mode/dhcpv6_relay.py
parentd247736f67cc056062b75a4215a031bebcfee2ee (diff)
downloadvyos-1x-438fbca0240bdf0a8b34bf7698f7145c7d1b9c22.tar.gz
vyos-1x-438fbca0240bdf0a8b34bf7698f7145c7d1b9c22.zip
dhcpv6-relay: T3095: is_ipv6_link_local() now supports a prefix length
Diffstat (limited to 'src/conf_mode/dhcpv6_relay.py')
-rwxr-xr-xsrc/conf_mode/dhcpv6_relay.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/dhcpv6_relay.py b/src/conf_mode/dhcpv6_relay.py
index cf8a26674..aea2c3b73 100755
--- a/src/conf_mode/dhcpv6_relay.py
+++ b/src/conf_mode/dhcpv6_relay.py
@@ -69,7 +69,7 @@ def verify(relay):
for interface in relay['listen_interface']:
has_global = False
for addr in Interface(interface).get_addr():
- if not is_ipv6_link_local(addr.split('/')[0]):
+ if not is_ipv6_link_local(addr):
has_global = True
if not has_global:
raise ConfigError(f'Interface {interface} does not have global '\