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:04:56 +0200 |
commit | e83a113360ba18043edcf7f70689c7042dee2b37 (patch) | |
tree | 4af3988c93dccc1a61f52f57b8aa600fb7d834b9 /src/migration-scripts/dhcp-server/5-to-6 | |
parent | 88f71fc6b5b3bd89623c3d5f0af1c7dbd19f0996 (diff) | |
download | vyos-1x-e83a113360ba18043edcf7f70689c7042dee2b37.tar.gz vyos-1x-e83a113360ba18043edcf7f70689c7042dee2b37.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.
Diffstat (limited to 'src/migration-scripts/dhcp-server/5-to-6')
-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']) |