summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_vty.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 40e9707866..72a01fa99c 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -10832,6 +10832,14 @@ static int bgp_show_summary(struct vty *vty, struct bgp *bgp, int afi, int safi,
BGP_FLAG_SHUTDOWN))
json_object_string_add(json_peer, "state",
"Idle (Admin)");
+ else if (peer->status == Active
+ && CHECK_FLAG(peer->flags, PEER_FLAG_PASSIVE))
+ json_object_string_add(json_peer, "state",
+ "Active (passive)");
+ else if (peer->status == Active
+ && CHECK_FLAG(peer->sflags, PEER_STATUS_NSF_WAIT))
+ json_object_string_add(json_peer, "state",
+ "Active (NSF passive)");
else if (peer->afc_recv[afi][safi])
json_object_string_add(
json_peer, "state",