Change in libosmo-abis[master]: Fix up vty 'show' commands for E1 line/timeslots

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Thu May 6 16:31:50 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/24133 )

Change subject: Fix up vty 'show' commands for E1 line/timeslots
......................................................................

Fix up vty 'show' commands for E1 line/timeslots

Change-Id: I6af92ae2808713c74afeecaa1f500443fb2b7795
---
M src/e1_input_vty.c
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



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")
 {

-- 
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/24133
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I6af92ae2808713c74afeecaa1f500443fb2b7795
Gerrit-Change-Number: 24133
Gerrit-PatchSet: 5
Gerrit-Owner: keith <keith at rhizomatica.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-CC: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210506/5966dd4c/attachment.htm>


More information about the gerrit-log mailing list