Fix up vty 'show' commands for E1 line/timeslots
Change-Id: I6af92ae2808713c74afeecaa1f500443fb2b7795
diff --git a/src/e1_input_vty.c b/src/e1_input_vty.c
index c392a3b..af30ed9 100644
--- a/src/e1_input_vty.c
+++ b/src/e1_input_vty.c
@@ -453,7 +453,7 @@
DEFUN(show_e1line,
show_e1line_cmd,
- "show e1_line [line_nr] [stats]",
+ "show e1_line [<0-255>] [stats]",
SHOW_STR "Display information about a E1 line\n"
"E1 Line Number\n" "Include statistics\n")
{
@@ -487,13 +487,13 @@
if (ts->type == E1INP_TS_TYPE_NONE)
return;
vty_out(vty, "E1 Timeslot %2u of Line %u is Type %s%s",
- ts->num, ts->line->num, e1inp_tstype_name(ts->type),
+ ts->num-1, ts->line->num, e1inp_tstype_name(ts->type),
VTY_NEWLINE);
}
DEFUN(show_e1ts,
show_e1ts_cmd,
- "show e1_timeslot [line_nr] [ts_nr]",
+ "show e1_timeslot [<0-255>] [<0-31>]",
SHOW_STR "Display information about a E1 timeslot\n"
"E1 Line Number\n" "E1 Timeslot Number\n")
{