diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 9b801b3c94..7e7c0ea2d7 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -8392,6 +8392,10 @@ static int bgp_show_summary(struct vty *vty, struct bgp *bgp, int afi, int safi, json_peer, "state", lookup_msg(bgp_status_msg, peer->status, 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 */ if (json_peer == NULL)