main: move general options from bts_vty_init()
These are not BTS specific options, so register them in main(). Change-Id: Ib6be66537791d489cb709d4d653c4cb434896f77 Related: SYS#4937, OS#3036
This commit is contained in:
parent
a72a0765a4
commit
fa3e22bc17
|
@ -38,6 +38,8 @@
|
|||
#include <osmocom/core/application.h>
|
||||
#include <osmocom/vty/telnet_interface.h>
|
||||
#include <osmocom/vty/logging.h>
|
||||
#include <osmocom/vty/stats.h>
|
||||
#include <osmocom/vty/misc.h>
|
||||
#include <osmocom/vty/cpu_sched_vty.h>
|
||||
#include <osmocom/core/gsmtap_util.h>
|
||||
#include <osmocom/core/gsmtap.h>
|
||||
|
@ -277,6 +279,10 @@ int bts_main(int argc, char **argv)
|
|||
osmo_cpu_sched_vty_init(tall_bts_ctx);
|
||||
rate_ctr_init(tall_bts_ctx);
|
||||
|
||||
logging_vty_add_cmds();
|
||||
osmo_talloc_vty_add_cmds();
|
||||
osmo_stats_vty_add_cmds();
|
||||
|
||||
bts_vty_init(tall_bts_ctx);
|
||||
e1inp_vty_init();
|
||||
|
||||
|
|
|
@ -1853,10 +1853,6 @@ int bts_vty_init(void *ctx)
|
|||
install_element_ve(&logging_fltr_l1_sapi_cmd);
|
||||
install_element_ve(&no_logging_fltr_l1_sapi_cmd);
|
||||
|
||||
logging_vty_add_cmds();
|
||||
osmo_talloc_vty_add_cmds();
|
||||
osmo_stats_vty_add_cmds();
|
||||
|
||||
install_node(&bts_node, config_write_bts);
|
||||
install_element(CONFIG_NODE, &cfg_bts_cmd);
|
||||
install_element(CONFIG_NODE, &cfg_vty_telnet_port_cmd);
|
||||
|
|
Loading…
Reference in New Issue