mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-10 08:39:33 +00:00
Merge pull request #4920 from ddutt/bgp-summary-upd8
Add Estd & Dropped counters to JSON output of "show bgp summary" command
This commit is contained in:
commit
6ae3f8420f
@ -8392,6 +8392,10 @@ static int bgp_show_summary(struct vty *vty, struct bgp *bgp, int afi, int safi,
|
|||||||
json_peer, "state",
|
json_peer, "state",
|
||||||
lookup_msg(bgp_status_msg, peer->status,
|
lookup_msg(bgp_status_msg, peer->status,
|
||||||
NULL));
|
NULL));
|
||||||
|
json_object_int_add(json_peer, "connectionsEstablished",
|
||||||
|
peer->established);
|
||||||
|
json_object_int_add(json_peer, "connectionsDropped",
|
||||||
|
peer->dropped);
|
||||||
}
|
}
|
||||||
/* Avoid creating empty peer dicts in JSON */
|
/* Avoid creating empty peer dicts in JSON */
|
||||||
if (json_peer == NULL)
|
if (json_peer == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user