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


Change subject: VTY: cosmetic: define and use CHAN_ALLOC_{CMD,DESC}
......................................................................

VTY: cosmetic: define and use CHAN_ALLOC_{CMD,DESC}

Change-Id: I8e906a9c16247788eec8cd8d99f019b08dc5a8f1
Related: SYS#5460
---
M src/osmo-bsc/bts_vty.c
1 file changed, 13 insertions(+), 8 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/24/28324/1

diff --git a/src/osmo-bsc/bts_vty.c b/src/osmo-bsc/bts_vty.c
index 2ae9d9b..c23c14e 100644
--- a/src/osmo-bsc/bts_vty.c
+++ b/src/osmo-bsc/bts_vty.c
@@ -528,10 +528,15 @@
        return CMD_SUCCESS;
 }

+#define CHAN_ALLOC_CMD "channel allocator"
+#define CHAN_ALLOC_DESC \
+       "Channel Allocator\n" \
+       "Channel Allocator\n"
+
 DEFUN_ATTR(cfg_bts_challoc,
           cfg_bts_challoc_cmd,
-          "channel allocator (ascending|descending)",
-          "Channel Allocator\n" "Channel Allocator\n"
+          CHAN_ALLOC_CMD " (ascending|descending)",
+          CHAN_ALLOC_DESC
           "Allocate Timeslots and Transceivers in ascending order\n"
           "Allocate Timeslots and Transceivers in descending order\n",
           CMD_ATTR_IMMEDIATE)
@@ -548,8 +553,8 @@

 DEFUN_ATTR(cfg_bts_chan_alloc_interf,
           cfg_bts_chan_alloc_interf_cmd,
-          "channel allocator avoid-interference (0|1)",
-          "Channel Allocator\n" "Channel Allocator\n"
+          CHAN_ALLOC_CMD " avoid-interference (0|1)",
+          CHAN_ALLOC_DESC
           "Configure whether reported interference levels from RES IND are 
used in channel allocation\n"
           "Ignore interference levels (default). Always assign lchans in a 
deterministic order.\n"
           "In channel allocation, prefer lchans with less interference.\n",
@@ -567,8 +572,8 @@

 DEFUN_ATTR(cfg_bts_chan_alloc_tch_signalling_policy,
           cfg_bts_chan_alloc_tch_signalling_policy_cmd,
-          "channel allocator tch-signalling-policy 
(never|emergency|voice|always)",
-          "Channel Allocator\n" "Channel Allocator\n"
+          CHAN_ALLOC_CMD " tch-signalling-policy 
(never|emergency|voice|always)",
+          CHAN_ALLOC_DESC
           "Configure when TCH/H or TCH/F channels can be used to serve 
signalling if SDCCHs are exhausted\n"
           "Never allow TCH for signalling purposes\n"
           "Only allow TCH for signalling purposes when establishing an 
emergency call\n"
@@ -592,8 +597,8 @@

 DEFUN_ATTR(cfg_bts_chan_alloc_allow_tch_for_signalling,
           cfg_bts_chan_alloc_allow_tch_for_signalling_cmd,
-          "channel allocator allow-tch-for-signalling (0|1)",
-          "Channel Allocator\n" "Channel Allocator\n"
+          CHAN_ALLOC_CMD " allow-tch-for-signalling (0|1)",
+          CHAN_ALLOC_DESC
           "Configure whether TCH/H or TCH/F channels can be used to serve 
non-call-related signalling if SDCCHs are exhausted\n"
           "Forbid use of TCH for non-call-related signalling purposes\n"
           "Allow use of TCH for non-call-related signalling purposes 
(default)\n",

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

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I8e906a9c16247788eec8cd8d99f019b08dc5a8f1
Gerrit-Change-Number: 28324
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>
Gerrit-MessageType: newchange

Reply via email to