aboutsummaryrefslogtreecommitdiffstats
path: root/src/vty_interface.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-02-17 03:23:42 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-02-17 19:34:28 +0100
commit5a34c7f6f8eea530f5316513ad4410d7def6a24e (patch)
tree646f29756729cce8c8e7b1e2c32325619e7b051c /src/vty_interface.c
parent6c0b2e570c56b79ccb4e0905e3d2288fc55443e2 (diff)
mtp: Rename link_no to nr, add a name like for the other commands
Diffstat (limited to 'src/vty_interface.c')
-rw-r--r--src/vty_interface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vty_interface.c b/src/vty_interface.c
index 06df291..7bee8f7 100644
--- a/src/vty_interface.c
+++ b/src/vty_interface.c
@@ -332,7 +332,7 @@ static void dump_stats(struct vty *vty, struct mtp_link_set *set)
vty_out_rate_ctr_group(vty, " ", set->ctrg);
llist_for_each_entry(link, &set->links, entry) {
- vty_out(vty, " Link %d%s", link->link_no, VTY_NEWLINE);
+ vty_out(vty, " Link %d%s", link->nr, VTY_NEWLINE);
vty_out_rate_ctr_group(vty, " ", link->ctrg);
}
}
@@ -367,10 +367,10 @@ static void dump_state(struct vty *vty, struct mtp_link_set *set)
llist_for_each_entry(link, &set->links, entry) {
if (link->blocked)
vty_out(vty, " Link %d is blocked.%s",
- link->link_no, VTY_NEWLINE);
+ link->nr, VTY_NEWLINE);
else
vty_out(vty, " Link %d is %s.%s",
- link->link_no,
+ link->nr,
link->available == 0 ? "not available" : "available",
VTY_NEWLINE);
}
@@ -435,7 +435,7 @@ DEFUN(show_slc, show_slc_cmd,
for (i = 0; i < ARRAY_SIZE(set->slc); ++i) {
if (set->slc[i])
vty_out(vty, " SLC[%.2d] is on link %d.%s",
- i, set->slc[i]->link_no, VTY_NEWLINE);
+ i, set->slc[i]->nr, VTY_NEWLINE);
else
vty_out(vty, " SLC[%d] is down.%s",
i, VTY_NEWLINE);