diff options
author | Christian Breunig <christian@breunig.cc> | 2025-01-08 21:46:50 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2025-02-03 07:16:07 +0100 |
commit | 8784aaa6fbec978aa97cab09cfbf9894163a2b1b (patch) | |
tree | f7b9b7aaeacde7294f3f9f0d8b01c6ecea3b45c5 /src | |
parent | 196797346b973d1eba3f3d000321786c54e3bdbf (diff) | |
download | vyos-1x-8784aaa6fbec978aa97cab09cfbf9894163a2b1b.tar.gz vyos-1x-8784aaa6fbec978aa97cab09cfbf9894163a2b1b.zip |
syslog: T6989: rename "host" to "remote"
Diffstat (limited to 'src')
-rw-r--r-- | src/migration-scripts/system/28-to-29 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/migration-scripts/system/28-to-29 b/src/migration-scripts/system/28-to-29 index b8439100a..2f55d425a 100644 --- a/src/migration-scripts/system/28-to-29 +++ b/src/migration-scripts/system/28-to-29 @@ -30,3 +30,12 @@ def migrate(config: ConfigTree) -> None: if config.exists(base + ['user']): config.delete(base + ['user']) + + # rename host -> remote + if config.exists(base + ['host']): + config.set(base + ['remote']) + config.set_tag(base + ['remote']) + for remote in config.list_nodes(base + ['host']): + config.copy(base + ['host', remote], base + ['remote', remote]) + config.set_tag(base + ['remote']) + config.delete(base + ['host']) |