Fixed: Removed warning at startup: No YANG spec for module-set

This commit is contained in:
Olof hagsand 2022-04-12 16:51:01 +02:00
parent ecac027d18
commit 6c3771e604
2 changed files with 5 additions and 2 deletions

View file

@ -86,6 +86,7 @@ Users may have to change how they access the system
### Corrected Bugs ### Corrected Bugs
* Fixed: Removed warning at startup: `No YANG spec for module-set`
* Fixed: HTTP/1 multiple write requests in single session appended data between writes, eg PUT+PUT. * Fixed: HTTP/1 multiple write requests in single session appended data between writes, eg PUT+PUT.
* Fixed: [Broken pipe error seen in client (cli) when backend restarts and CLICON_SOCK is recreated](https://github.com/clicon/clixon/issues/312) * Fixed: [Broken pipe error seen in client (cli) when backend restarts and CLICON_SOCK is recreated](https://github.com/clicon/clixon/issues/312)
* Fixed: [Xpath API do not support filter data by wildcard](https://github.com/clicon/clixon/issues/313) * Fixed: [Xpath API do not support filter data by wildcard](https://github.com/clicon/clixon/issues/313)

View file

@ -299,9 +299,11 @@ text_read_modstate(clicon_handle h,
rfc7895++; rfc7895++;
if (xmodfile && xmodsystem && msdiff){ if (xmodfile && xmodsystem && msdiff){
msdiff->md_status = 1; /* There is module state in the file */ msdiff->md_status = 1; /* There is module state in the file */
/* Create modstate tree for this file */ /* Create modstate tree for this file
* Note, module-set is not a top-level symbol, so cannot bind using module-set
*/
if (clixon_xml_parse_string("<module-set xmlns=\"urn:ietf:params:xml:ns:yang:ietf-yang-library\"/>", if (clixon_xml_parse_string("<module-set xmlns=\"urn:ietf:params:xml:ns:yang:ietf-yang-library\"/>",
YB_MODULE, yspec, &msdiff->md_diff, NULL) < 0) YB_NONE, yspec, &msdiff->md_diff, NULL) < 0)
goto done; goto done;
if (xml_rootchild(msdiff->md_diff, 0, &msdiff->md_diff) < 0) if (xml_rootchild(msdiff->md_diff, 0, &msdiff->md_diff) < 0)
goto done; goto done;