>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"?


I agree it doesn't makes sense, but is the configuration invalid?

The leafref is marked require-instance=false, it just means a matching
condition will never succeed.

Would a configuration be invalid if a "when" expression could never
evaluate to true?


Kent

_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to