forked from Mirror/frr
Merge pull request #18376 from pguibert6WIND/show_bgp_neighbor_counter_tx
bgpd: fix add prefix sent in 'show bgp neighbor'
This commit is contained in:
commit
dc37bff8c0
|
@ -14088,7 +14088,12 @@ static void bgp_show_peer_afi(struct vty *vty, struct peer *p, afi_t afi,
|
||||||
? "Advertise"
|
? "Advertise"
|
||||||
: "Withdraw");
|
: "Withdraw");
|
||||||
|
|
||||||
/* Receive prefix count */
|
/* Receive and sent prefix count, if available */
|
||||||
|
paf = peer_af_find(p, afi, safi);
|
||||||
|
if (paf && PAF_SUBGRP(paf))
|
||||||
|
vty_out(vty, " %u accepted, %u sent prefixes\n",
|
||||||
|
p->pcount[afi][safi], PAF_SUBGRP(paf)->scount);
|
||||||
|
else
|
||||||
vty_out(vty, " %u accepted prefixes\n",
|
vty_out(vty, " %u accepted prefixes\n",
|
||||||
p->pcount[afi][safi]);
|
p->pcount[afi][safi]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue