From: Vincent Bernat Date: Mon, 15 Oct 2018 13:08:37 +0000 (+0200) Subject: bgpd: fix IPv6 next-hop field name for routes in JSON X-Git-Tag: frr-7.1-dev~271^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F3178%2Fhead;p=mirror%2Ffrr.git bgpd: fix IPv6 next-hop field name for routes in JSON This may break existing clients but the original name contains two errors. Signed-off-by: Vincent Bernat --- diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 91f3eaa30d..c15ce7d9aa 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -6851,7 +6851,7 @@ void route_vty_out_tmp(struct vty *vty, struct prefix *p, struct attr *attr, char buf[BUFSIZ]; json_object_string_add( - json_net, "netHopGloabal", + json_net, "nextHopGlobal", inet_ntop(AF_INET6, &attr->mp_nexthop_global, buf, BUFSIZ));