diff options
author | Jernej Jakob <jernej.jakob@gmail.com> | 2020-04-22 17:12:25 +0200 |
---|---|---|
committer | Jernej Jakob <jernej.jakob@gmail.com> | 2020-04-23 16:09:33 +0200 |
commit | d6c08414d55eadd8232b693303f2b14bfe121c01 (patch) | |
tree | cf7e5bd23fb6f2efa9f376cf4eec440bac31ff81 /python/vyos | |
parent | 76feb7d154a452ba5475b9b6ee720a7a8f5491d5 (diff) | |
download | vyos-1x-d6c08414d55eadd8232b693303f2b14bfe121c01.tar.gz vyos-1x-d6c08414d55eadd8232b693303f2b14bfe121c01.zip |
interfaces: T2362: delete and re-add all EUI64 addresses if MAC has changed
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/configdict.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py index 611f7dd6e..71c85b36d 100644 --- a/python/vyos/configdict.py +++ b/python/vyos/configdict.py @@ -225,6 +225,9 @@ def vlan_to_dict(conf): # Media Access Control (MAC) address if conf.exists('mac'): vlan['mac'] = conf.return_value('mac') + # always recreate EUI64 addresses if mac is set + # I'm not sure how to check if a vlan interface exists or how to get its current mac. + vlan['ipv6_eui64_prefix_remove'] += vlan['ipv6_eui64_prefix'] # Maximum Transmission Unit (MTU) if conf.exists('mtu'): |