diff options
| author | Daniil Baturin <daniil@vyos.io> | 2025-04-22 16:19:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-22 16:19:10 +0100 |
| commit | d93a44867eb6924dc633405126893ae542855167 (patch) | |
| tree | 166384c43512f81c3662b3bc6e8d0f58a678376b /python/vyos/configdict.py | |
| parent | be0ce3a33d717fe06bc52fe1f30a544a62ae5552 (diff) | |
| parent | b124f0b3b05bced1f916e9519d986d03f2b95c51 (diff) | |
| download | veeos-1x-d93a44867eb6924dc633405126893ae542855167.tar.gz veeos-1x-d93a44867eb6924dc633405126893ae542855167.zip | |
Merge pull request #4392 from symysak/T4627
interface: T4627: support setting of IPv6 Interface Identifier(Token)
Diffstat (limited to 'python/vyos/configdict.py')
| -rw-r--r-- | python/vyos/configdict.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py index 586ddf632..ff0a15933 100644 --- a/python/vyos/configdict.py +++ b/python/vyos/configdict.py @@ -517,6 +517,14 @@ def get_interface_dict(config, base, ifname='', recursive_defaults=True, with_pk else: dict['ipv6']['address'].update({'eui64_old': eui64}) + interface_identifier = leaf_node_changed(config, base + [ifname, 'ipv6', 'address', 'interface-identifier']) + if interface_identifier: + tmp = dict_search('ipv6.address', dict) + if not tmp: + dict.update({'ipv6': {'address': {'interface_identifier_old': interface_identifier}}}) + else: + dict['ipv6']['address'].update({'interface_identifier_old': interface_identifier}) + for vif, vif_config in dict.get('vif', {}).items(): # Add subinterface name to dictionary dict['vif'][vif].update({'ifname' : f'{ifname}.{vif}'}) |
