summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_evpn_vty.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c
index 811856bfed..66079cad22 100644
--- a/bgpd/bgp_evpn_vty.c
+++ b/bgpd/bgp_evpn_vty.c
@@ -3217,7 +3217,14 @@ int bgp_evpn_show_all_routes(struct vty *vty, struct bgp *bgp, int type,
evpn_show_all_routes(vty, bgp, type, json, detail, false);
if (use_json)
- vty_json(vty, json);
+ /*
+ * We are using no_pretty here because under extremely high
+ * settings (lots of routes with many different paths) this can
+ * save several minutes of output when FRR is run on older cpu's
+ * or more underperforming routers out there. So for route
+ * scale, we need to use no_pretty json.
+ */
+ vty_json_no_pretty(vty, json);
return CMD_SUCCESS;
}