]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Expand v4/v6 route space 9706/head
authorDonald Sharp <sharpd@nvidia.com>
Thu, 30 Sep 2021 17:56:15 +0000 (13:56 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 17 Nov 2021 12:47:28 +0000 (07:47 -0500)
At some scale we eventually run out of room displaying v4/v6 route
totals for `show zebra client summ`:
janelle# show zebra client summ
Name      Connect Time    Last Read  Last Write  IPv4 Routes       IPv6 Routes
--------------------------------------------------------------------------------
bgp           04w0d18h     00:00:19    00:01:2411729127/4052681  2037786/903094

This total over ran the space in just a little over a week of uptime.
Expand to have a bit more room.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/zserv.c

index abb9c5ca5dc2d5e5184795b0d432885b5691338b..f3f69661c44c492453cbf3c456fd4e1d9c26ff30 100644 (file)
@@ -1197,7 +1197,8 @@ static void zebra_show_client_brief(struct vty *vty, struct zserv *client)
                snprintfrr(client_string, sizeof(client_string), "%s",
                           zebra_route_string(client->proto));
 
-       vty_out(vty, "%-10s%12s %12s%12s%8d/%-8d%8d/%-8d\n", client_string,
+       vty_out(vty, "%-10s%12s %12s%12s %10d/%-10d %10d/%-10d\n",
+               client_string,
                zserv_time_buf(&connect_time, cbuf, ZEBRA_TIME_BUF),
                zserv_time_buf(&last_read_time, rbuf, ZEBRA_TIME_BUF),
                zserv_time_buf(&last_write_time, wbuf, ZEBRA_TIME_BUF),
@@ -1291,9 +1292,9 @@ DEFUN (show_zebra_client_summary,
        struct zserv *client;
 
        vty_out(vty,
-               "Name      Connect Time    Last Read  Last Write  IPv4 Routes       IPv6 Routes    \n");
+               "Name      Connect Time    Last Read  Last Write      IPv4 Routes           IPv6 Routes\n");
        vty_out(vty,
-               "--------------------------------------------------------------------------------\n");
+               "------------------------------------------------------------------------------------------\n");
 
        for (ALL_LIST_ELEMENTS_RO(zrouter.client_list, node, client))
                zebra_show_client_brief(vty, client);