Skip to content

Commit

Permalink
Merge pull request #7594 from ton31337/feature/show_pfxSnt_for_show_b…
Browse files Browse the repository at this point in the history
…gp_summary

bgpd: Show pfxSnt in JSON output for show bgp summary even if not established
  • Loading branch information
donaldsharp authored Nov 25, 2020
2 parents ad88608 + a616dd1 commit f286bcf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bgpd/bgp_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -10810,9 +10810,12 @@ static int bgp_show_summary(struct vty *vty, struct bgp *bgp, int afi, int safi,
peer->pcount[afi][pfx_rcd_safi]);

if (paf && PAF_SUBGRP(paf))
json_object_int_add(json_peer,
"pfxSnt",
(PAF_SUBGRP(paf))->scount);
json_object_int_add(
json_peer, "pfxSnt",
(PAF_SUBGRP(paf))->scount);
else
json_object_int_add(json_peer, "pfxSnt",
0);

/* BGP FSM state */
if (CHECK_FLAG(peer->flags, PEER_FLAG_SHUTDOWN)
Expand Down

0 comments on commit f286bcf

Please sign in to comment.