summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-01-15 20:45:42 +0100
committerChristian Breunig <christian@breunig.cc>2025-02-03 07:16:07 +0100
commitb9c43b19acb6f649bb6f64c75ab63df768e360c9 (patch)
tree05c8b1da45146e3cd39b7058ac0c0be2fccd1c3f /src
parent20ab585a68982c4635c4e5a1ee5bbcc219feaebc (diff)
downloadvyos-1x-b9c43b19acb6f649bb6f64c75ab63df768e360c9.tar.gz
vyos-1x-b9c43b19acb6f649bb6f64c75ab63df768e360c9.zip
syslog: T6989: move up "global marker" one level in CLI
Diffstat (limited to 'src')
-rw-r--r--src/migration-scripts/system/28-to-297
1 files changed, 7 insertions, 0 deletions
diff --git a/src/migration-scripts/system/28-to-29 b/src/migration-scripts/system/28-to-29
index dadfc994a..9716e9e90 100644
--- a/src/migration-scripts/system/28-to-29
+++ b/src/migration-scripts/system/28-to-29
@@ -41,6 +41,13 @@ def migrate(config: ConfigTree) -> None:
config.delete(base + ['global', 'preserve-fqdn'])
config.set(base + ['preserve-fqdn'])
+ # Move "global marker" one CLI level up, as it relates to all
+ # logging targets (console, global and remote)
+ marker_base = base + ['global', 'marker']
+ if config.exists(marker_base):
+ config.copy(marker_base, base + ['marker'])
+ config.delete(marker_base)
+
# Rename host x.x.x.x -> remote x.x.x.x
if config.exists(base + ['host']):
config.set(base + ['remote'])