diff options
| author | Russ White <russ@riw.us> | 2024-11-12 10:03:45 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-12 10:03:45 -0500 |
| commit | b96421690c4976022a8bac62cf7d1ebe71747d0f (patch) | |
| tree | 0530df356a958fa6876c34387817e7643b4f11b1 | |
| parent | 026f0ddb69ecc1a617fec876c7fd6045f091fe8c (diff) | |
| parent | ffc5f32789adb3a7d710bd452d641070fb710f3d (diff) | |
Merge pull request #17411 from FRRouting/mergify/bp/stable/10.2/pr-17409
bgpd: fix resolvedPrefix in show nexthop json output (backport #17409)
| -rw-r--r-- | bgpd/bgp_nexthop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_nexthop.c b/bgpd/bgp_nexthop.c index 98eb9565bf..ba6d707109 100644 --- a/bgpd/bgp_nexthop.c +++ b/bgpd/bgp_nexthop.c @@ -1003,7 +1003,7 @@ static void bgp_show_nexthop(struct vty *vty, struct bgp *bgp, if (bnc->is_evpn_gwip_nexthop) json_object_boolean_true_add(json_nexthop, "isEvpnGatewayIp"); - json_object_string_addf(json, "resolvedPrefix", "%pFX", + json_object_string_addf(json_nexthop, "resolvedPrefix", "%pFX", &bnc->resolved_prefix); } else { vty_out(vty, " %s valid [IGP metric %d], #paths %d", |
