mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 01:37:53 +00:00
Merge pull request #2615 from chiragshah6/evpn_dev
bgpd: l3vni del to free ip prefix routes from vrf
This commit is contained in:
commit
3ebe5e5091
@ -5216,7 +5216,7 @@ int bgp_evpn_local_l3vni_add(vni_t l3vni, vrf_id_t vrf_id, struct ethaddr *rmac,
|
|||||||
struct bgpevpn *vpn = NULL;
|
struct bgpevpn *vpn = NULL;
|
||||||
as_t as = 0;
|
as_t as = 0;
|
||||||
|
|
||||||
/* get the default instamce - required to get the AS number for VRF
|
/* get the default instance - required to get the AS number for VRF
|
||||||
* auto-creatio
|
* auto-creatio
|
||||||
*/
|
*/
|
||||||
bgp_def = bgp_get_default();
|
bgp_def = bgp_get_default();
|
||||||
@ -5319,11 +5319,12 @@ int bgp_evpn_local_l3vni_del(vni_t l3vni, vrf_id_t vrf_id)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* unimport remote routes from VRF, if it is AUTO vrf bgp_delete will
|
/* Remove remote routes from BGT VRF even if BGP_VRF_AUTO is configured,
|
||||||
* take care of uninstalling the routes from zebra
|
* bgp_delete would not remove/decrement bgp_info of the ip_prefix
|
||||||
|
* routes. This will uninstalling the routes from zebra and decremnt the
|
||||||
|
* bgp info count.
|
||||||
*/
|
*/
|
||||||
if (!CHECK_FLAG(bgp_vrf->vrf_flags, BGP_VRF_AUTO))
|
uninstall_routes_for_vrf(bgp_vrf);
|
||||||
uninstall_routes_for_vrf(bgp_vrf);
|
|
||||||
|
|
||||||
/* delete/withdraw all type-5 routes */
|
/* delete/withdraw all type-5 routes */
|
||||||
delete_withdraw_vrf_routes(bgp_vrf);
|
delete_withdraw_vrf_routes(bgp_vrf);
|
||||||
|
Loading…
Reference in New Issue
Block a user