summaryrefslogtreecommitdiff
path: root/src/migration-scripts/dhcp-server/5-to-6
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-09-19 17:04:49 +0200
committerChristian Poessinger <christian@poessinger.com>2021-09-19 17:04:56 +0200
commite83a113360ba18043edcf7f70689c7042dee2b37 (patch)
tree4af3988c93dccc1a61f52f57b8aa600fb7d834b9 /src/migration-scripts/dhcp-server/5-to-6
parent88f71fc6b5b3bd89623c3d5f0af1c7dbd19f0996 (diff)
downloadvyos-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-xsrc/migration-scripts/dhcp-server/5-to-62
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'])