From d238a582e47e89c12b34b010a6a02a07f5099819 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Mon, 6 Oct 2025 10:48:48 -0500 Subject: Revert "bgp: T7760: remove per vrf instance system-as node" This reverts commit 85fe32f0e1a91a47fe4a6d4a5cdd6ac516dcc3b9. --- src/migration-scripts/bgp/7-to-8 | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 src/migration-scripts/bgp/7-to-8 (limited to 'src/migration-scripts') diff --git a/src/migration-scripts/bgp/7-to-8 b/src/migration-scripts/bgp/7-to-8 deleted file mode 100644 index ced4f837e..000000000 --- a/src/migration-scripts/bgp/7-to-8 +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env python3 -# -# Copyright VyOS maintainers and contributors -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 or later as -# published by the Free Software Foundation. -# -# This program 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 General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -# T7760: Remove per VRF setting for system-as option in VyOS 1.5 and onwards - -from vyos.configtree import ConfigTree - -def migrate(config: ConfigTree) -> None: - vrf_base = ['vrf', 'name'] - if not config.exists(vrf_base): - return - - for vrf in config.list_nodes(vrf_base): - # bail out early if there is no per VRF BGP instance defined - vrf_bgp_base = vrf_base + [vrf, 'protocols', 'bgp'] - if config.exists(vrf_bgp_base + ['system-as']): - config.delete(vrf_bgp_base + ['system-as']) -- cgit v1.2.3