diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-09-19 17:04:49 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-09-19 17:08:50 +0200 |
commit | 9b0c1c0c3125257baee184eea7ad55d7dda57680 (patch) | |
tree | 1aa9453b1bc686acacf1ef9b179831fd70038866 /src/migration-scripts/dhcp-server | |
parent | bc71e8dcfbe0ae8b27c13dbb3ce8358726ef9585 (diff) | |
download | vyos-1x-9b0c1c0c3125257baee184eea7ad55d7dda57680.tar.gz vyos-1x-9b0c1c0c3125257baee184eea7ad55d7dda57680.zip |
dhcp-server: T3672: migrate failover name option
Commit 2985035b (dhcp-server: T3672: re-add missing "name" CLI option)
unfortunately did not add the name option to the migration script.
(cherry picked from commit e83a113360ba18043edcf7f70689c7042dee2b37)
Diffstat (limited to 'src/migration-scripts/dhcp-server')
-rwxr-xr-x | src/migration-scripts/dhcp-server/5-to-6 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/migration-scripts/dhcp-server/5-to-6 b/src/migration-scripts/dhcp-server/5-to-6 index 39bbb9f50..aefe84737 100755 --- a/src/migration-scripts/dhcp-server/5-to-6 +++ b/src/migration-scripts/dhcp-server/5-to-6 @@ -69,10 +69,12 @@ for network in config.list_nodes(base + ['shared-network-name']): local = config.return_value(base_subnet + ['failover', 'local-address']) remote = config.return_value(base_subnet + ['failover', 'peer-address']) status = config.return_value(base_subnet + ['failover', 'status']) + name = config.return_value(base_subnet + ['failover', 'name']) config.set(base + ['failover', 'remote'], value=remote) config.set(base + ['failover', 'source-address'], value=local) config.set(base + ['failover', 'status'], value=status) + config.set(base + ['failover', 'name'], value=name) config.delete(base_subnet + ['failover']) config.set(base_subnet + ['enable-failover']) |