Merge pull request #16493 from FRRouting/mergify/bp/stable/10.1/pr-16491

bgpd: Do not process VRF import/export to/from auto created VRF instances (backport #16491)
This commit is contained in:
Donald Sharp 2024-07-29 07:55:47 -04:00 committed by GitHub
commit 78c5d1de25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -3730,6 +3730,9 @@ void vpn_leak_postchange_all(void)
if (bgp->inst_type != BGP_INSTANCE_TYPE_VRF)
continue;
if (CHECK_FLAG(bgp->vrf_flags, BGP_VRF_AUTO))
continue;
vpn_leak_postchange(
BGP_VPN_POLICY_DIR_TOVPN,
AFI_IP,
@ -3749,6 +3752,9 @@ void vpn_leak_postchange_all(void)
if (bgp->inst_type != BGP_INSTANCE_TYPE_VRF)
continue;
if (CHECK_FLAG(bgp->vrf_flags, BGP_VRF_AUTO))
continue;
vpn_leak_postchange(
BGP_VPN_POLICY_DIR_FROMVPN,
AFI_IP,

View File

@ -1703,7 +1703,7 @@ DEFUN (no_router_bgp,
continue;
if (CHECK_FLAG(tmp_bgp->vrf_flags, BGP_VRF_AUTO))
continue;
bgp_delete(tmp_bgp);
if (CHECK_FLAG(
tmp_bgp->af_flags[AFI_IP]