Re: [netmod] Interaction of 'when' and 'default' statements

2017-03-24 Thread t . petch
- Original Message - From: "Phil Shafer" Sent: Thursday, March 23, 2017 8:24 PM > William Ivory writes: > >Yes, I'd noticed that. Does this make the behaviour 'undefined' in YANG 1.0? > > No, this was a clarification. The text in 6020 was reasonably clear: > >The

Re: [netmod] Interaction of 'when' and 'default' statements

2017-03-23 Thread Phil Shafer
William Ivory writes: >Yes, I'd noticed that. Does this make the behaviour 'undefined' in YANG 1.0? No, this was a clarification. The text in 6020 was reasonably clear: The "when" statement makes its parent data definition statement conditional. The node defined by the parent data

Re: [netmod] Interaction of 'when' and 'default' statements

2017-03-23 Thread Dale R. Worley
Martin Bjorklund writes: > William Ivory wrote: >> Thanks. Can you point me at the part of RFC 6020 that explicitly >> states that 'when' wins over 'default'? > > Section 7.6.1 of RFC 7950 says: > >Note that if the leaf or any of its ancestors has a

Re: [netmod] Interaction of 'when' and 'default' statements

2017-03-22 Thread Martin Bjorklund
iam Ivory <wiv...@brocade.com> > Cc: netmod@ietf.org; Nick Brown <bro...@brocade.com> > Subject: Re: [netmod] Interaction of 'when' and 'default' statements > > William Ivory <wiv...@brocade.com> wrote: > > Hi, > > > > I'm looking for clarification of the '

Re: [netmod] Interaction of 'when' and 'default' statements

2017-03-22 Thread Bogaert, Bart (Nokia - BE/Antwerp)
Message- From: netmod [mailto:netmod-boun...@ietf.org] On Behalf Of William Ivory Sent: 22 March 2017 18:56 To: Martin Bjorklund <m...@tail-f.com> Cc: Nick Brown <bro...@brocade.com>; netmod@ietf.org Subject: Re: [netmod] Interaction of 'when' and 'default' statements Hi Martin,

Re: [netmod] Interaction of 'when' and 'default' statements

2017-03-22 Thread William Ivory
; Nick Brown <bro...@brocade.com> Subject: Re: [netmod] Interaction of 'when' and 'default' statements William Ivory <wiv...@brocade.com> wrote: > Hi, > > I'm looking for clarification of the 'when' and 'default' statements > on a leaf. For example, if a leaf has a 'default

Re: [netmod] Interaction of 'when' and 'default' statements

2017-03-22 Thread Martin Bjorklund
William Ivory wrote: > Hi, > > I'm looking for clarification of the 'when' and 'default' statements > on a leaf. For example, if a leaf has a 'default', can it also have a > 'when' statement that could cause it to disappear if the 'when' > condition evaluates to false? Yes,

[netmod] Interaction of 'when' and 'default' statements

2017-03-22 Thread William Ivory
Hi, I'm looking for clarification of the 'when' and 'default' statements on a leaf. For example, if a leaf has a 'default', can it also have a 'when' statement that could cause it to disappear if the 'when' condition evaluates to false? Section 8.3 or RFC 6020 isn't clear on how evaluation