|
@@ -8,6 +8,7 @@
|
|
|
#include <faux/file.h>
|
|
|
#include <faux/argv.h>
|
|
|
|
|
|
+#include <libyang/log.h>
|
|
|
#include <sysrepo.h>
|
|
|
#include <sysrepo/xpath.h>
|
|
|
|
|
@@ -67,6 +68,10 @@ int main(int argc, char **argv)
|
|
|
if (cmd_opts->cfg)
|
|
|
pline_opts_parse_file(cmd_opts->cfg, &opts);
|
|
|
|
|
|
+ // Turn off libyang warnings
|
|
|
+ ly_log_level(LY_LLERR);
|
|
|
+ ly_log_options(LY_LOSTORE);
|
|
|
+
|
|
|
// Prepare argv structure for current sysrepo path
|
|
|
if (cmd_opts->current_path) {
|
|
|
cur_path = faux_argv_new();
|
|
@@ -211,12 +216,12 @@ static void help(int status, const char *argv0)
|
|
|
printf("Usage : %s [options] [filename]\n", name);
|
|
|
printf("Load mass of config strings to Sysrepo repository\n");
|
|
|
printf("Options :\n");
|
|
|
- printf("\t-h, --help Print this help.\n");
|
|
|
- printf("\t-v, --verbose Be verbose.\n");
|
|
|
- printf("\t-e, --stop-on-error Stop script execution on error.\n");
|
|
|
- printf("\t-u <name>, --user=<name> NACM user.\n");
|
|
|
- printf("\t-f <path>, --conf=<path> Config file.\n");
|
|
|
- printf("\t-d <ds>, --datastore=<ds> Datastore.\n");
|
|
|
- printf("\t-p <sr-path>, --current-path=<sr-path> Current sysrepo path.\n");
|
|
|
+ printf("\t-h, --help Print this help\n");
|
|
|
+ printf("\t-v, --verbose Be verbose\n");
|
|
|
+ printf("\t-e, --stop-on-error Stop script execution on error\n");
|
|
|
+ printf("\t-u <name>, --user=<name> NACM user name\n");
|
|
|
+ printf("\t-f <path>, --conf=<path> Config file with parsing settings\n");
|
|
|
+ printf("\t-d <ds>, --datastore=<ds> Datastore (Default is 'candidate'\n");
|
|
|
+ printf("\t-p <sr-path>, --current-path=<sr-path> Current sysrepo path\n");
|
|
|
}
|
|
|
}
|