-q: print and quit after upgrade: even if sort/bind errors, print the XML
This commit is contained in:
parent
df095daa50
commit
fe8724723d
3 changed files with 7 additions and 6 deletions
|
|
@ -227,12 +227,10 @@ startup_common(clicon_handle h,
|
|||
xml_print(stderr, xret);
|
||||
clicon_err(OE_XML, 0, "%s: YANG binding error", __func__);
|
||||
}
|
||||
exit(0);
|
||||
}
|
||||
/* sort yang */
|
||||
if (xml_sort_recurse(xt) < 0) {
|
||||
|
||||
} /* sort yang */
|
||||
else if (xml_sort_recurse(xt) < 0) {
|
||||
clicon_err(OE_XML, EFAULT, "Yang sort error");
|
||||
exit(0);
|
||||
}
|
||||
if (xmldb_dump(h, stdout, xt) < 0)
|
||||
goto done;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue