Fixed: [If services add duplicate entries, controller does not detect this](https://github.com/clicon/clixon-controller/issues/107)
Rename function `xml_yang_minmax_recurse()` -> `xml_yang_validate_minmax()`
This commit is contained in:
parent
a1badc312e
commit
6b8f7754b8
9 changed files with 382 additions and 38 deletions
|
|
@ -1474,7 +1474,7 @@ netconf_data_not_unique_xml(cxobj **xret,
|
|||
/* error-info: <non-unique> Contains an instance identifier that points to a leaf
|
||||
* that invalidates the "unique" constraint. This element is present once for each
|
||||
* non-unique leaf. */
|
||||
if (cvec_len(cvk)){
|
||||
if (cvk && cvec_len(cvk)){
|
||||
if ((xinfo = xml_new("error-info", xerr, CX_ELMNT)) == NULL)
|
||||
goto done;
|
||||
if (xml2xpath(x, NULL, 0, 0, &path) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue