msuraev has submitted this change. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/31298 )

Change subject: mobile: add vty statsd support
......................................................................

mobile: add vty statsd support

Change-Id: I7905b44478dcb9bcf0a1a68fde95f470c07edca3
---
M src/host/layer23/src/common/vty.c
1 file changed, 13 insertions(+), 0 deletions(-)

Approvals:
  fixeria: Looks good to me, but someone else must approve
  pespin: Looks good to me, but someone else must approve
  msuraev: Looks good to me, approved
  Jenkins Builder: Verified




diff --git a/src/host/layer23/src/common/vty.c 
b/src/host/layer23/src/common/vty.c
index 48d07b3..396d4cc 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 @@
        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);

--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/31298
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I7905b44478dcb9bcf0a1a68fde95f470c07edca3
Gerrit-Change-Number: 31298
Gerrit-PatchSet: 3
Gerrit-Owner: msuraev <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: msuraev <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to