diff options
Diffstat (limited to 'src/migration-scripts')
-rwxr-xr-x | src/migration-scripts/interfaces/18-to-19 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/migration-scripts/interfaces/18-to-19 b/src/migration-scripts/interfaces/18-to-19 index 03b990afb..76a578c2f 100755 --- a/src/migration-scripts/interfaces/18-to-19 +++ b/src/migration-scripts/interfaces/18-to-19 @@ -68,6 +68,14 @@ if __name__ == '__main__': else: config.set(['system', 'name-servers-dhcp'], value=interface, replace=False) + # Backup distance is now handled by DHCP option "default-route-distance" + distance = dns = new_base + [interface, 'backup', 'distance'] + old_default_distance = '10' + if config.exists(distance): + old_default_distance = config.return_value(distance) + config.delete(distance) + config.set(new_base + [interface, 'dhcp-options', 'default-route-distance'], value=old_default_distance) + # the new wwan interface use regular IP addressing config.set(new_base + [interface, 'address'], value='dhcp') |