[PATCH 2/3] vty: Use same prompt string format like in libosmocore

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/OpenBSC@lists.osmocom.org/.

Jacob Erlbeck jerlbeck at sysmocom.de
Mon Nov 11 13:13:13 UTC 2013


Ensures a single blank after the '#'. Use (config-foo) instead (foo)
for config nodes.
---
 src/e1_input_vty.c |    2 +-
 src/ipa_proxy.c    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/e1_input_vty.c b/src/e1_input_vty.c
index faaebd8..d99c853 100644
--- a/src/e1_input_vty.c
+++ b/src/e1_input_vty.c
@@ -268,7 +268,7 @@ DEFUN(show_e1ts,
 
 struct cmd_node e1inp_node = {
 	L_E1INP_NODE,
-	"%s(e1_input)#",
+	"%s(config-e1_input)# ",
 	1,
 };
 
diff --git a/src/ipa_proxy.c b/src/ipa_proxy.c
index a394b8c..30840ef 100644
--- a/src/ipa_proxy.c
+++ b/src/ipa_proxy.c
@@ -612,7 +612,7 @@ DEFUN(ipa_instance_cfg_add, ipa_instance_cfg_add_cmd,
 
 struct cmd_node ipa_node = {
 	L_IPA_NODE,
-	"%s(ipa)#",
+	"%s(config-ipa)# ",
 	1,
 };
 
-- 
1.7.9.5





More information about the OpenBSC mailing list