* Fixed again: [xpath function count did not work properly #224](https://github.com/clicon/clixon/issues/224)
* Must statements namespace context were given by yang node, but this is not correct, should be xml
This commit is contained in:
parent
164aa1cb4c
commit
ec4d26febf
1 changed files with 3 additions and 2 deletions
|
|
@ -1211,8 +1211,9 @@ xml_yang_validate_all(clicon_handle h,
|
||||||
if (yang_keyword_get(yc) != Y_MUST)
|
if (yang_keyword_get(yc) != Y_MUST)
|
||||||
continue;
|
continue;
|
||||||
xpath = yang_argument_get(yc); /* "must" has xpath argument */
|
xpath = yang_argument_get(yc); /* "must" has xpath argument */
|
||||||
if (xml_nsctx_yang(yc, &nsc) < 0)
|
/* the context node is the node in the accessible tree for
|
||||||
goto done;
|
* which the "must" statement is defined. */
|
||||||
|
nsc = NULL;
|
||||||
if ((nr = xpath_vec_bool(xt, nsc, "%s", xpath)) < 0)
|
if ((nr = xpath_vec_bool(xt, nsc, "%s", xpath)) < 0)
|
||||||
goto done;
|
goto done;
|
||||||
if (!nr){
|
if (!nr){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue