mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 06:50:17 +00:00
Merge pull request #5420 from donaldsharp/zebra_client_summ_spacing
Zebra client summ spacing
This commit is contained in:
commit
ee6e8c1cb0
@ -204,21 +204,21 @@ static void show_vrf_proto_rm(struct vty *vty, struct zebra_vrf *zvrf,
|
||||
int i;
|
||||
|
||||
vty_out(vty, "Protocol : route-map\n");
|
||||
vty_out(vty, "------------------------\n");
|
||||
vty_out(vty, "-------------------------------------\n");
|
||||
|
||||
for (i = 0; i < ZEBRA_ROUTE_MAX; i++) {
|
||||
if (PROTO_RM_NAME(zvrf, af_type, i))
|
||||
vty_out(vty, "%-10s : %-10s\n", zebra_route_string(i),
|
||||
vty_out(vty, "%-24s : %-10s\n", zebra_route_string(i),
|
||||
PROTO_RM_NAME(zvrf, af_type, i));
|
||||
else
|
||||
vty_out(vty, "%-10s : none\n", zebra_route_string(i));
|
||||
vty_out(vty, "%-24s : none\n", zebra_route_string(i));
|
||||
}
|
||||
|
||||
if (PROTO_RM_NAME(zvrf, af_type, i))
|
||||
vty_out(vty, "%-10s : %-10s\n", "any",
|
||||
vty_out(vty, "%-24s : %-10s\n", "any",
|
||||
PROTO_RM_NAME(zvrf, af_type, i));
|
||||
else
|
||||
vty_out(vty, "%-10s : none\n", "any");
|
||||
vty_out(vty, "%-24s : none\n", "any");
|
||||
}
|
||||
|
||||
static void show_vrf_nht_rm(struct vty *vty, struct zebra_vrf *zvrf,
|
||||
@ -227,21 +227,21 @@ static void show_vrf_nht_rm(struct vty *vty, struct zebra_vrf *zvrf,
|
||||
int i;
|
||||
|
||||
vty_out(vty, "Protocol : route-map\n");
|
||||
vty_out(vty, "------------------------\n");
|
||||
vty_out(vty, "-------------------------------------\n");
|
||||
|
||||
for (i = 0; i < ZEBRA_ROUTE_MAX; i++) {
|
||||
if (NHT_RM_NAME(zvrf, af_type, i))
|
||||
vty_out(vty, "%-10s : %-10s\n", zebra_route_string(i),
|
||||
vty_out(vty, "%-24s : %-10s\n", zebra_route_string(i),
|
||||
NHT_RM_NAME(zvrf, af_type, i));
|
||||
else
|
||||
vty_out(vty, "%-10s : none\n", zebra_route_string(i));
|
||||
vty_out(vty, "%-24s : none\n", zebra_route_string(i));
|
||||
}
|
||||
|
||||
if (NHT_RM_NAME(zvrf, af_type, i))
|
||||
vty_out(vty, "%-10s : %-10s\n", "any",
|
||||
vty_out(vty, "%-24s : %-10s\n", "any",
|
||||
NHT_RM_NAME(zvrf, af_type, i));
|
||||
else
|
||||
vty_out(vty, "%-10s : none\n", "any");
|
||||
vty_out(vty, "%-24s : none\n", "any");
|
||||
}
|
||||
|
||||
static int show_proto_rm(struct vty *vty, int af_type, const char *vrf_all,
|
||||
|
@ -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