From: Martin Björklund <[email protected]> Sent: 01 May 2020 11:52 tom petch <[email protected]> wrote: > given > rpc tunnels > input > container tunnel > choice filter > mandatory true
This means that some node from some case must be present. > case all > leaf all > mandatory true I assume that this mandatory is inside "leaf all". This means that if this case is selected (i.e., at least some node from the case is present), then this leaf must be present as well. > case one > leaf justone > what does mandatory do? I could understand one mandatory or three > mandatory but struggle to see the point of two. You need to look at complete model for the choice to see if it makes sense or not. <tp> Thanks for that. Yes, what I give is the entire RPC as far as data nodes go (which I meant to mention) so it seems to me that the second mandatory is not needed unless the expectation is that the first case will be augmented with other nodes which then need not be present. The aim is to either act on one or act on all of a list, tunnels in this case, which is quite common in routing YANG modules but I have not seen this pattern before and wondered what I was missing. I think the answer is nothing! Tom Petch > > Something like this is in draft-ietf-teas-yang-te /martin _______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod
