Skip to content

Commit

Permalink
Merge pull request #17412 from FRRouting/mergify/bp/stable/10.1/pr-17409
Browse files Browse the repository at this point in the history
bgpd: fix resolvedPrefix in show nexthop json output (backport #17409)
  • Loading branch information
riw777 authored Nov 12, 2024
2 parents 5755329 + 978a3cd commit 549e39a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/bgp_nexthop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 549e39a

Please sign in to comment.