* 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)
|
||||
continue;
|
||||
xpath = yang_argument_get(yc); /* "must" has xpath argument */
|
||||
if (xml_nsctx_yang(yc, &nsc) < 0)
|
||||
goto done;
|
||||
/* the context node is the node in the accessible tree for
|
||||
* which the "must" statement is defined. */
|
||||
nsc = NULL;
|
||||
if ((nr = xpath_vec_bool(xt, nsc, "%s", xpath)) < 0)
|
||||
goto done;
|
||||
if (!nr){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue