Added --with-cligen and --with-qdbm configure options; union type check for non-cli (eg xml) input

This commit is contained in:
Olof hagsand 2017-01-12 08:39:12 +01:00
parent 319e7707d8
commit 41680474c7
7 changed files with 195 additions and 67 deletions

View file

@ -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;