Added --with-cligen and --with-qdbm configure options; union type check for non-cli (eg xml) input
This commit is contained in:
parent
319e7707d8
commit
41680474c7
7 changed files with 195 additions and 67 deletions
|
|
@ -288,7 +288,7 @@ xml_yang_validate(cxobj *xt,
|
|||
{
|
||||
int retval = -1;
|
||||
cg_var *cv = NULL;
|
||||
char *reason;
|
||||
char *reason = NULL;
|
||||
yang_stmt *yc;
|
||||
int i;
|
||||
yang_stmt *ys;
|
||||
|
|
@ -318,6 +318,9 @@ xml_yang_validate(cxobj *xt,
|
|||
clicon_err(OE_UNIX, errno, "cv_dup");
|
||||
goto done;
|
||||
}
|
||||
/* In the union case, value is parsed as generic REST type,
|
||||
* needs to be reparsed when concrete type is selected
|
||||
*/
|
||||
if (cv_parse(xml_body(xt), cv) <0){
|
||||
clicon_err(OE_UNIX, errno, "cv_parse");
|
||||
goto done;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue