Change in osmo-bts[master]: main: move general options from bts_vty_init()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Sun Nov 1 09:32:02 UTC 2020


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/21010 )


Change subject: main: move general options from bts_vty_init()
......................................................................

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
---
M src/common/main.c
M src/common/vty.c
2 files changed, 6 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/10/21010/1

diff --git a/src/common/main.c b/src/common/main.c
index 2091f22..3c6d42d 100644
--- a/src/common/main.c
+++ b/src/common/main.c
@@ -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>
@@ -275,6 +277,10 @@
 	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();
 
diff --git a/src/common/vty.c b/src/common/vty.c
index 957678a..82fcba2 100644
--- a/src/common/vty.c
+++ b/src/common/vty.c
@@ -1853,10 +1853,6 @@
 	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);

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ib6be66537791d489cb709d4d653c4cb434896f77
Gerrit-Change-Number: 21010
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201101/b4c064d4/attachment.htm>


More information about the gerrit-log mailing list