summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-05-12 02:14:33 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-01-23 13:56:01 +0100
commit6ba21c1f5ce168df95e33d7a8c375a28ec5c1c0b (patch)
treec5e5c28d6c92e5a1e1366297a2a50c933a504695
parent1971c04283c2e99066b43c346e1598ccd9891e72 (diff)
move to libmsc: osmo_stats_vty_add_cmds() -- todo MSCSPLIT
-rw-r--r--openbsc/src/libbsc/bsc_vty.c1
-rw-r--r--openbsc/src/libcommon-cs/common_cs_vty.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/libbsc/bsc_vty.c b/openbsc/src/libbsc/bsc_vty.c
index 2bbe3822c..8c8e2422f 100644
--- a/openbsc/src/libbsc/bsc_vty.c
+++ b/openbsc/src/libbsc/bsc_vty.c
@@ -3865,7 +3865,6 @@ int bsc_vty_init(const struct log_info *cat, struct gsm_network *network)
install_element_ve(&show_paging_group_cmd);
logging_vty_add_cmds(cat);
- osmo_stats_vty_add_cmds();
install_element(GSMNET_NODE, &cfg_net_neci_cmd);
install_element(GSMNET_NODE, &cfg_net_handover_cmd);
diff --git a/openbsc/src/libcommon-cs/common_cs_vty.c b/openbsc/src/libcommon-cs/common_cs_vty.c
index 7f8b49581..86b367ad1 100644
--- a/openbsc/src/libcommon-cs/common_cs_vty.c
+++ b/openbsc/src/libcommon-cs/common_cs_vty.c
@@ -278,6 +278,8 @@ int common_cs_vty_init(struct gsm_network *network,
OSMO_ASSERT(vty_global_gsm_network == NULL);
vty_global_gsm_network = network;
+ osmo_stats_vty_add_cmds();
+
install_element(CONFIG_NODE, &cfg_net_cmd);
install_node(&net_node, config_write_net);
vty_install_default(GSMNET_NODE);