summaryrefslogtreecommitdiff
path: root/src/migration-scripts/dhcp-server
diff options
context:
space:
mode:
Diffstat (limited to 'src/migration-scripts/dhcp-server')
-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'])