summaryrefslogtreecommitdiff
path: root/src/migration-scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-07-22 19:56:19 +0200
committerChristian Poessinger <christian@poessinger.com>2021-07-22 20:01:35 +0200
commit4e4dacee281059fdbca6531ace53f22817a62650 (patch)
treee68e41052c4620c4bf40c5cf73b3891a7ea7e967 /src/migration-scripts
parent2495ea2f010474f8eb673d9ccd89429a127c1edc (diff)
downloadvyos-1x-4e4dacee281059fdbca6531ace53f22817a62650.tar.gz
vyos-1x-4e4dacee281059fdbca6531ace53f22817a62650.zip
ipsec: T2816: remove "auto-update" CLI option
Update/refresh of DNS records is now handled internally by Strongswan.
Diffstat (limited to 'src/migration-scripts')
-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())