Merge branch 'develop'
This commit is contained in:
commit
4902f7cf1d
28 changed files with 1877 additions and 1002 deletions
|
|
@ -98,7 +98,7 @@ backend_terminate(clicon_handle h)
|
|||
close(ss);
|
||||
if ((x = clicon_module_state_get(h)) != NULL)
|
||||
xml_free(x);
|
||||
if ((x = clicon_yang_changelog_get(h)) != NULL)
|
||||
if ((x = clicon_xml_changelog_get(h)) != NULL)
|
||||
xml_free(x);
|
||||
if ((yspec = clicon_dbspec_yang(h)) != NULL)
|
||||
yspec_free(yspec);
|
||||
|
|
@ -509,6 +509,7 @@ main(int argc,
|
|||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
clicon_argv_set(h, argv0, argc, argv);
|
||||
clicon_log_init(__PROGRAM__, debug?LOG_DEBUG:LOG_INFO, logdst);
|
||||
|
||||
/* Defer: Wait to the last minute to print help message */
|
||||
|
|
@ -645,8 +646,8 @@ main(int argc,
|
|||
goto done;
|
||||
|
||||
/* Must be after netconf_module_load, but before startup code */
|
||||
if (clicon_option_bool(h, "CLICON_YANG_CHANGELOG"))
|
||||
if (clixon_yang_changelog_init(h) < 0)
|
||||
if (clicon_option_bool(h, "CLICON_XML_CHANGELOG"))
|
||||
if (clixon_xml_changelog_init(h) < 0)
|
||||
goto done;
|
||||
|
||||
/* Save modules state of the backend (server). Compare with startup XML */
|
||||
|
|
@ -705,6 +706,8 @@ main(int argc,
|
|||
}
|
||||
|
||||
if (status != STARTUP_OK){
|
||||
if (cbuf_len(cbret))
|
||||
clicon_log(LOG_NOTICE, "%s: %u %s", __PROGRAM__, getpid(), cbuf_get(cbret));
|
||||
if (startup_failsafe(h) < 0){
|
||||
goto done;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue