aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-08-30 01:22:16 +0700
committerfixeria <vyanitskiy@sysmocom.de>2020-09-03 10:57:44 +0000
commit94972dc877dff4c970b0828ec9230119ee262344 (patch)
tree910561824d8c28276044fd470369742a53daefec
parentb26dd1ebf6ad591e43448deaa7dfd82e4e34a668 (diff)
vty: add a command to clear hopping ARFCN list
-rw-r--r--src/osmo-bsc/bsc_vty.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/osmo-bsc/bsc_vty.c b/src/osmo-bsc/bsc_vty.c
index ef10c4955..e588ba2e4 100644
--- a/src/osmo-bsc/bsc_vty.c
+++ b/src/osmo-bsc/bsc_vty.c
@@ -4669,6 +4669,19 @@ DEFUN(cfg_ts_arfcn_del,
return CMD_SUCCESS;
}
+DEFUN(cfg_ts_arfcn_del_all,
+ cfg_ts_arfcn_del_all_cmd,
+ "hopping arfcn del-all",
+ HOPPING_STR "Configure hopping ARFCN list\n"
+ "Delete all previously configured entries\n")
+{
+ struct gsm_bts_trx_ts *ts = vty->index;
+
+ bitvec_zero(&ts->hopping.arfcns);
+
+ return CMD_SUCCESS;
+}
+
DEFUN(cfg_ts_e1_subslot,
cfg_ts_e1_subslot_cmd,
"e1 line E1_LINE timeslot <1-31> sub-slot (0|1|2|3|full)",
@@ -6563,6 +6576,7 @@ int bsc_vty_init(struct gsm_network *network)
install_element(TS_NODE, &cfg_ts_maio_cmd);
install_element(TS_NODE, &cfg_ts_arfcn_add_cmd);
install_element(TS_NODE, &cfg_ts_arfcn_del_cmd);
+ install_element(TS_NODE, &cfg_ts_arfcn_del_all_cmd);
install_element(TS_NODE, &cfg_ts_e1_subslot_cmd);
install_element(ENABLE_NODE, &drop_bts_cmd);