summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-bonding.py
diff options
context:
space:
mode:
authorJernej Jakob <jernej.jakob@gmail.com>2020-04-22 12:41:07 +0200
committerJernej Jakob <jernej.jakob@gmail.com>2020-04-23 16:09:38 +0200
commitc87a5a1e1f52cddf113f427ea902f45a2e2a8445 (patch)
tree3f0d071f1e498524ccbd7e1f60a288a264e7b727 /src/conf_mode/interfaces-bonding.py
parent4940bea4f7b8574d30876fd3d0456e75f6f29877 (diff)
downloadvyos-1x-c87a5a1e1f52cddf113f427ea902f45a2e2a8445.tar.gz
vyos-1x-c87a5a1e1f52cddf113f427ea902f45a2e2a8445.zip
interfaces: T2362: add node to delete the default IPv6 link-local address
Diffstat (limited to 'src/conf_mode/interfaces-bonding.py')
-rwxr-xr-xsrc/conf_mode/interfaces-bonding.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces-bonding.py b/src/conf_mode/interfaces-bonding.py
index 6693f3a13..4aef486b4 100755
--- a/src/conf_mode/interfaces-bonding.py
+++ b/src/conf_mode/interfaces-bonding.py
@@ -212,8 +212,12 @@ def get_config():
eff_addr = conf.return_effective_values('ipv6 address eui64')
bond['ipv6_eui64_prefix_remove'] = list_diff(eff_addr, bond['ipv6_eui64_prefix'])
- # add the link-local by default to make IPv6 work
- bond['ipv6_eui64_prefix'].append('fe80::/64')
+ # Remove the default link-local address if set.
+ if conf.exists('ipv6 address no-default-link-local'):
+ bond['ipv6_eui64_prefix_remove'].append('fe80::/64')
+ else:
+ # add the link-local by default to make IPv6 work
+ bond['ipv6_eui64_prefix'].append('fe80::/64')
# Disable IPv6 forwarding on this interface
if conf.exists('ipv6 disable-forwarding'):