summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_vty.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 33f5180bd..1ddc60c20 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -7914,9 +7914,11 @@ static int bgp_show_summary(struct vty *vty, struct bgp *bgp, int afi, int safi,
if (use_json) {
json_peer = json_object_new_object();
- if (peer_dynamic_neighbor(peer))
+ if (peer_dynamic_neighbor(peer)) {
+ dn_count++;
json_object_boolean_true_add(json_peer,
"dynamicPeer");
+ }
if (peer->hostname)
json_object_string_add(json_peer, "hostname",