mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-12 22:28:44 +00:00
Better formatting of protocol status.
This commit is contained in:
parent
36032dedc6
commit
caab3bb374
@ -549,7 +549,7 @@ proto_do_show(struct proto *p, int verbose)
|
|||||||
if (p->proto->get_status)
|
if (p->proto->get_status)
|
||||||
p->proto->get_status(p, buf);
|
p->proto->get_status(p, buf);
|
||||||
tm_format_reltime(reltime, p->last_state_change);
|
tm_format_reltime(reltime, p->last_state_change);
|
||||||
cli_msg(-1002, "%-8s %-8s %-8s %-5s %-5s %s",
|
cli_msg(-1002, "%-8s %-8s %-8s %-5s %-5s %s",
|
||||||
p->name,
|
p->name,
|
||||||
p->proto->name,
|
p->proto->name,
|
||||||
p->table->name,
|
p->table->name,
|
||||||
@ -572,7 +572,7 @@ proto_show(struct symbol *s, int verbose)
|
|||||||
cli_msg(9002, "%s is not a protocol", s->name);
|
cli_msg(9002, "%s is not a protocol", s->name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
cli_msg(-2002, "name proto table state since info");
|
cli_msg(-2002, "name proto table state since info");
|
||||||
if (s)
|
if (s)
|
||||||
proto_do_show(((struct proto_config *)s->def)->proto, verbose);
|
proto_do_show(((struct proto_config *)s->def)->proto, verbose);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user