Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: fix issue with interface node access at startup #4193

Closed
Prev Previous commit
Next Next commit
bgpd: flowspec default route uses vrf interface
interface whose name is "vrf name" is in the vrf with vrf_id identified
as nexthop vrf identifier. instead of parsing all vrfs, go directly to
use the appropriate one.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
  • Loading branch information
pguibert6WIND committed Oct 15, 2019
commit 88cc1fcfc3f76ede37a2117bde9de8e37db02594
2 changes: 1 addition & 1 deletion bgpd/bgp_zebra.c
Original file line number Diff line number Diff line change
Expand Up @@ -2985,7 +2985,7 @@ void bgp_zebra_announce_default(struct bgp *bgp, struct nexthop *nh,
/* create default route with interface <VRF>
* with nexthop-vrf <VRF>
*/
ifp = if_lookup_by_name_all_vrf(vrf->name);
ifp = if_lookup_by_name(vrf->name, nh->vrf_id);
if (!ifp)
return;
api_nh->vrf_id = nh->vrf_id;
Expand Down