aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2022-09-30 17:44:44 +0200
committerpespin <pespin@sysmocom.de>2022-10-07 15:44:37 +0000
commit1fdb7b6c6056d5e3f4b9cb584a1f5ec83c45bf5b (patch)
tree6039183d06c5320afee40fa94b4c0cd5b47b5dd5
parent3fb5a3be368c2805ba2db0b7a0e759bbcce70304 (diff)
vty: 'hopping arfcn add': succeed if adding arfcn already in set2022q2
There's no need to fail, simply make it a noop in that case, everything's fine and everybody is happy (specially when using CTRL command "apply-config-file" to load a .cfg file containing modifications. Related: SYS#6138 (cherry picked from Change-Id Ia4e70d20d48a28c46a21dd10358577e5c798744c) Change-Id: I1f90f76653a8c4f76d1200ba370dc8fe2a568949
-rw-r--r--src/osmo-bsc/bts_trx_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bsc/bts_trx_vty.c b/src/osmo-bsc/bts_trx_vty.c
index 9cf128e25..920df16fd 100644
--- a/src/osmo-bsc/bts_trx_vty.c
+++ b/src/osmo-bsc/bts_trx_vty.c
@@ -401,7 +401,7 @@ DEFUN_USRATTR(cfg_ts_arfcn_add,
if (bitvec_get_bit_pos(&ts->hopping.arfcns, arfcn) == ONE) {
vty_out(vty, "%% ARFCN %" PRIu16 " is already set%s", arfcn, VTY_NEWLINE);
- return CMD_WARNING;
+ return CMD_SUCCESS;
}
bitvec_set_bit_pos(&ts->hopping.arfcns, arfcn, 1);