From d6e65c5b14b1049ba346cbaa7c05c12cacfd0495 Mon Sep 17 00:00:00 2001 From: Jernej Jakob Date: Sun, 3 May 2020 22:54:53 +0200 Subject: configdict: T2241: don't add default IPv6 EUI64 if member of a bridge Bridge members should not have addresses assigned. --- python/vyos/configdict.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'python/vyos') 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 -- cgit v1.2.3