]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: bgp_redist_lookup param handles instances, not vrfs
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 11 Jan 2018 08:11:36 +0000 (09:11 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 22 Jan 2018 12:52:24 +0000 (13:52 +0100)
The VRF_DEFAULT parameter is incorrectly used. The 0 value for the bgp
instance is passed instead.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
fixup bgpd: fix compilation issue with bgpd

bgpd/rfapi/rfapi.c

index 1e3c5a0352dc368b7ed94616d25cb8126fa92d8e..95666143a5c5a9723e70f789d59e52193f8c0487 100644 (file)
@@ -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;