summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_vty.c
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2024-07-26 13:34:08 +0200
committerGitHub <noreply@github.com>2024-07-26 13:34:08 +0200
commit07489b4a3bea81d1070ac110c1879313c8fac313 (patch)
tree3e6291e0b1f8e71a313597d80ad95f05ea307537 /bgpd/bgp_vty.c
parentMerge pull request #16416 from raja-rajasekar/rajasekarr/fix_logs_bp (diff)
parentbgpd: Show software version in bgp summary (diff)
downloadfrr-07489b4a3bea81d1070ac110c1879313c8fac313.tar.xz
frr-07489b4a3bea81d1070ac110c1879313c8fac313.zip
Merge pull request #16473 from opensourcerouting/fix/add_soft_version_in_summary
bgpd: Show software version in bgp summary
Diffstat (limited to 'bgpd/bgp_vty.c')
-rw-r--r--bgpd/bgp_vty.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 1ecbba0ab..ae14abe9e 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -12328,6 +12328,12 @@ static int bgp_show_summary(struct vty *vty, struct bgp *bgp, int afi, int safi,
json_object_string_add(json_peer, "domainname",
peer->domainname);
+ json_object_string_add(json_peer,
+ "softwareVersion",
+ peer->soft_version
+ ? peer->soft_version
+ : "n/a");
+
asn_asn2json(json_peer, "remoteAs", peer->as,
bgp->asnotation);
asn_asn2json(json_peer, "localAs",