Skip to content

Commit

Permalink
Merge pull request #17409 from krishna-samy/show_nexthop_json_fix
Browse files Browse the repository at this point in the history
bgpd: fix resolvedPrefix in show nexthop json output
  • Loading branch information
ton31337 authored Nov 11, 2024
2 parents 1dcb4bb + 95c08e0 commit 1abe911
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 @@ -1001,7 +1001,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 1abe911

Please sign in to comment.