Re: [netmod] Using an empty type in a list key

2016-09-07 Thread Andy Bierman
On Wed, Sep 7, 2016 at 7:02 PM, Dale R. Worley wrote: > Andy Bierman writes: > > Using a key of type empty is utterly pointless unless the point > > is to make the instance identifier longer. > > IMO using a key of type empty (or any type with only one value) is > *pointless* but should be *vali

Re: [netmod] Using an empty type in a list key

2016-09-07 Thread Dale R. Worley
Andy Bierman writes: > Using a key of type empty is utterly pointless unless the point > is to make the instance identifier longer. IMO using a key of type empty (or any type with only one value) is *pointless* but should be *valid*. Things should be valid unless processing them according to the

Re: [netmod] Circular dependency in 'when'

2016-09-07 Thread Andy Bierman
On Wed, Sep 7, 2016 at 11:21 AM, Ladislav Lhotka wrote: > > > On 07 Sep 2016, at 19:44, Vladimir Vassilev > wrote: > > > > On 09/07/2016 02:18 PM, Martin Bjorklund wrote: > >> Hi, > >> > >> Your example is not circular, and it is legal. However, the 'when' > >> expression refers to the node in

Re: [netmod] Circular dependency in 'when'

2016-09-07 Thread Ladislav Lhotka
> On 07 Sep 2016, at 19:44, Vladimir Vassilev wrote: > > On 09/07/2016 02:18 PM, Martin Bjorklund wrote: >> Hi, >> >> Your example is not circular, and it is legal. However, the 'when' >> expression refers to the node in which the when expression is defined. >> Note that this expression will a

Re: [netmod] Circular dependency in 'when'

2016-09-07 Thread Vladimir Vassilev
On 09/07/2016 02:18 PM, Martin Bjorklund wrote: Hi, Your example is not circular, and it is legal. However, the 'when' expression refers to the node in which the when expression is defined. Note that this expression will always evaluates to 'false' (see the third bullet in 7.21.5 in RFC 7950).

Re: [netmod] Circular dependency in 'when'

2016-09-07 Thread Martin Bjorklund
Hi, Your example is not circular, and it is legal. However, the 'when' expression refers to the node in which the when expression is defined. Note that this expression will always evaluates to 'false' (see the third bullet in 7.21.5 in RFC 7950). Take a step back and consider what the 'when' sta

[netmod] Circular dependency in 'when'

2016-09-07 Thread Vladimir Vassilev
Hi, Is there any practical value of 'when' statements with circular dependency to the value of the parent (in case it is a leaf) or any children of the parent? container circular-dependency-when { leaf a { when "(. + ../b) = 100"; type uint16 { range

[netmod] New revision of draft-wu-opsawg-service-model-explained

2016-09-07 Thread Adrian Farrel
Hi, [Copying NETMOD, but suggest all discussions are held on OPSAWG list] We updated our document to (hopefully) make some stuff clearer... - We are not trying to piss on draft-ietf-netmod-yang-model-classification! Actually, that is an important reference, but its approach is slightly di