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-614
1 files changed, 14 insertions, 0 deletions
diff --git a/src/migration-scripts/ipsec/5-to-6 b/src/migration-scripts/ipsec/5-to-6
index 86be55d13..ba5ce0fca 100755
--- a/src/migration-scripts/ipsec/5-to-6
+++ b/src/migration-scripts/ipsec/5-to-6
@@ -60,6 +60,20 @@ if config.exists(base + ['site-to-site', 'peer']):
if config.exists(public_networks):
config.delete(public_networks)
+# Rename "logging log-level" and "logging log-modes" to something more human friendly
+log = base + ['logging']
+if config.exists(log):
+ config.rename(log, 'log')
+ log = base + ['log']
+
+log_level = log + ['log-level']
+if config.exists(log_level):
+ config.rename(log_level, 'level')
+
+log_mode = log + ['log-modes']
+if config.exists(log_mode):
+ config.rename(log_mode, 'subsystem')
+
try:
with open(file_name, 'w') as f:
f.write(config.to_string())