summaryrefslogtreecommitdiff
path: root/src/migration-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/migration-scripts')
-rw-r--r--src/migration-scripts/system/28-to-2910
1 files changed, 8 insertions, 2 deletions
diff --git a/src/migration-scripts/system/28-to-29 b/src/migration-scripts/system/28-to-29
index 9716e9e90..2ccd4b9c0 100644
--- a/src/migration-scripts/system/28-to-29
+++ b/src/migration-scripts/system/28-to-29
@@ -37,8 +37,9 @@ def migrate(config: ConfigTree) -> None:
# Move "global preserve-fqdn" one CLI level up, as it relates to all
# logging targets (console, global and remote)
- if config.exists(base + ['global', 'preserve-fqdn']):
- config.delete(base + ['global', 'preserve-fqdn'])
+ preserve_fqdn_base = base + ['global', 'preserve-fqdn']
+ if config.exists(preserve_fqdn_base):
+ config.delete(preserve_fqdn_base)
config.set(base + ['preserve-fqdn'])
# Move "global marker" one CLI level up, as it relates to all
@@ -48,6 +49,11 @@ def migrate(config: ConfigTree) -> None:
config.copy(marker_base, base + ['marker'])
config.delete(marker_base)
+ # Rename "global" -> "local" as this describes what is logged locally
+ # on the router to a file on the filesystem
+ if config.exists(base + ['global']):
+ config.rename(base + ['global'], 'local')
+
# Rename host x.x.x.x -> remote x.x.x.x
if config.exists(base + ['host']):
config.set(base + ['remote'])