Change in osmo-e1-recorder[master]: vty: don't store configurations for timeslots in mode NONE

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
Wed Dec 4 11:04:45 UTC 2019


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1-recorder/+/16462 )


Change subject: vty: don't store configurations for timeslots in mode NONE
......................................................................

vty: don't store configurations for timeslots in mode NONE

This reflects what happens in libosmo-abis during 'show e1'
and makes sure we don't attempt to write for more TS than exist
(e.g. in the T1 case).

Change-Id: Iaeac2d080ae3ddc27901cbc4be5220100e9820a8
---
M src/vty.c
1 file changed, 3 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-e1-recorder refs/changes/62/16462/1

diff --git a/src/vty.c b/src/vty.c
index f0c8287..9dc548b 100644
--- a/src/vty.c
+++ b/src/vty.c
@@ -170,6 +170,9 @@
 		struct e1inp_ts *ts = &line->ts[i];
 		const char *mode_str;
 
+		if (ts->type == E1INP_TS_TYPE_NONE)
+			continue;
+
 		mode_str = get_value_string(e1inp_ts_type_names, ts->type);
 
 		vty_out(vty, " line %u ts %u mode %s%s",

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-e1-recorder/+/16462
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-e1-recorder
Gerrit-Branch: master
Gerrit-Change-Id: Iaeac2d080ae3ddc27901cbc4be5220100e9820a8
Gerrit-Change-Number: 16462
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191204/acdb3730/attachment.htm>


More information about the gerrit-log mailing list