aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc/bsc_ctrl_commands.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-01-10 09:23:33 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-03-06 23:02:43 +0100
commitce8e0b38ebe36b4ae339e5497dc562f50e01410e (patch)
tree2822a28a190ba17c80589cc61c95db208905650c /openbsc/src/libbsc/bsc_ctrl_commands.c
parent9887155df454b87e58e06fe55a6f259db5c451ce (diff)
nitb: Add ctrl command to set the BTS site id
Diffstat (limited to 'openbsc/src/libbsc/bsc_ctrl_commands.c')
-rw-r--r--openbsc/src/libbsc/bsc_ctrl_commands.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/bsc_ctrl_commands.c b/openbsc/src/libbsc/bsc_ctrl_commands.c
index cb2b98365..33244a30b 100644
--- a/openbsc/src/libbsc/bsc_ctrl_commands.c
+++ b/openbsc/src/libbsc/bsc_ctrl_commands.c
@@ -200,6 +200,8 @@ CTRL_CMD_DEFINE(net_mcc_mnc_apply, "mcc-mnc-apply");
/* BTS related commands below here */
CTRL_CMD_VTY_STRING(bts_description, "description", struct gsm_bts, description);
+CTRL_CMD_DEFINE_RANGE(bts_unit_id, "unit-id", struct gsm_bts,
+ ip_access.site_id, 0, 65534);
int bsc_base_ctrl_cmds_install(void)
{
@@ -225,6 +227,7 @@ int bsc_base_ctrl_cmds_install(void)
rc |= ctrl_cmd_install(CTRL_NODE_ROOT, &cmd_net_timer_t3141);
rc |= ctrl_cmd_install(CTRL_NODE_BTS, &cmd_bts_description);
+ rc |= ctrl_cmd_install(CTRL_NODE_BTS, &cmd_bts_unit_id);
return rc;
}