RBS2000: Ensure the is-connection-list command is only used on RBS2000

... and not on other BTS models.

Change-Id: I8882ca9a9ab974b0bbdcbd5c3bab0eadf4bc0927
This commit is contained in:
Harald Welte 2016-11-11 19:44:10 +01:00
parent c1efa67c13
commit fe7be8ddd0
1 changed files with 6 additions and 0 deletions

View File

@ -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;