Description
The transition manual from v1 to v2 says:
Many validation flags were removed because they became obsolete (LYD_OPT_DESTRUCT, LYD_OPT_WHENAUTODEL, LYD_OPT_NOEXTDEPS, LYD_OPT_DATA_NO_YANGLIB, LYD_OPT_VAL_DIFF) or we consider them redundant (LYD_OPT_OBSOLETE, LYD_OPT_NOSIBLINGS, LYD_OPT_DATA_ADD_YANGLIB).
In sonic-mgmt-common, it is using LYD_OPT_NOEXTDEPS
for partial tree validations. This validation still wants to check for things like valid data for constraints/patterns/length, min/max, mandatory, and so forth ... but does not want to check outside of the current module for leafrefs/must/when. The code does not have the full data tree available at this point when calling lyd_validate_all(), hence the use of this flag.
Is there an alternative approach that can be used? Or would you accept patches to reimplement a flag like LYD_VALIDATE_NOEXTDEPS
to restore the prior behavior?