]> git.proxmox.com Git - mirror_frr.git/commitdiff
Merge pull request #1553 from donaldsharp/bgp_json_routes
authorRafael Zalamena <rzalamena@users.noreply.github.com>
Tue, 19 Dec 2017 16:49:59 +0000 (14:49 -0200)
committerGitHub <noreply@github.com>
Tue, 19 Dec 2017 16:49:59 +0000 (14:49 -0200)
bgpd: Speedup vtysh handling of 'show bgp afi safi json' display

1  2 
bgpd/bgp_route.c

index 09759628cbe5d854fde262643256f2f284c68fd2,54a1bcda508bce83d15f083113c6bec15568ea03..88d2044f457f7aca306959aee5bc9175bf1a9cfb
@@@ -8394,9 -8394,8 +8394,9 @@@ static int bgp_show_table(struct vty *v
                                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;
                }
        }