diff options
| author | Vincent Bernat <vincent@bernat.ch> | 2018-10-15 15:08:37 +0200 |
|---|---|---|
| committer | Vincent Bernat <vincent@bernat.ch> | 2018-10-15 15:08:37 +0200 |
| commit | aa0a10fca22e685257d50cab38bb2496054f84ac (patch) | |
| tree | 898f5e311b927364279d46a67d53764434def184 | |
| parent | c9e3c7bfb284802c0965cd93b7a43e435bc59464 (diff) | |
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 <vincent@bernat.ch>
| -rw-r--r-- | bgpd/bgp_route.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |
