RFC 6020 section 9.9: The leafref type is used to reference a particular leaf instance in the data tree. The "path" substatement (Section 9.9.2) selects a set of leaf instances, and the leafref value space is the set of values of these leaf instances.
I think the last statement above already clarifies this, no? /js On Mon, Jun 08, 2015 at 02:08:05PM +0200, Balazs Lengyel wrote: > Hello, > I propose a small clarification to the yang draft as described below. > regards Balazs > -------- Forwarded Message -------- > > Subject: Re: Leafref and require-instance=false > Date: Mon, 8 Jun 2015 13:44:55 +0200 > From: Martin Bjorklund [1]<[email protected]> > To: [2][email protected] > > Balazs Lengyel [3]<[email protected]> wrote: > > Hello Martin, > > Any thoughts on this? > > regards Balazs > > > > > > Hello Martin, > > If I have a leafref with require-instance=false which references an > > uint8 with range 1..10, and the leafref contains the value 20, can > > this be a valid configuration? > > As I see it, there is nothing in the draft that says this is not > > allowed. > > > > IMHO this should not be valid. You could add something like: > > "The leafref must have a value that is a possible allowed value for > > the referenced leaf." > > I agree, this makes sense! > > > /martin > > -- > Balazs Lengyel Ericsson Hungary Ltd. > Senior Specialist > ECN: 831 7320 > Mobile: +36-70-330-7909 email: [4][email protected] > > References > > Visible links > 1. mailto:[email protected] > 2. mailto:[email protected] > 3. mailto:[email protected] > 4. mailto:[email protected] > _______________________________________________ > netmod mailing list > [email protected] > https://www.ietf.org/mailman/listinfo/netmod -- Juergen Schoenwaelder Jacobs University Bremen gGmbH Phone: +49 421 200 3587 Campus Ring 1 | 28759 Bremen | Germany Fax: +49 421 200 3103 <http://www.jacobs-university.de/> _______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod
