Merge pull request #1553 from donaldsharp/bgp_json_routes

bgpd: Speedup vtysh handling of 'show bgp afi safi json' display
This commit is contained in:
Rafael Zalamena 2017-12-19 14:49:59 -02:00 committed by GitHub
commit e492e668b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8394,7 +8394,7 @@ static int bgp_show_table(struct vty *vty, struct bgp *bgp, safi_t safi,
vty_out(vty, ",\"%s\": ", buf2);
vty_out(vty, "%s",
json_object_to_json_string_ext(json_paths, JSON_C_TO_STRING_PRETTY));
json_object_to_json_string(json_paths));
json_object_free(json_paths);
json_paths = NULL;
first = 0;