Skip to content

Commit

Permalink
Merge pull request FRRouting#16068 from piotrsuchy/unknown_VRF
Browse files Browse the repository at this point in the history
bgpd: Ignore routes from evpn if VRF is unknown
  • Loading branch information
ton31337 authored Jun 28, 2024
2 parents 2cc9348 + 8044d73 commit 0727e97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bgpd/bgp_evpn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
parent_pi->flags);

if (bgp_vrf->vrf_id == VRF_UNKNOWN)
return -1;

/* Create (or fetch) route within the VRF. */
/* NOTE: There is no RD here. */
if (is_evpn_prefix_ipaddr_v4(evp)) {
Expand Down

0 comments on commit 0727e97

Please sign in to comment.