You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A construct with a conditiona (using when) container with a mandatory leaf does not work when the when condition evaluates as false.
Example:
container c {
when ../id='true';
leaf x {
type string;
mandatory true;
}
If the when condition evaluates to false, x is still required at validation.
This fails RFC 7950 Sec 8.1:
The "mandatory" constraint is enforced for leafs and choices, unless the node
or any of its ancestors has a "when" condition ... that evaluates to "false".
The text was updated successfully, but these errors were encountered:
A construct with a conditiona (using when) container with a mandatory leaf does not work when the when condition evaluates as false.
Example:
If the when condition evaluates to false, x is still required at validation.
This fails RFC 7950 Sec 8.1:
The text was updated successfully, but these errors were encountered: