]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: fix resolvedPrefix in show nexthop json output
authorKrishnasamy R <krishnasamyr@nvidia.com>
Mon, 11 Nov 2024 09:59:31 +0000 (01:59 -0800)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Mon, 11 Nov 2024 15:11:39 +0000 (15:11 +0000)
commit978a3cdcfdac574c80399489faf9af5e51414a1e
tree09c9a358786cb03f9bf42c46b5beabe4ea3a5c60
parent7f28c4786a482c1247b79c6d1f69b6899b266a10
bgpd: fix resolvedPrefix in show nexthop json output

While populating  the nexthop info for "show bgp nexthop json", resolvedPrefix
is added in parent json object instead of json_nexthop object.
This results in displaying wrong resolvedPrefix for nexthops.
Fixing the same by adding resolvedPrefix to json_nexthop object, so that
the proper resolvedPrefix would be displayed for the respective nexthop

Signed-off-by: Krishnasamy R <krishnasamyr@nvidia.com>
(cherry picked from commit 95c08e082c063374cbc62dea6529c8f54b0722df)
bgpd/bgp_nexthop.c