if (safi == SAFI_MPLS_VPN)
{
json_string = json_object_new_string(inet_ntoa (attr->extra->mp_nexthop_global_in));
- json_object_object_add(json_path, "nexthop", json_string);
+ json_object_object_add(json_path, "nexthop-global", json_string);
}
else
{
json_string = json_object_new_string(inet_ntoa (attr->nexthop));
- json_object_object_add(json_path, "nexthop", json_string);
+ json_object_object_add(json_path, "nexthop-global", json_string);
}
}
else
if (json_paths)
{
json_string = json_object_new_string(inet_ntop (AF_INET6, &attr->extra->mp_nexthop_global, buf, BUFSIZ));
- json_object_object_add(json_path, "nexthop", json_string);
+ json_object_object_add(json_path, "nexthop-global", json_string);
}
else
{
}
if (json_paths)
- json_object_object_add(json_path, "nexthop", json_string);
+ json_object_object_add(json_path, "nexthop-global", json_string);
}
#ifdef HAVE_IPV6
else
{
json_string = json_object_new_string(inet_ntop (AF_INET6, &attr->extra->mp_nexthop_global,
buf, INET6_ADDRSTRLEN));
- json_object_object_add(json_path, "nexthop", json_string);
+ json_object_object_add(json_path, "nexthop-global", json_string);
}
else
{
if (! CHECK_FLAG (binfo->flags, BGP_INFO_VALID))
{
if (json_paths)
- json_object_object_add(json_path, "nexthop-accessible", json_boolean_false);
+ json_object_object_add(json_path, "nexthop-global-accessible", json_boolean_false);
else
vty_out (vty, " (inaccessible)");
}
if (json_paths)
{
json_int = json_object_new_int(binfo->extra->igpmetric);
- json_object_object_add(json_path, "nexthop-igp-cost", json_int);
- json_object_object_add(json_path, "nexthop-accessible", json_boolean_true);
+ json_object_object_add(json_path, "nexthop-global-igp-cost", json_int);
+ json_object_object_add(json_path, "nexthop-global-accessible", json_boolean_true);
}
else
{
/* IGP cost to nexthop is 0 */
else
if (json_paths)
- json_object_object_add(json_path, "nexthop-accessible", json_boolean_true);
+ json_object_object_add(json_path, "nexthop-global-accessible", json_boolean_true);
if (json_paths)
{