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

2018-11-19 Thread Martin Bjorklund
Martin Bjorklund wrote: > Hi, > > "Sterne, Jason (Nokia - CA/Ottawa)" wrote: > > Hi all, > > > > If we have a YANG model with a leaf: > > > > MODEL VERSION 1: > > container my-model { > > leaf a { type string; } > > } > > > > And then later we produce another version of the model where

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

2018-11-19 Thread Andy Bierman
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; } > > } > > > > And then later we produce another version of

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

2018-11-19 Thread Sterne, Jason (Nokia - CA/Ottawa)
Thanks. I forgot that the choice is in the *schema* path (was thinking about the instance data path which doesn't include the choice or case statements). > -Original Message- > From: Martin Bjorklund > Sent: Monday, November 19, 2018 3:46 PM > To: Sterne, Jason (Nokia - CA/Ottawa) >

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

2018-11-19 Thread Martin Bjorklund
Hi, "Sterne, Jason (Nokia - CA/Ottawa)" wrote: > Hi all, > > If we have a YANG model with a leaf: > > MODEL VERSION 1: > container my-model { > leaf a { type string; } > } > > And then later we produce another version of the model where that leaf > is placed into a choice construct: > >

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

2018-11-19 Thread Sterne, Jason (Nokia - CA/Ottawa)
Hi all, If we have a YANG model with a leaf: MODEL VERSION 1: container my-model { leaf a { type string; } } And then later we produce another version of the model where that leaf is placed into a choice construct: MODEL VERSION 2: container my-model { choice some-choice {