diff options
author | Max <msuraev@sysmocom.de> | 2023-02-18 21:01:01 +0300 |
---|---|---|
committer | msuraev <msuraev@sysmocom.de> | 2023-02-21 08:49:13 +0000 |
commit | 0fb9853582df5cf7134aa6fde5d4e9b1aa43f008 (patch) | |
tree | 839642ed58d3e60aa67539fd59cc868ab6a73f0f | |
parent | 65957cf8771c4aa321b51ea4a7253d0a20b6b17e (diff) |
mobile: add vty statsd support
Change-Id: I7905b44478dcb9bcf0a1a68fde95f470c07edca3
-rw-r--r-- | src/host/layer23/src/common/vty.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/host/layer23/src/common/vty.c b/src/host/layer23/src/common/vty.c index 48d07b35..396d4cca 100644 --- a/src/host/layer23/src/common/vty.c +++ b/src/host/layer23/src/common/vty.c @@ -44,6 +44,7 @@ #include <osmocom/bb/mobile/gsm480_ss.h> #include <osmocom/bb/mobile/gsm411_sms.h> #include <osmocom/vty/telnet_interface.h> +#include <osmocom/vty/stats.h> #include <osmocom/vty/misc.h> bool l23_vty_reading = false; @@ -536,6 +537,9 @@ int l23_vty_init(int (*config_write_ms_node_cb)(struct vty *), osmo_signal_cbfn if (app_supp_opt & L23_OPT_TAP) l23_vty_init_gsmtap(); + if (app_supp_opt & L23_OPT_VTY) + osmo_stats_vty_add_cmds(); + install_node(&ms_node, config_write_ms_node_cb); install_element(MS_NODE, &cfg_ms_layer2_cmd); install_element(MS_NODE, &cfg_ms_shutdown_cmd); |