pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-bsc/+/29551 )

Change subject: vty: 'hopping arfcn add': succeed if adding arfcn already in set
......................................................................

vty: 'hopping arfcn add': succeed if adding arfcn already in set

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
Change-Id: Ia4e70d20d48a28c46a21dd10358577e5c798744c
---
M src/osmo-bsc/bts_trx_vty.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, approved
  laforge: Looks good to me, but someone else must approve
  osmith: Looks good to me, but someone else must approve

Objections:
  fixeria: I would prefer this is not merged as is



diff --git a/src/osmo-bsc/bts_trx_vty.c b/src/osmo-bsc/bts_trx_vty.c
index 61c52e7..118feca 100644
--- a/src/osmo-bsc/bts_trx_vty.c
+++ b/src/osmo-bsc/bts_trx_vty.c
@@ -402,7 +402,7 @@

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

--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/29551
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: Ia4e70d20d48a28c46a21dd10358577e5c798744c
Gerrit-Change-Number: 29551
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: neels <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to