From 0f5d5c936a3c79f47a7a41ce59764cc4f43ece1f Mon Sep 17 00:00:00 2001 From: Oleksandr Kuchmystyi Date: Wed, 11 Feb 2026 15:20:53 +0300 Subject: vpp: T8255: Changed logging level variable name This commit changes logging settings naming: - before: `set vpp settings logging default-log-level ` - after: `set vpp settings logging default-level ` --- src/migration-scripts/vpp/7-to-8 | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/migration-scripts/vpp/7-to-8 (limited to 'src/migration-scripts') diff --git a/src/migration-scripts/vpp/7-to-8 b/src/migration-scripts/vpp/7-to-8 new file mode 100644 index 000000000..dfe2f5013 --- /dev/null +++ b/src/migration-scripts/vpp/7-to-8 @@ -0,0 +1,30 @@ +# Copyright VyOS maintainers and contributors +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this library. If not, see . +# +# Rename `vpp settings logging default-log-level` to +# `vpp settings logging default-level` (T8255) +# + +from vyos.configtree import ConfigTree + + +def _migrate_vpp_log(config: ConfigTree) -> None: + base = ['vpp', 'settings', 'logging'] + if config.exists(base + ['default-log-level']): + config.rename(base + ['default-log-level'], 'default-level') + + +def migrate(config: ConfigTree) -> None: + _migrate_vpp_log(config) -- cgit v1.2.3