]> git.proxmox.com Git - mirror_frr.git/commitdiff
Revert "bgpd: vrf route leaking, fix the bgp instance delete and re-add"
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 13 May 2021 22:38:33 +0000 (01:38 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 3 Aug 2021 19:14:18 +0000 (22:14 +0300)
This reverts commit ef7c53e244d5d0cd7c0ba2536fc931abf28df656.

bgpd/bgp_nb_config.c

index bfc117e4871420a76f294dc4db7e5abf27c81e7f..3aa26aceefff33ba3d824269111435a520815641 100644 (file)
@@ -125,12 +125,7 @@ int bgp_router_create(struct nb_cb_create_args *args)
                if (is_new_bgp && inst_type == BGP_INSTANCE_TYPE_DEFAULT)
                        vpn_leak_postchange_all();
 
-               /*
-                * Check if we need to export to other VRF(s).
-                * Leak the routes to importing bgp vrf instances,
-                * only when new bgp vrf instance is configured.
-                */
-               if (ret != BGP_INSTANCE_EXISTS)
+               if (inst_type == BGP_INSTANCE_TYPE_VRF)
                        bgp_vpn_leak_export(bgp);
 
                UNSET_FLAG(bgp->vrf_flags, BGP_VRF_AUTO);