]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: fix IPv6 next-hop field name for routes in JSON
authorVincent Bernat <vincent@bernat.ch>
Mon, 15 Oct 2018 13:08:37 +0000 (15:08 +0200)
committerVincent Bernat <vincent@bernat.ch>
Mon, 15 Oct 2018 13:08:37 +0000 (15:08 +0200)
This may break existing clients but the original name contains two
errors.

Signed-off-by: Vincent Bernat <vincent@bernat.ch>
bgpd/bgp_route.c

index 91f3eaa30d64ce94fdebc0f71554bd32b3dcbbc1..c15ce7d9aacee18dc969a6e6430b46cd2bc36ca0 100644 (file)
@@ -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));