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:
Olof hagsand 2020-09-27 17:14:28 +02:00
parent da54dae396
commit 9984cfa1c8
15 changed files with 344 additions and 39 deletions

View file

@ -260,7 +260,7 @@ parse_configfile(clicon_handle h,
goto done;
}
if (xml_default_recurse(xc) < 0)
if (xml_default_recurse(xc, 0) < 0)
goto done;
if ((ret = xml_yang_validate_add(h, xc, &xerr)) < 0)
goto done;