Ladislav Lhotka <lho...@nic.cz> wrote:
> Juergen Schoenwaelder <j.schoenwael...@jacobs-university.de> writes:
> 
> > 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?
> 
> I think this is a stricter constraint that addresses the
> "require-instance true" case : possible leafref values are limited to
> those that instances of the referenced leaf really have.
> 
> 6020bis should IMO say something like this:
> 
> The "path" substatement (Section 9.9.2) selects a set of leaf
> instances. If the "require-instance" property (Section 9.9.3) is set to
> "true", the leafref value space is the set of values of these leaf
> instances.  Otherwise, the leafref value MUST be a valid value of the
> data type that is defined for the referenced leaf.

You were quicker than me ;)  I agree with this.


/martin



> 
> Lada
> 
> >
> > /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]<m...@tail-f.com>
> >>         To: [2]balazs.leng...@ericsson.com
> >> 
> >>  Balazs Lengyel [3]<balazs.leng...@ericsson.com> 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]balazs.leng...@ericsson.com
> >> 
> >> References
> >> 
> >>    Visible links
> >>    1. mailto:m...@tail-f.com
> >>    2. mailto:balazs.leng...@ericsson.com
> >>    3. mailto:balazs.leng...@ericsson.com
> >>    4. mailto:balazs.leng...@ericsson.com
> >
> >> _______________________________________________
> >> netmod mailing list
> >> netmod@ietf.org
> >> 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
> > netmod@ietf.org
> > https://www.ietf.org/mailman/listinfo/netmod
> 
> -- 
> Ladislav Lhotka, CZ.NIC Labs
> PGP Key ID: E74E8C0C
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
> 

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

Reply via email to