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/.
neels gerrit-no-reply at lists.osmocom.orgneels has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/18347 )
Change subject: add osmo-bsc -X: dump VTY ref XML to stdout
......................................................................
add osmo-bsc -X: dump VTY ref XML to stdout
Depends: Ic74bbdb6dc5ea05f03c791cc70184861e39cd492 (libosmocore)
Change-Id: I316efedb2c1652791434ecf14a1e261367cd2fb7
---
M src/osmo-bsc/osmo_bsc_main.c
1 file changed, 12 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/47/18347/1
diff --git a/src/osmo-bsc/osmo_bsc_main.c b/src/osmo-bsc/osmo_bsc_main.c
index ad5a3a9..b2af904 100644
--- a/src/osmo-bsc/osmo_bsc_main.c
+++ b/src/osmo-bsc/osmo_bsc_main.c
@@ -84,6 +84,7 @@
static const char *config_file = "osmo-bsc.cfg";
static const char *rf_ctrl = NULL;
static int daemonize = 0;
+static bool vty_ref_xml = false;
static LLIST_HEAD(access_lists);
struct llist_head *bsc_access_lists(void)
@@ -110,6 +111,7 @@
printf(" -e --log-level number Set a global loglevel.\n");
printf(" -r --rf-ctl NAME A unix domain socket to listen for cmds.\n");
printf(" -t --testmode A special mode to provoke failures at the MSC.\n");
+ printf(" -X --vty-ref-xml Generate the VTY reference xml output and exit.\n");
}
static void handle_options(int argc, char **argv)
@@ -128,10 +130,11 @@
{"log-level", 1, 0, 'e'},
{"rf-ctl", 1, 0, 'r'},
{"testmode", 0, 0, 't'},
+ {"vty-ref-xml", 0, 0, 'X'},
{0, 0, 0, 0}
};
- c = getopt_long(argc, argv, "hd:DsTVc:e:r:t",
+ c = getopt_long(argc, argv, "hd:DsTVc:e:r:tX",
long_options, &option_index);
if (c == -1)
break;
@@ -166,6 +169,9 @@
case 'r':
rf_ctrl = optarg;
break;
+ case 'X':
+ vty_ref_xml = true;
+ break;
default:
/* ignore */
break;
@@ -855,6 +861,11 @@
/* parse options */
handle_options(argc, argv);
+ if (vty_ref_xml) {
+ vty_dump_xml_ref(stdout);
+ exit(0);
+ }
+
/* seed the PRNG */
srand(time(NULL));
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/18347
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I316efedb2c1652791434ecf14a1e261367cd2fb7
Gerrit-Change-Number: 18347
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200518/86e7ed34/attachment.htm>