From 2fcdb1b2d17703c3cbd152c37a9e221a92f644c7 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Thu, 11 Jan 2018 09:11:36 +0100 Subject: [PATCH] bgpd: bgp_redist_lookup param handles instances, not vrfs The VRF_DEFAULT parameter is incorrectly used. The 0 value for the bgp instance is passed instead. Signed-off-by: Philippe Guibert fixup bgpd: fix compilation issue with bgpd --- bgpd/rfapi/rfapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/rfapi/rfapi.c b/bgpd/rfapi/rfapi.c index 1e3c5a0352..95666143a5 100644 --- a/bgpd/rfapi/rfapi.c +++ b/bgpd/rfapi/rfapi.c @@ -913,7 +913,7 @@ void add_vnc_route(struct rfapi_descriptor *rfd, /* cookie, VPN UN addr, peer */ * aspath: points to interned hash from aspath hash table */ - red = bgp_redist_lookup(bgp, afi, type, VRF_DEFAULT); + red = bgp_redist_lookup(bgp, afi, type, 0); if (red && red->redist_metric_flag) { attr.med = red->redist_metric;