summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_zebra.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-10-14 20:06:38 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2021-10-15 02:42:52 +0200
commitde4f1a66fbdd368baab4ba3a517d253e5ec6da1e (patch)
tree77fd048d4292c53be8f2d81b1bc36a3158dd5257 /bgpd/bgp_zebra.c
parentbfdd: cleanup bfd_session_enable (diff)
downloadfrr-de4f1a66fbdd368baab4ba3a517d253e5ec6da1e.tar.xz
frr-de4f1a66fbdd368baab4ba3a517d253e5ec6da1e.zip
bgpd: don't use if_lookup_by_name_all_vrf
if_lookup_by_name_all_vrf doesn't work correctly with netns VRF backend as the same index may be used in multiple netns simultaneously. Use the appropriate VRF when looking for the interface. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'bgpd/bgp_zebra.c')
-rw-r--r--bgpd/bgp_zebra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c
index 0249d53f0..0546c6386 100644
--- a/bgpd/bgp_zebra.c
+++ b/bgpd/bgp_zebra.c
@@ -3506,7 +3506,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(vrf->name, vrf);
if (!ifp)
return;
api_nh->vrf_id = nh->vrf_id;