Skip to content

Commit 0727e97

Browse files
authored
Merge pull request #16068 from piotrsuchy/unknown_VRF
bgpd: Ignore routes from evpn if VRF is unknown
2 parents 2cc9348 + 8044d73 commit 0727e97

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bgpd/bgp_evpn.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3037,6 +3037,9 @@ static int install_evpn_route_entry_in_vrf(struct bgp *bgp_vrf,
30373037
vrf_id_to_name(bgp_vrf->vrf_id), evp, parent_pi,
30383038
parent_pi->flags);
30393039

3040+
if (bgp_vrf->vrf_id == VRF_UNKNOWN)
3041+
return -1;
3042+
30403043
/* Create (or fetch) route within the VRF. */
30413044
/* NOTE: There is no RD here. */
30423045
if (is_evpn_prefix_ipaddr_v4(evp)) {

0 commit comments

Comments
 (0)