summaryrefslogtreecommitdiff
path: root/src/migration-scripts/ipsec/5-to-6
diff options
context:
space:
mode:
Diffstat (limited to 'src/migration-scripts/ipsec/5-to-6')
-rwxr-xr-xsrc/migration-scripts/ipsec/5-to-65
1 files changed, 5 insertions, 0 deletions
diff --git a/src/migration-scripts/ipsec/5-to-6 b/src/migration-scripts/ipsec/5-to-6
index 76ee9ecba..e9adee01b 100755
--- a/src/migration-scripts/ipsec/5-to-6
+++ b/src/migration-scripts/ipsec/5-to-6
@@ -80,6 +80,11 @@ if config.exists(base_interfaces):
config.copy(base_interfaces, base + ['interface'])
config.delete(base_interfaces)
+# Remove deprecated "auto-update" option
+tmp = base + ['auto-update']
+if config.exists(tmp):
+ config.delete(tmp)
+
try:
with open(file_name, 'w') as f:
f.write(config.to_string())