mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-20 22:37:36 +00:00
bgpd: Include local AS for JSON output in show bgp summary json
cmd
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
85eeb02915
commit
c854765f97
@ -10975,6 +10975,11 @@ static int bgp_show_summary(struct vty *vty, struct bgp *bgp, int afi, int safi,
|
||||
peer->domainname);
|
||||
|
||||
json_object_int_add(json_peer, "remoteAs", peer->as);
|
||||
json_object_int_add(
|
||||
json_peer, "localAs",
|
||||
peer->change_local_as
|
||||
? peer->change_local_as
|
||||
: peer->local_as);
|
||||
json_object_int_add(json_peer, "version", 4);
|
||||
json_object_int_add(json_peer, "msgRcvd",
|
||||
PEER_TOTAL_RX(peer));
|
||||
|
Loading…
Reference in New Issue
Block a user