Page Menu
Home
VyOS Platform
Search
Configure Global Search
Log In
Files
F119898039
0-to-1
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
0-to-1
View Options
# Copyright 2024 VyOS maintainers and contributors <maintainers@vyos.io>
#
# 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 <http://www.gnu.org/licenses/>.
# T6409: Remove unused 'backend bk-example parameters' node
from vyos.configtree import ConfigTree
base = ['load-balancing', 'reverse-proxy', 'backend']
def migrate(config: ConfigTree) -> None:
if not config.exists(base):
# Nothing to do
return
# we need to run this for every configured network
for backend in config.list_nodes(base):
param_node = base + [backend, 'parameters']
if config.exists(param_node):
config.delete(param_node)
File Metadata
Details
Attached
Mime Type
text/x-script.python
Expires
Thu, Nov 26, 8:22 PM (15 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4985461
Default Alt Text
0-to-1 (1 KB)
Attached To
Mode
rVYOSONEX vyos-1x
Attached
Detach File
Event Timeline
Log In to Comment