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
|
|
@ -1383,7 +1383,7 @@ xml_yang_validate_all(clixon_handle h,
|
|||
/* Check unique and min-max after choice test for example*/
|
||||
if (yang_config(yt) != 0){
|
||||
/* Checks if next level contains any unique list constraints */
|
||||
if ((ret = xml_yang_minmax_recurse(xt, 1, xret)) < 0)
|
||||
if ((ret = xml_yang_validate_minmax(xt, 1, xret)) < 0)
|
||||
goto done;
|
||||
if (ret == 0)
|
||||
goto fail;
|
||||
|
|
@ -1422,7 +1422,7 @@ xml_yang_validate_all_top(clixon_handle h,
|
|||
if ((ret = xml_yang_validate_all(h, x, xret)) < 1)
|
||||
return ret;
|
||||
}
|
||||
if ((ret = xml_yang_minmax_recurse(xt, 0, xret)) < 1)
|
||||
if ((ret = xml_yang_validate_minmax(xt, 0, xret)) < 1)
|
||||
return ret;
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue