mtp: Show blocked links as blocked in the vty stat
This commit is contained in:
parent
315ec675ba
commit
4e2e242d70
|
@ -330,10 +330,14 @@ static void dump_state(struct vty *vty, const char *name, struct mtp_link_set *s
|
||||||
VTY_NEWLINE);
|
VTY_NEWLINE);
|
||||||
|
|
||||||
llist_for_each_entry(link, &set->links, entry) {
|
llist_for_each_entry(link, &set->links, entry) {
|
||||||
vty_out(vty, " Link %d is %s.%s",
|
if (link->blocked)
|
||||||
link->link_no,
|
vty_out(vty, " Link %d is blocked.%s",
|
||||||
link->available == 0 ? "not available" : "available",
|
link->link_no, VTY_NEWLINE);
|
||||||
VTY_NEWLINE);
|
else
|
||||||
|
vty_out(vty, " Link %d is %s.%s",
|
||||||
|
link->link_no,
|
||||||
|
link->available == 0 ? "not available" : "available",
|
||||||
|
VTY_NEWLINE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue