mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-26 12:23:02 +00:00
isisd: adjust the format of display command
Before: ``` anlan# show isis neighbor Area xx: System Id Interface L State Holdtime SNPA 0023.0000.0000 enp1s0 2 Down Expiring2c53.4a30.0820 ``` After: ``` anlan# show isis neighbor Area xx: System Id Interface L State Holdtime SNPA 0023.0000.0000 enp1s0 2 Down Expiring 2c53.4a30.0820 ``` The `-` display format caused by no hello packet in `isis_adj_print_vty()` is same as that of above "Expiring". Signed-off-by: anlan_cs <anlan_cs@tom.com>
This commit is contained in:
parent
53820a5753
commit
fa4ad1f347
@ -726,13 +726,13 @@ void isis_adj_print_vty(struct isis_adjacency *adj, struct vty *vty,
|
|||||||
now = time(NULL);
|
now = time(NULL);
|
||||||
if (adj->last_upd) {
|
if (adj->last_upd) {
|
||||||
if (adj->last_upd + adj->hold_time < now)
|
if (adj->last_upd + adj->hold_time < now)
|
||||||
vty_out(vty, " Expiring");
|
vty_out(vty, " Expiring ");
|
||||||
else
|
else
|
||||||
vty_out(vty, " %-9llu",
|
vty_out(vty, " %-9llu",
|
||||||
(unsigned long long)adj->last_upd
|
(unsigned long long)adj->last_upd
|
||||||
+ adj->hold_time - now);
|
+ adj->hold_time - now);
|
||||||
} else
|
} else
|
||||||
vty_out(vty, "- ");
|
vty_out(vty, " - ");
|
||||||
vty_out(vty, "%-10pSY", adj->snpa);
|
vty_out(vty, "%-10pSY", adj->snpa);
|
||||||
vty_out(vty, "\n");
|
vty_out(vty, "\n");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user