aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-11-11 19:44:10 +0100
committerHarald Welte <laforge@gnumonks.org>2016-11-11 21:20:49 +0100
commitfe7be8ddd0563ee98ca2ee9879983384d2491306 (patch)
tree04c91efcf8e214d48836a431a69394fbe47b8987 /openbsc/src/libbsc
parentc1efa67c131a005903821a7487bad014b90cbe08 (diff)
RBS2000: Ensure the is-connection-list command is only used on RBS2000
... and not on other BTS models. Change-Id: I8882ca9a9ab974b0bbdcbd5c3bab0eadf4bc0927
Diffstat (limited to 'openbsc/src/libbsc')
-rw-r--r--openbsc/src/libbsc/abis_om2000_vty.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/abis_om2000_vty.c b/openbsc/src/libbsc/abis_om2000_vty.c
index d48ff9562..64d205cee 100644
--- a/openbsc/src/libbsc/abis_om2000_vty.c
+++ b/openbsc/src/libbsc/abis_om2000_vty.c
@@ -348,6 +348,12 @@ DEFUN(cfg_bts_is_conn_list, cfg_bts_is_conn_list_cmd,
uint8_t ci = atoi(argv[3]);
struct is_conn_group *grp, *grp2;
+ if (bts->type != GSM_BTS_TYPE_RBS2000) {
+ vty_out(vty, "%% IS MO only exists in RBS2000%s",
+ VTY_NEWLINE);
+ return CMD_WARNING;
+ }
+
if (!strcmp(argv[0], "add")) {
grp = talloc_zero(bts, struct is_conn_group);
grp->icp1 = icp1;