1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

OSPF: Fix formatting of 'show ospf neighbors'

The formatting was broken when too short router-id was used.
This commit is contained in:
Ondrej Zajicek (work)
2019-07-23 17:02:41 +02:00
parent 15b0a92294
commit 048c2f0e8c
2 changed files with 2 additions and 2 deletions

View File

@@ -857,7 +857,7 @@ ospf_sh_neigh_info(struct ospf_neighbor *n)
pos = "Other";
}
cli_msg(-1013, "%-1R\t%3u\t%s/%s\t%7t\t%-10s %-1I",
cli_msg(-1013, "%-12R\t%3u\t%s/%s\t%6t\t%-10s %I",
n->rid, n->priority, ospf_ns_names[n->state], pos,
tm_remains(n->inactim), ifa->ifname, n->ip);
}