summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-05-12 02:14:33 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-11-12 16:05:05 +0100
commita12c6aa033c9b85c0405074b3c96f140c7b4ef62 (patch)
tree54705081719136f3388a5e58bcc43c371c490776
parent406d0f75ca86d29b53d8b1ad8992092f0d0343ca (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/libxsc/xsc_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 6e88f2f..dabbffa 100644
--- a/openbsc/src/libbsc/bsc_vty.c
+++ b/openbsc/src/libbsc/bsc_vty.c
@@ -3863,7 +3863,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/libxsc/xsc_vty.c b/openbsc/src/libxsc/xsc_vty.c
index 0b22f09..d77ea67 100644
--- a/openbsc/src/libxsc/xsc_vty.c
+++ b/openbsc/src/libxsc/xsc_vty.c
@@ -278,6 +278,8 @@ int xsc_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);