Merge pull request #9873 from bhinin/dynamic_peer_count_reset

bgpd: Reset dynamic peer counter
This commit is contained in:
Donatas Abraitis 2021-10-26 08:59:39 +03:00 committed by GitHub
commit 95bbb5e652
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10241,6 +10241,7 @@ static int bgp_show_summary(struct vty *vty, struct bgp *bgp, int afi, int safi,
count = 0; /* Reset the value as its used again */
filtered_count = 0;
dn_count = 0;
for (ALL_LIST_ELEMENTS(bgp->peer, node, nnode, peer)) {
if (!CHECK_FLAG(peer->flags, PEER_FLAG_CONFIG_NODE))
continue;