Re: [netmod] Adding a pre-existing leaf into a new 'choice' - NBC change?

2018-11-22 Thread Juergen Schoenwaelder
On Thu, Nov 22, 2018 at 03:00:27PM +0100, Martin Bjorklund wrote: > Andy Bierman wrote: > > > > 9.9 . The leafref > > Built-In Type > > > >The leafref built-in type is restricted to the value space of some > >leaf or leaf-list node in the

Re: [netmod] Adding a pre-existing leaf into a new 'choice' - NBC change?

2018-11-22 Thread Andy Bierman
On Thu, Nov 22, 2018 at 7:28 AM Ladislav Lhotka wrote: > On Thu, 2018-11-22 at 16:14 +0100, Martin Bjorklund wrote: > > Ladislav Lhotka wrote: > > > On Thu, 2018-11-22 at 15:00 +0100, Martin Bjorklund wrote: > > > > Andy Bierman wrote: > > > > > On Thu, Nov 22, 2018 at 5:39 AM Martin Bjorklund

Re: [netmod] Adding a pre-existing leaf into a new 'choice' - NBC change?

2018-11-22 Thread Per Hedeland
On 2018-11-22 16:37, Ladislav Lhotka wrote: > On Thu, 2018-11-22 at 15:31 +, Sterne, Jason (Nokia - CA/Ottawa) wrote: >> From what I can understand below, none of this debate affects the conclusion >> that choice & case identifiers do *not* appear in: >> - leafref paths >> - must statements >>

Re: [netmod] Adding a pre-existing leaf into a new 'choice' - NBC change?

