> On 08 Jun 2015, at 16:40, Kent Watsen <[email protected]> wrote: > > >> Otherwise, the leafref value MUST be a valid value of the >> data type that is defined for the referenced leaf. > > > Is it a MUST or a SHOULD? > > Obviously, if it's not a valid value, a match will never occur, but that's > a user error, no?
I think the two leafs are coupled through the path statement and so the values of both should conform to the same type. If I extend Balazs’ example with uint8 and 1..10 range: 1. Would a leafref value of 256 be acceptable? 2. How about "foo"? Lada > > It comes down to a validation warning versus a validation error. I argue > that the validation should not fail in this case. > > > Kent > -- Ladislav Lhotka, CZ.NIC Labs PGP Key ID: E74E8C0C _______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod
