[vty_interface.c]: Warn if no BTS could be allocated

This commit is contained in:
Daniel Willmann 2010-01-11 13:43:07 +01:00 committed by Harald Welte
parent 0677061757
commit f15c276382
1 changed files with 4 additions and 1 deletions

View File

@ -1324,8 +1324,11 @@ DEFUN(cfg_bts,
} else
bts = gsm_bts_num(gsmnet, bts_nr);
if (!bts)
if (!bts) {
vty_out(vty, "%% Unable to allocate BTS %u%s",
gsmnet->num_bts, VTY_NEWLINE);
return CMD_WARNING;
}
vty->index = bts;
vty->node = BTS_NODE;