Re: [netmod] leafref to multi-key list: can only use current() in 2nd leafref

2021-05-21 Thread Sterne, Jason (Nokia - CA/Ottawa)
Thanks for the excellent detailed response Jan. I see what you are saying. I was familiar with the first part (the need for the "current()" in the predicates to bind things together), but unsure whether predicates in *all* the leafrefs was somehow invalid (I wasn't seeing that anywhere in other

Re: [netmod] leafref to multi-key list: can only use current() in 2nd leafref

2021-05-21 Thread Jan Lindblad
Hi Jason, > In any examples I've seen where a YANG model contains a set of leafrefs to a > multi-key list, or to a list key within a list, the "current()" xpath > function is only in the 2nd leafref and never the first. Yes. When you want to model a reference to a particular list instance some