From: Donatas Abraitis Date: Tue, 24 Nov 2020 13:32:35 +0000 (+0200) Subject: Revert "bgpd: identify passive connections in JSON summary" X-Git-Tag: base_7.6~210^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=0b34518c5671ac3cc5efd01b3c0b9d7a08c89efa;p=mirror%2Ffrr.git Revert "bgpd: identify passive connections in JSON summary" This reverts commit 266ae3aa532d26d4e4ed2d1d1ca5887bb2ac882e. --- diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index d455978f3e..5e26d3063b 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -10818,14 +10818,6 @@ 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",