aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-02-12 17:57:57 +0100
committerdexter <pmaier@sysmocom.de>2018-02-28 15:08:56 +0000
commitb22dcb87cfa99bd4a8f8483b611442363be1b24c (patch)
treec96506fccd5f5d8dcac29ea385a257bc8d641fec /src
parent1231ebe0317e451e6529fc8f586c32279ecb596c (diff)
Align syntax of "handover" + "assignment" command with that of lchan act/deact
We already have other commands that operate on a given bts/trx/ts/ss, let's make sure they have a shared/common syntax for consistency. This also fixes the issue that the handover/assignment commands were active already in VIEW_NODE, while they should only have been in ENABLE_NODE. Change-Id: I1f31e9adf9c75348809ebf9f40f6c69fab248e43
Diffstat (limited to 'src')
-rw-r--r--src/libbsc/bsc_vty.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/libbsc/bsc_vty.c b/src/libbsc/bsc_vty.c
index 5ff9cb258..ae1dd9392 100644
--- a/src/libbsc/bsc_vty.c
+++ b/src/libbsc/bsc_vty.c
@@ -1567,9 +1567,10 @@ static int ho_or_as(struct vty *vty, const char *argv[], int argc)
DEFUN(handover_subscr_conn,
handover_subscr_conn_cmd,
- "handover <0-255> <0-255> <0-7> <0-7> <0-255>",
+ "bts <0-255> trx <0-255> timeslot <0-7> sub-slot <0-7> handover <0-255>",
+ "BTS related commands\n" BTS_NR_STR "Transceiver\n" TRX_NR_STR
+ "TRX Timeslot\n" TS_NR_STR "Sub-Slot Number\n" LCHAN_NR_STR
MANUAL_HANDOVER_STR
- "Current " BTS_TRX_TS_LCHAN_STR
"New " BTS_NR_STR)
{
return ho_or_as(vty, argv, argc);
@@ -1577,9 +1578,10 @@ DEFUN(handover_subscr_conn,
DEFUN(assignment_subscr_conn,
assignment_subscr_conn_cmd,
- "assignment <0-255> <0-255> <0-7> <0-7>",
- MANUAL_ASSIGNMENT_STR
- "Current " BTS_TRX_TS_LCHAN_STR)
+ "bts <0-255> trx <0-255> timeslot <0-7> sub-slot <0-7> assignment",
+ "BTS related commands\n" BTS_NR_STR "Transceiver\n" TRX_NR_STR
+ "TRX Timeslot\n" TS_NR_STR "Sub-Slot Number\n" LCHAN_NR_STR
+ MANUAL_ASSIGNMENT_STR)
{
return ho_or_as(vty, argv, argc);
}
@@ -4700,9 +4702,7 @@ int bsc_vty_init(struct gsm_network *network)
install_element_ve(&show_lchan_summary_cmd);
install_element_ve(&show_subscr_conn_cmd);
- install_element_ve(&handover_subscr_conn_cmd);
install_element_ve(&handover_any_cmd);
- install_element_ve(&assignment_subscr_conn_cmd);
install_element_ve(&assignment_any_cmd);
install_element_ve(&show_paging_cmd);
@@ -4867,6 +4867,8 @@ int bsc_vty_init(struct gsm_network *network)
install_element(ENABLE_NODE, &pdch_act_cmd);
install_element(ENABLE_NODE, &lchan_act_cmd);
install_element(ENABLE_NODE, &lchan_mdcx_cmd);
+ install_element(ENABLE_NODE, &handover_subscr_conn_cmd);
+ install_element(ENABLE_NODE, &assignment_subscr_conn_cmd);
install_element(ENABLE_NODE, &smscb_cmd_cmd);
install_element(ENABLE_NODE, &ctrl_trap_cmd);