mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-06 22:38:08 +00:00
Merge pull request #16068 from piotrsuchy/unknown_VRF
bgpd: Ignore routes from evpn if VRF is unknown
This commit is contained in:
commit
0727e97a0c
@ -3037,6 +3037,9 @@ static int install_evpn_route_entry_in_vrf(struct bgp *bgp_vrf,
|
|||||||
vrf_id_to_name(bgp_vrf->vrf_id), evp, parent_pi,
|
vrf_id_to_name(bgp_vrf->vrf_id), evp, parent_pi,
|
||||||
parent_pi->flags);
|
parent_pi->flags);
|
||||||
|
|
||||||
|
if (bgp_vrf->vrf_id == VRF_UNKNOWN)
|
||||||
|
return -1;
|
||||||
|
|
||||||
/* Create (or fetch) route within the VRF. */
|
/* Create (or fetch) route within the VRF. */
|
||||||
/* NOTE: There is no RD here. */
|
/* NOTE: There is no RD here. */
|
||||||
if (is_evpn_prefix_ipaddr_v4(evp)) {
|
if (is_evpn_prefix_ipaddr_v4(evp)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user