diff options
author | Christian Breunig <christian@breunig.cc> | 2025-01-13 19:36:41 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2025-02-03 07:16:07 +0100 |
commit | e143e496e28b9d6d5803278fa76a14bf2bc2304e (patch) | |
tree | acd53d7bc565df571c4e8ed39e13420ed5b00736 /src/migration-scripts/system/28-to-29 | |
parent | 8784aaa6fbec978aa97cab09cfbf9894163a2b1b (diff) | |
download | vyos-1x-e143e496e28b9d6d5803278fa76a14bf2bc2304e.tar.gz vyos-1x-e143e496e28b9d6d5803278fa76a14bf2bc2304e.zip |
syslog: T6989: convert old configuration format to "advanced"
Diffstat (limited to 'src/migration-scripts/system/28-to-29')
-rw-r--r-- | src/migration-scripts/system/28-to-29 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/migration-scripts/system/28-to-29 b/src/migration-scripts/system/28-to-29 index 2f55d425a..1addad035 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 +# - rename "host" to "remote" from vyos.configtree import ConfigTree @@ -24,14 +25,16 @@ base = ['system', 'syslog'] def migrate(config: ConfigTree) -> None: if not config.exists(base): return - + # Drop support for custom file logging if config.exists(base + ['file']): config.delete(base + ['file']) + # Drop support for logging to a user tty + # This should be dynamically added via an op-mode command like "terminal monitor" if config.exists(base + ['user']): config.delete(base + ['user']) - # rename host -> remote + # Rename host x.x.x.x -> remote x.x.x.x if config.exists(base + ['host']): config.set(base + ['remote']) config.set_tag(base + ['remote']) |