if (json_paths)
{
- json_object_object_add(json_path, "peer-ip", json_string);
- json_string = json_object_new_string(inet_ntoa(bgp->router_id));
json_object_object_add(json_path, "peer-id", json_string);
+ json_string = json_object_new_string(inet_ntoa(bgp->router_id));
+ json_object_object_add(json_path, "peer-router-id", json_string);
}
else
{
if (json_paths)
{
json_string = json_object_new_string(sockunion2str (&binfo->peer->su, buf, SU_ADDRSTRLEN));
- json_object_object_add(json_path, "peer-ip", json_string);
+ json_object_object_add(json_path, "peer-id", json_string);
if (binfo->peer->hostname)
{
json_string = json_object_new_string(binfo->peer->hostname);
if (json_paths)
{
json_string = json_object_new_string(inet_ntop (AF_INET, &binfo->peer->remote_id, buf1, BUFSIZ));
- json_object_object_add(json_path, "peer-id", json_string);
+ json_object_object_add(json_path, "peer-router-id", json_string);
}
}
json_object_object_add(json_peer, "dynamic-peer", json_boolean_true);
json_string = json_object_new_string(peer->host);
- json_object_object_add(json_peer, "ip", json_string);
+ json_object_object_add(json_peer, "peer-id", json_string);
if (peer->hostname)
{