summaryrefslogtreecommitdiff
path: root/python/vyos/configdict.py
diff options
context:
space:
mode:
authorJernej Jakob <jernej.jakob@gmail.com>2020-05-03 22:54:53 +0200
committerJernej Jakob <jernej.jakob@gmail.com>2020-05-04 22:58:52 +0200
commitd6e65c5b14b1049ba346cbaa7c05c12cacfd0495 (patch)
tree906c31384e4b9da9106ce21b19015be165d166cd /python/vyos/configdict.py
parent963dcd509fa491a30d0dd6266d827fb60bb9e27b (diff)
downloadvyos-1x-d6e65c5b14b1049ba346cbaa7c05c12cacfd0495.tar.gz
vyos-1x-d6e65c5b14b1049ba346cbaa7c05c12cacfd0495.zip
configdict: T2241: don't add default IPv6 EUI64 if member of a bridge
Bridge members should not have addresses assigned.
Diffstat (limited to 'python/vyos/configdict.py')
-rw-r--r--python/vyos/configdict.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py
index 0648d8646..5ab831258 100644
--- a/python/vyos/configdict.py
+++ b/python/vyos/configdict.py
@@ -344,8 +344,9 @@ def intf_to_dict(conf, default):
intf['ipv6_eui64_prefix'] = act_eui
intf['ipv6_eui64_prefix_remove'] = list_diff(eff_eui, act_eui)
- # Remove the default link-local address if set.
- if conf.exists('ipv6 address no-default-link-local'):
+ # Remove the default link-local address if set or if member of a bridge
+ if ( conf.exists('ipv6 address no-default-link-local')
+ or intf.get('is_bridge_member') ):
intf['ipv6_eui64_prefix_remove'].append('fe80::/64')
else:
# add the link-local by default to make IPv6 work