mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-17 19:05:44 +00:00
Merge pull request #2592 from tigranmartirosyan/master
fixed #2567: Json status of BGP peer is not updated properly
This commit is contained in:
commit
c3555a6d12
@ -7935,6 +7935,11 @@ static int bgp_show_summary(struct vty *vty, struct bgp *bgp, int afi, int safi,
|
||||
if (CHECK_FLAG(peer->flags, PEER_FLAG_SHUTDOWN))
|
||||
json_object_string_add(json_peer, "state",
|
||||
"Idle (Admin)");
|
||||
else if (peer->afc_recv[afi][safi])
|
||||
json_object_string_add(
|
||||
json_peer, "state",
|
||||
lookup_msg(bgp_status_msg, peer->status,
|
||||
NULL));
|
||||
else if (CHECK_FLAG(peer->sflags,
|
||||
PEER_STATUS_PREFIX_OVERFLOW))
|
||||
json_object_string_add(json_peer, "state",
|
||||
|
Loading…
Reference in New Issue
Block a user