2018-11-22 Thread Ladislav Lhotka
On Thu, 2018-11-22 at 15:31 +, Sterne, Jason (Nokia - CA/Ottawa) wrote: > From what I can understand below, none of this debate affects the conclusion > that choice & case identifiers do *not* appear in: > - leafref paths > - must statements > - when statements > right? Yup. Lada > > (they

Re: [netmod] Adding a pre-existing leaf into a new 'choice' - NBC change?

2018-11-22 Thread Sterne, Jason (Nokia - CA/Ottawa)
>From what I can understand below, none of this debate affects the conclusion >that choice & case identifiers do *not* appear in: - leafref paths - must statements - when statements right? (they *do* appear in augment paths though since that definitely needs to refer to schema) Jason > -Or

Re: [netmod] Adding a pre-existing leaf into a new 'choice' - NBC change?

2018-11-22 Thread Ladislav Lhotka
On Thu, 2018-11-22 at 16:14 +0100, Martin Bjorklund wrote: > Ladislav Lhotka wrote: > > On Thu, 2018-11-22 at 15:00 +0100, Martin Bjorklund wrote: > > > Andy Bierman wrote: > > > > On Thu, Nov 22, 2018 at 5:39 AM Martin Bjorklund > > > > wrote: > > > > > > > > > Hi, > > > > > > > > > > Ladisla

Re: [netmod] Confirming draft-ietf-netmod-module-tags-03 consensus call

2018-11-22 Thread joel jaeggli
Something like the text below addresses the question of guidance. I think we get a better draft if we close off this discussion on the list. I think the question about where the tags reside generally is settled. Thanks joel > On Nov 14, 2018, at 09:26, Robert Wilton wrote: > > >> >> The an

Re: [netmod] Confirming draft-ietf-netmod-module-tags-03 consensus call

2018-11-22 Thread joel jaeggli
> > >> I do not think the tail end of a WGLC is an appropriate time or place to >> start wondering out loud about whether it would be a good to have. I admit >> to being confused by this since I believe you were actively participating >> WRT this work when it had the yang library augmentati

Re: [netmod] Adding a pre-existing leaf into a new 'choice' - NBC change?

2018-11-22 Thread Martin Bjorklund
Ladislav Lhotka wrote: > On Thu, 2018-11-22 at 15:00 +0100, Martin Bjorklund wrote: > > Andy Bierman wrote: > > > On Thu, Nov 22, 2018 at 5:39 AM Martin Bjorklund wrote: > > > > > > > Hi, > > > > > > > > Ladislav Lhotka wrote: > > > > > Andy Bierman writes: > > > > > > > > > > > On Mon, Nov 1

Re: [netmod] Adding a pre-existing leaf into a new 'choice' - NBC change?

2018-11-22 Thread Ladislav Lhotka
On Thu, 2018-11-22 at 15:00 +0100, Martin Bjorklund wrote: > Andy Bierman wrote: > > On Thu, Nov 22, 2018 at 5:39 AM Martin Bjorklund wrote: > > > > > Hi, > > > > > > Ladislav Lhotka wrote: > > > > Andy Bierman writes: > > > > > > > > > On Mon, Nov 19, 2018 at 12:32 PM Sterne, Jason (Nokia - C

Re: [netmod] Adding a pre-existing leaf into a new 'choice' - NBC change?

2018-11-22 Thread Ladislav Lhotka
On Thu, 2018-11-22 at 15:01 +0100, Martin Bjorklund wrote: > Ladislav Lhotka wrote: > > On Thu, 2018-11-22 at 14:39 +0100, Martin Bjorklund wrote: > > > Hi, > > > > > > Ladislav Lhotka wrote: > > > > Andy Bierman writes: > > > > > > > > > On Mon, Nov 19, 2018 at 12:32 PM Sterne, Jason (Nokia -

Re: [netmod] Adding a pre-existing leaf into a new 'choice' - NBC change?

2018-11-22 Thread Martin Bjorklund
Andy Bierman wrote: > On Thu, Nov 22, 2018 at 5:39 AM Martin Bjorklund wrote: > > > Hi, > > > > Ladislav Lhotka wrote: > > > Andy Bierman writes: > > > > > > > On Mon, Nov 19, 2018 at 12:32 PM Sterne, Jason (Nokia - CA/Ottawa) < > > > > jason.ste...@nokia.com> wrote: > > > > > > > >> Hi all, >

Re: [netmod] Adding a pre-existing leaf into a new 'choice' - NBC change?

2018-11-22 Thread Ladislav Lhotka
On Thu, 2018-11-22 at 14:39 +0100, Martin Bjorklund wrote: > Hi, > > Ladislav Lhotka wrote: > > Andy Bierman writes: > > > > > On Mon, Nov 19, 2018 at 12:32 PM Sterne, Jason (Nokia - CA/Ottawa) < > > > jason.ste...@nokia.com> wrote: > > > > > > > Hi all, > > > > > > > > > > > > > > > > If w

Re: [netmod] Adding a pre-existing leaf into a new 'choice' - NBC change?

2018-11-22 Thread Andy Bierman
On Thu, Nov 22, 2018 at 5:39 AM Martin Bjorklund wrote: > Hi, > > Ladislav Lhotka wrote: > > Andy Bierman writes: > > > > > On Mon, Nov 19, 2018 at 12:32 PM Sterne, Jason (Nokia - CA/Ottawa) < > > > jason.ste...@nokia.com> wrote: > > > > > >> Hi all, > > >> > > >> > > >> > > >> If we have a YAN

Re: [netmod] Adding a pre-existing leaf into a new 'choice' - NBC change?

2018-11-22 Thread Martin Bjorklund
Hi, Ladislav Lhotka wrote: > Andy Bierman writes: > > > On Mon, Nov 19, 2018 at 12:32 PM Sterne, Jason (Nokia - CA/Ottawa) < > > jason.ste...@nokia.com> wrote: > > > >> Hi all, > >> > >> > >> > >> If we have a YANG model with a leaf: > >> > >> > >> > >> MODEL VERSION 1: > >> > >> container my-m

Re: [netmod] Adding a pre-existing leaf into a new 'choice' - NBC change?

2018-11-22 Thread Martin Bjorklund
Hi, "Sterne, Jason (Nokia - CA/Ottawa)" wrote: > Thanks Andy. > > I didn't realize that leafref paths would contain the choice & case > names as segments of the path. The choice and case nodes are not present in the leafref's path, since it's an XPath expression that works on the data tree. Se

Re: [netmod] Adding a pre-existing leaf into a new 'choice' - NBC change?

2018-11-22 Thread Ladislav Lhotka
Andy Bierman writes: > On Mon, Nov 19, 2018 at 12:32 PM Sterne, Jason (Nokia - CA/Ottawa) < > jason.ste...@nokia.com> wrote: > >> Hi all, >> >> >> >> If we have a YANG model with a leaf: >> >> >> >> MODEL VERSION 1: >> >> container my-model { >> >> leaf a { type string; } >> >> } >> >> >> >>

Re: [netmod] Adding a pre-existing leaf into a new 'choice' - NBC change?

2018-11-22 Thread Sterne, Jason (Nokia - CA/Ottawa)
Thanks Andy. I didn't realize that leafref paths would contain the choice & case names as segments of the path. But now that you pointed that out it clarified what this meant in section 7.9 of RFC7950: The identifier is used to identify the choice node in the schema tree. A choice node do