Fixed: [default state data returned with get-config](https://github.com/clicon/clixon/issues/140)
* Generalized default code for both config and state
This commit is contained in:
parent
da54dae396
commit
9984cfa1c8
15 changed files with 344 additions and 39 deletions
|
|
@ -347,7 +347,7 @@ xml_yang_validate_rpc(clicon_handle h,
|
|||
goto done; /* error or validation fail */
|
||||
if ((retval = xml_yang_validate_add(h, xn, xret)) < 1)
|
||||
goto done; /* error or validation fail */
|
||||
if (xml_default_recurse(xn) < 0)
|
||||
if (xml_default_recurse(xn, 0) < 0)
|
||||
goto done;
|
||||
}
|
||||
// ok: /* pass validation */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue