diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-02-07 19:24:39 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-02-07 19:24:39 +0100 |
commit | 89108f629ec8cc6990473468c1c67ffa8742b884 (patch) | |
tree | a485fecec0464d928b33c4b1daeba284e06edfed /src/migration-scripts | |
parent | f2b233e26ebb8c9755cd80625e8463025bfefbd7 (diff) | |
download | vyos-1x-89108f629ec8cc6990473468c1c67ffa8742b884.tar.gz vyos-1x-89108f629ec8cc6990473468c1c67ffa8742b884.zip |
system: T2486: bugfix name-servers-dhcp NameError on vif-c interfaces
Commit 0f8beae7426 ("system: T2486: migrate disable-dhcp-nameservers to
name-servers-dhcp") added a migration script for moving the name-servers.
A small glitch was introduced when referencing vif-c interfaces unter a vif-s
interface where a variable got referenced which was not defined.
Diffstat (limited to 'src/migration-scripts')
-rwxr-xr-x | src/migration-scripts/system/18-to-19 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/migration-scripts/system/18-to-19 b/src/migration-scripts/system/18-to-19 index dd2abce00..fd0e15d42 100755 --- a/src/migration-scripts/system/18-to-19 +++ b/src/migration-scripts/system/18-to-19 @@ -80,8 +80,8 @@ else: dhcp_interfaces.append(f'{intf}.{vif_s}') # try vif-c - if config.exists(intf_base + ['vif-c', vif_c]): - for vif_c in config.list_nodes(vif_s_base + ['vif-c', vif_c]): + if config.exists(intf_base + ['vif-c']): + for vif_c in config.list_nodes(vif_s_base + ['vif-c']): vif_c_base = vif_s_base + ['vif-c', vif_c] if config.exists(vif_c_base + ['address']): for addr in config.return_values(vif_c_base + ['address']): |