Skip to content

Commit db61d3c

Browse files
authored
Merge pull request FRRouting#19896 from chiragshah6/evpn_dev5
bgpd: Check L3VNI status before adv evpn vrf routes
2 parents 8e6de49 + f4c61b5 commit db61d3c

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
@@ -4594,6 +4594,9 @@ void update_advertise_vrf_routes(struct bgp *bgp_vrf)
45944594
if (!bgp_evpn)
45954595
return;
45964596

4597+
if (!is_l3vni_live(bgp_vrf))
4598+
return; /* Nothing to do if no l3vni */
4599+
45974600
/* update all ipv4 routes */
45984601
if (advertise_type5_routes_bestpath(bgp_vrf, AFI_IP) ||
45994602
advertise_type5_routes_multipath(bgp_vrf, AFI_IP))

0 commit comments

Comments
 (0)