mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 04:36:45 +00:00
zebra: Adjust column display of show zebra client summ
for openfabric
The openfabric daemon has a longer name than anticipated for `show zebra client summary` adjust to allow it to fit without making columns all blomped. Before: robot# show zebra client summ Name Connect Time Last Read Last Write IPv4 Routes IPv6 Routes -------------------------------------------------------------------------------- static 00:00:06 00:00:06 00:00:06 4/0 0/0 openfabric 00:00:06 00:00:06 00:00:06 0/0 0/0 After: [sharpd@robot frr4]$ vtysh -c "show zebra client summ" Name Connect Time Last Read Last Write IPv4 Routes IPv6 Routes -------------------------------------------------------------------------------- static 00:02:16 00:02:16 00:02:16 4/0 0/0 openfabric 00:02:16 00:02:16 00:02:16 0/0 0/0 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
a5a1e515bb
commit
588a30273d
@ -965,7 +965,7 @@ static void zebra_show_client_brief(struct vty *vty, struct zserv *client)
|
||||
last_write_time = (time_t)atomic_load_explicit(&client->last_write_time,
|
||||
memory_order_relaxed);
|
||||
|
||||
vty_out(vty, "%-8s%12s %12s%12s%8d/%-8d%8d/%-8d\n",
|
||||
vty_out(vty, "%-10s%12s %12s%12s%8d/%-8d%8d/%-8d\n",
|
||||
zebra_route_string(client->proto),
|
||||
zserv_time_buf(&connect_time, cbuf, ZEBRA_TIME_BUF),
|
||||
zserv_time_buf(&last_read_time, rbuf, ZEBRA_TIME_BUF),
|
||||
|
Loading…
Reference in New Issue
Block a user