Hi all,
When comparing the value of a boolean leaf in a 'when' statement (or a 'must'
statement), is an equality comparison to 'true' or 'false' the same as a check
against true() or false() ?
For example:
leaf a {
type boolean;
}
leaf b {
type uint32;
when "../a = 'true'";
}
leaf c {
type uint32;
when "../a = 'false'";
}
(note that neither b nor c can be configured if leaf a isn't explicitly
configured with a value since there is no default)
If I replace the two 'when' statements above with the following instead, is the
behavior the same ?
...
when "../a = true()";
...
when "../a = false()";
...
Or does "../a = true()" behave as an existence check on leaf a and would be
enabled whether a is configured as true or false ?
Regards,
Jason
_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod