From 6c3771e6042fdd81288e58523de88c09937ee180 Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Tue, 12 Apr 2022 16:51:01 +0200 Subject: [PATCH] Fixed: Removed warning at startup: `No YANG spec for module-set` --- CHANGELOG.md | 1 + lib/src/clixon_datastore_read.c | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb9e0f56..85528d81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -86,6 +86,7 @@ Users may have to change how they access the system ### 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: [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) diff --git a/lib/src/clixon_datastore_read.c b/lib/src/clixon_datastore_read.c index 9371a4ed..506b6dfa 100644 --- a/lib/src/clixon_datastore_read.c +++ b/lib/src/clixon_datastore_read.c @@ -299,9 +299,11 @@ text_read_modstate(clicon_handle h, rfc7895++; if (xmodfile && xmodsystem && msdiff){ 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("", - YB_MODULE, yspec, &msdiff->md_diff, NULL) < 0) + YB_NONE, yspec, &msdiff->md_diff, NULL) < 0) goto done; if (xml_rootchild(msdiff->md_diff, 0, &msdiff->md_diff) < 0) goto done;