Change in osmo-bts[master]: vty: make commands related to the loopback mode hidden

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 Jan 21 09:41:10 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/22347 )

Change subject: vty: make commands related to the loopback mode hidden
......................................................................

vty: make commands related to the loopback mode hidden

The loopback mode was added for testing, and may be dangerous if
enabled in production.  Let's make it appear only in expert mode.

Change-Id: I3f68acd7f2b0231f78516f59fb5e8ef56fb69dbf
---
M src/common/vty.c
1 file changed, 10 insertions(+), 8 deletions(-)

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



diff --git a/src/common/vty.c b/src/common/vty.c
index 846ba4a..07244e7 100644
--- a/src/common/vty.c
+++ b/src/common/vty.c
@@ -1988,10 +1988,11 @@
 	return CMD_SUCCESS;
 }
 
-DEFUN(bts_t_t_l_loopback,
-	bts_t_t_l_loopback_cmd,
-	BTS_T_T_L_CMD " loopback",
-	BTS_T_T_L_STR "Set loopback\n")
+DEFUN_ATTR(bts_t_t_l_loopback,
+	   bts_t_t_l_loopback_cmd,
+	   BTS_T_T_L_CMD " loopback",
+	   BTS_T_T_L_STR "Set loopback\n",
+	   CMD_ATTR_HIDDEN)
 {
 	struct gsm_network *net = gsmnet_from_vty(vty);
 	struct gsm_lchan *lchan;
@@ -2006,10 +2007,11 @@
 	return CMD_SUCCESS;
 }
 
-DEFUN(no_bts_t_t_l_loopback,
-	no_bts_t_t_l_loopback_cmd,
-	"no " BTS_T_T_L_CMD " loopback",
-	NO_STR BTS_T_T_L_STR "Set loopback\n")
+DEFUN_ATTR(no_bts_t_t_l_loopback,
+	   no_bts_t_t_l_loopback_cmd,
+	   "no " BTS_T_T_L_CMD " loopback",
+	   NO_STR BTS_T_T_L_STR "Set loopback\n",
+	   CMD_ATTR_HIDDEN)
 {
 	struct gsm_network *net = gsmnet_from_vty(vty);
 	struct gsm_lchan *lchan;

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I3f68acd7f2b0231f78516f59fb5e8ef56fb69dbf
Gerrit-Change-Number: 22347
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210121/b86bf6a7/attachment.htm>


More information about the gerrit-log mailing list