From 9585bba7647707921c9d4b05ca496b781c902b8b Mon Sep 17 00:00:00 2001 From: vivek Date: Wed, 13 Apr 2016 18:41:58 -0700 Subject: [PATCH] BGP: Register with correct VRF id for redistribution When doing a redistribution re-registration upon route-map updates, the correct VRF id was not being used. Fixed. Signed-off-by: Vivek Venkatraman Ticket: CM-10311 Reviewed By: Trivial Testing Done: Manual - verified failed scenario --- bgpd/bgp_zebra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index 878c755f8c..d8427307ce 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -1859,9 +1859,9 @@ bgp_redistribute_resend (struct bgp *bgp, afi_t afi, int type, u_short instance) /* Send distribute add message to zebra. */ zebra_redistribute_send (ZEBRA_REDISTRIBUTE_DELETE, zclient, afi, type, - instance, VRF_DEFAULT); + instance, bgp->vrf_id); zebra_redistribute_send (ZEBRA_REDISTRIBUTE_ADD, zclient, afi, type, - instance, VRF_DEFAULT); + instance, bgp->vrf_id); return 0; } -- 2.39.5