From aa0a10fca22e685257d50cab38bb2496054f84ac Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 15 Oct 2018 15:08:37 +0200 Subject: [PATCH] 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 --- bgpd/bgp_route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.39.5