mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 04:26:12 +00:00
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 <philippe.guibert@6wind.com> fixup bgpd: fix compilation issue with bgpd
This commit is contained in:
parent
87ad28f48c
commit
2fcdb1b2d1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user