Change in osmo-bts[master]: vty: add macro for 'bts <0-0> trx <0-0> ts <0-7> lchan <0-1>'

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/.

fixeria gerrit-no-reply at lists.osmocom.org
Wed Jan 20 21:35:51 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/22345 )


Change subject: vty: add macro for 'bts <0-0> trx <0-0> ts <0-7> lchan <0-1>'
......................................................................

vty: add macro for 'bts <0-0> trx <0-0> ts <0-7> lchan <0-1>'

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



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/45/22345/1

diff --git a/src/common/vty.c b/src/common/vty.c
index a0ebfae..09c0a98 100644
--- a/src/common/vty.c
+++ b/src/common/vty.c
@@ -1792,6 +1792,8 @@
 	return &ts->lchan[lchan_nr];
 }
 
+#define BTS_T_T_L_CMD \
+	"bts <0-0> trx <0-0> ts <0-7> lchan <0-1>"
 #define BTS_T_T_L_STR			\
 	"BTS related commands\n"	\
 	"BTS number\n"			\
@@ -1955,7 +1957,7 @@
 
 DEFUN(bts_t_t_l_jitter_buf,
 	bts_t_t_l_jitter_buf_cmd,
-	"bts <0-0> trx <0-0> ts <0-7> lchan <0-1> rtp jitter-buffer <0-10000>",
+	BTS_T_T_L_CMD " rtp jitter-buffer <0-10000>",
 	BTS_T_T_L_STR "RTP settings\n"
 	"Jitter buffer\n" "Size of jitter buffer in (ms)\n")
 {
@@ -1988,7 +1990,7 @@
 
 DEFUN(bts_t_t_l_loopback,
 	bts_t_t_l_loopback_cmd,
-	"bts <0-0> trx <0-0> ts <0-7> lchan <0-1> loopback",
+	BTS_T_T_L_CMD " loopback",
 	BTS_T_T_L_STR "Set loopback\n")
 {
 	struct gsm_network *net = gsmnet_from_vty(vty);
@@ -2006,7 +2008,7 @@
 
 DEFUN(no_bts_t_t_l_loopback,
 	no_bts_t_t_l_loopback_cmd,
-	"no bts <0-0> trx <0-0> ts <0-7> lchan <0-1> loopback",
+	"no " BTS_T_T_L_CMD " loopback",
 	NO_STR BTS_T_T_L_STR "Set loopback\n")
 {
 	struct gsm_network *net = gsmnet_from_vty(vty);

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: If8e1ee87366a0d301e21161f2d9ddde8383cb744
Gerrit-Change-Number: 22345
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210120/39e10718/attachment.htm>


More information about the gerrit-log mailing list