9
0
Fork 0

mtp: Show blocked links as blocked in the vty stat

This commit is contained in:
Holger Hans Peter Freyther 2011-01-24 15:40:30 +01:00
parent 315ec675ba
commit 4e2e242d70
1 changed files with 8 additions and 4 deletions

View File

@ -330,10 +330,14 @@ static void dump_state(struct vty *vty, const char *name, struct mtp_link_set *s
VTY_NEWLINE);
llist_for_each_entry(link, &set->links, entry) {
vty_out(vty, " Link %d is %s.%s",
link->link_no,
link->available == 0 ? "not available" : "available",
VTY_NEWLINE);
if (link->blocked)
vty_out(vty, " Link %d is blocked.%s",
link->link_no, VTY_NEWLINE);
else
vty_out(vty, " Link %d is %s.%s",
link->link_no,
link->available == 0 ? "not available" : "available",
VTY_NEWLINE);
}
}