mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-24 12:35:09 +00:00
Merge pull request #5365 from ton31337/fix/addpath_total_peer_update_7.2
bgpd: [7.2] Fix per afi/safi addpath peer counting
This commit is contained in:
commit
1bee0d4bd7
@ -321,6 +321,7 @@ void bgp_addpath_type_changed(struct bgp *bgp)
|
||||
for (type=0; type<BGP_ADDPATH_MAX; type++) {
|
||||
peer_count[afi][safi][type] = 0;
|
||||
}
|
||||
bgp->tx_addpath.total_peercount[afi][safi] = 0;
|
||||
}
|
||||
|
||||
for (ALL_LIST_ELEMENTS(bgp->peer, node, nnode, peer)) {
|
||||
@ -328,6 +329,7 @@ void bgp_addpath_type_changed(struct bgp *bgp)
|
||||
type = peer->addpath_type[afi][safi];
|
||||
if (type != BGP_ADDPATH_NONE) {
|
||||
peer_count[afi][safi][type] += 1;
|
||||
bgp->tx_addpath.total_peercount[afi][safi] += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user