bsc: vty: Use enum value in neighbor-list check

Change-Id: I7c0b42bfed749f18b8ab2331475f3da35b02f456
This commit is contained in:
Pau Espin 2018-11-15 12:56:36 +01:00
parent e8602080ed
commit f1e31ca882
1 changed files with 1 additions and 1 deletions

View File

@ -3112,7 +3112,7 @@ DEFUN(cfg_bts_neigh, cfg_bts_neigh_cmd,
struct bitvec *bv = &bts->si_common.neigh_list;
uint16_t arfcn = atoi(argv[1]);
if (!bts->neigh_list_manual_mode) {
if (bts->neigh_list_manual_mode == NL_MODE_AUTOMATIC) {
vty_out(vty, "%% Cannot configure neighbor list in "
"automatic mode%s", VTY_NEWLINE);
return CMD_WARNING;