mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 18:27:21 +00:00
bgpd: Fix peer->weight usage
When setting the weight make sure to use the correct afi safi to get what we need. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Lou Berger <lberger@labn.net>
This commit is contained in:
parent
353190c1c8
commit
d8e012a89e
@ -784,7 +784,7 @@ add_vnc_route (
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* override default weight assigned by bgp_attr_default_set() */
|
/* override default weight assigned by bgp_attr_default_set() */
|
||||||
attr.extra->weight = (rfd->peer ? rfd->peer->weight : 0);
|
attr.extra->weight = rfd->peer ? rfd->peer->weight[afi][safi] : 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* NB: ticket 81: do not reset attr.aspath here because it would
|
* NB: ticket 81: do not reset attr.aspath here because it would
|
||||||
|
Loading…
Reference in New Issue
Block a user