diff options
author | Christian Breunig <christian@breunig.cc> | 2025-01-15 20:38:43 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2025-02-03 07:16:07 +0100 |
commit | 20ab585a68982c4635c4e5a1ee5bbcc219feaebc (patch) | |
tree | 362ae42924447bbd6f3f73493be21fea60be8bb3 /src/migration-scripts/system/28-to-29 | |
parent | 04d296a3446fa8488add17ce1ec7931d43c4a4d0 (diff) | |
download | vyos-1x-20ab585a68982c4635c4e5a1ee5bbcc219feaebc.tar.gz vyos-1x-20ab585a68982c4635c4e5a1ee5bbcc219feaebc.zip |
syslog: T6989: move up "global preserve-fqdn" one level in CLI
Move "global preserve-fqdn" one CLI level up, as it relates to all logging
targets (console, global and remote).
Diffstat (limited to 'src/migration-scripts/system/28-to-29')
-rw-r--r-- | src/migration-scripts/system/28-to-29 | 7 |
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 1addad035..dadfc994a 100644 --- a/src/migration-scripts/system/28-to-29 +++ b/src/migration-scripts/system/28-to-29 @@ -16,6 +16,7 @@ # T6989: # - remove syslog arbitrary file logging # - remove syslog user console logging +# - move "global preserve-fqdn" one CLI level up # - rename "host" to "remote" from vyos.configtree import ConfigTree @@ -34,6 +35,12 @@ def migrate(config: ConfigTree) -> None: if config.exists(base + ['user']): config.delete(base + ['user']) + # 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']) + config.set(base + ['preserve-fqdn']) + # Rename host x.x.x.x -> remote x.x.x.x if config.exists(base + ['host']): config.set(base + ['remote']) |