Re: [netmod] leafref value space and constraint

2016-06-09 Thread Ladislav Lhotka
> On 08 Jun 2016, at 17:22, Dale R. Worley wrote: > > Martin Bjorklund writes: >> The text for "path" already says: >> >> It takes as an argument a >> string that MUST refer to a leaf or leaf-list node. > > Given what the text must mean, that's sufficient for me. Then it's fine with me, to

Re: [netmod] leafref value space and constraint

2016-06-08 Thread Dale R. Worley
Martin Bjorklund writes: > The text for "path" already says: > > It takes as an argument a > string that MUST refer to a leaf or leaf-list node. Given what the text must mean, that's sufficient for me. Ladislav Lhotka writes: > Which of the two "foo" leaf nodes does the path argument point

Re: [netmod] leafref value space and constraint

2016-06-08 Thread Dale R. Worley
wor...@ariadne.com (Dale R. Worley) writes: > [...] > Yes, it's difficult to explain, though once one gets the idea, it's > straightforward enough. The problem I have is that it's not pointed out > explicitly anywhere. (E.g., Juergen suggests section 9.9.2, but I don't > see it there.) > > The cr

Re: [netmod] leafref value space and constraint

2016-06-08 Thread Ladislav Lhotka
OK, let's bite the bullet: OLD The "path" statement, which is a substatement to the "type" statement, MUST be present if the type is "leafref". It takes as an argument a string that MUST refer to a leaf or leaf-list node. The syntax for a path argument is a subset of the XPath abbre

Re: [netmod] leafref value space and constraint

2016-06-08 Thread Ladislav Lhotka
> On 07 Jun 2016, at 18:45, Andy Bierman wrote: > > > > On Tue, Jun 7, 2016 at 9:38 AM, Juergen Schoenwaelder > wrote: > On Tue, Jun 07, 2016 at 09:08:56AM -0700, Andy Bierman wrote: > > On Tue, Jun 7, 2016 at 8:52 AM, Juergen Schoenwaelder < > > j.schoenwael...@jacobs-university.de> wrote:

Re: [netmod] leafref value space and constraint

2016-06-08 Thread Per Hedeland
On 2016-06-08 09:48, Martin Bjorklund wrote: > Andy Bierman wrote: >> On Tue, Jun 7, 2016 at 9:38 AM, Juergen Schoenwaelder < >> j.schoenwael...@jacobs-university.de> wrote: >> >>> On Tue, Jun 07, 2016 at 09:08:56AM -0700, Andy Bierman wrote: On Tue, Jun 7, 2016 at 8:52 AM, Juergen Schoenwael

Re: [netmod] leafref value space and constraint

2016-06-08 Thread Ladislav Lhotka
> On 08 Jun 2016, at 09:51, Martin Bjorklund wrote: > > Juergen Schoenwaelder wrote: >> On Tue, Jun 07, 2016 at 11:26:03AM -0400, Dale R. Worley wrote: >>> Ladislav Lhotka writes: "Dale R. Worley" writes: > A difficulty I have with the current wording is that it doesn't point > o

Re: [netmod] leafref value space and constraint

2016-06-08 Thread Martin Bjorklund
Juergen Schoenwaelder wrote: > On Tue, Jun 07, 2016 at 11:26:03AM -0400, Dale R. Worley wrote: > > Ladislav Lhotka writes: > > > "Dale R. Worley" writes: > > >> A difficulty I have with the current wording is that it doesn't point > > >> out the crucial fact about leafref that the XPath expressi

Re: [netmod] leafref value space and constraint

2016-06-08 Thread Martin Bjorklund
Andy Bierman wrote: > On Tue, Jun 7, 2016 at 9:38 AM, Juergen Schoenwaelder < > j.schoenwael...@jacobs-university.de> wrote: > > > On Tue, Jun 07, 2016 at 09:08:56AM -0700, Andy Bierman wrote: > > > On Tue, Jun 7, 2016 at 8:52 AM, Juergen Schoenwaelder < > > > j.schoenwael...@jacobs-university.de

Re: [netmod] leafref value space and constraint

2016-06-07 Thread Andy Bierman
On Tue, Jun 7, 2016 at 9:38 AM, Juergen Schoenwaelder < j.schoenwael...@jacobs-university.de> wrote: > On Tue, Jun 07, 2016 at 09:08:56AM -0700, Andy Bierman wrote: > > On Tue, Jun 7, 2016 at 8:52 AM, Juergen Schoenwaelder < > > j.schoenwael...@jacobs-university.de> wrote: > > > > > On Tue, Jun 07

Re: [netmod] leafref value space and constraint

2016-06-07 Thread Juergen Schoenwaelder
On Tue, Jun 07, 2016 at 09:08:56AM -0700, Andy Bierman wrote: > On Tue, Jun 7, 2016 at 8:52 AM, Juergen Schoenwaelder < > j.schoenwael...@jacobs-university.de> wrote: > > > On Tue, Jun 07, 2016 at 11:26:03AM -0400, Dale R. Worley wrote: > > > Ladislav Lhotka writes: > > > > "Dale R. Worley" writ

Re: [netmod] leafref value space and constraint

2016-06-07 Thread Andy Bierman
On Tue, Jun 7, 2016 at 8:52 AM, Juergen Schoenwaelder < j.schoenwael...@jacobs-university.de> wrote: > On Tue, Jun 07, 2016 at 11:26:03AM -0400, Dale R. Worley wrote: > > Ladislav Lhotka writes: > > > "Dale R. Worley" writes: > > >> A difficulty I have with the current wording is that it doesn't

Re: [netmod] leafref value space and constraint

2016-06-07 Thread Juergen Schoenwaelder
On Tue, Jun 07, 2016 at 11:26:03AM -0400, Dale R. Worley wrote: > Ladislav Lhotka writes: > > "Dale R. Worley" writes: > >> A difficulty I have with the current wording is that it doesn't point > >> out the crucial fact about leafref that the XPath expression can only > >> select elements that ar

Re: [netmod] leafref value space and constraint

2016-06-07 Thread Ladislav Lhotka
> On 07 Jun 2016, at 17:26, Dale R. Worley wrote: > > Ladislav Lhotka writes: >> "Dale R. Worley" writes: >>> A difficulty I have with the current wording is that it doesn't point >>> out the crucial fact about leafref that the XPath expression can only >>> select elements that are instantiati

Re: [netmod] leafref value space and constraint

2016-06-07 Thread Dale R. Worley
Ladislav Lhotka writes: > "Dale R. Worley" writes: >> A difficulty I have with the current wording is that it doesn't point >> out the crucial fact about leafref that the XPath expression can only >> select elements that are instantiations of one particular data node. I >> don't know XPath, but

Re: [netmod] leafref value space and constraint

2016-06-07 Thread Martin Bjorklund
Juergen Schoenwaelder wrote: > Martin, how close are we to have a final version addressing all the > review comments we received during the journey through the IESG? We're shrinking the list of open issues with every iteration of emails. I will go through the latest comments from the Gen-ART and

Re: [netmod] leafref value space and constraint

2016-06-07 Thread Ladislav Lhotka
"Dale R. Worley" writes: > A difficulty I have with the current wording is that it doesn't point > out the crucial fact about leafref that the XPath expression can only > select elements that are instantiations of one particular data node. I > don't know XPath, but it seems that that is not a ge

Re: [netmod] leafref value space and constraint

2016-06-06 Thread Juergen Schoenwaelder
On Mon, Jun 06, 2016 at 02:06:57PM -0400, Dale R. Worley wrote: > A difficulty I have with the current wording is that it doesn't point > out the crucial fact about leafref that the XPath expression can only > select elements that are instantiations of one particular data node. I > don't know XPat

Re: [netmod] leafref value space and constraint

2016-06-06 Thread Andy Bierman
On Mon, Jun 6, 2016 at 11:06 AM, Dale R. Worley wrote: > A difficulty I have with the current wording is that it doesn't point > out the crucial fact about leafref that the XPath expression can only > select elements that are instantiations of one particular data node. I > don't know XPath, but

Re: [netmod] leafref value space and constraint

2016-06-06 Thread Dale R. Worley
A difficulty I have with the current wording is that it doesn't point out the crucial fact about leafref that the XPath expression can only select elements that are instantiations of one particular data node. I don't know XPath, but it seems that that is not a general property of XPath expressions

Re: [netmod] leafref value space and constraint

2016-06-06 Thread Juergen Schoenwaelder
On Thu, Jun 02, 2016 at 04:14:56PM -0400, Dale R. Worley wrote: > Martin Bjorklund wrote: > > Also, the text needs to mention leaf-lists. This gives: > > > > The leafref type is restricted to the value space of some leaf or > > leaf-list node in the schema tree and optionally further restric

Re: [netmod] leafref value space and constraint

2016-06-02 Thread Dale R. Worley
Martin Bjorklund wrote: > Also, the text needs to mention leaf-lists. This gives: > > The leafref type is restricted to the value space of some leaf or > leaf-list node in the schema tree and optionally further restricted > by corresponding instance nodes in the data tree. The "path" >

Re: [netmod] leafref value space and constraint

2016-05-30 Thread Ladislav Lhotka
> On 30 May 2016, at 12:10, Martin Bjorklund wrote: > > Ladislav Lhotka wrote: >> >>> On 30 May 2016, at 10:58, Ladislav Lhotka wrote: >>> On 30 May 2016, at 10:49, Martin Bjorklund wrote: Ladislav Lhotka wrote: > Martin Bjorklund writes: > >> Juergen Sc

Re: [netmod] leafref value space and constraint

2016-05-30 Thread Martin Bjorklund
Ladislav Lhotka wrote: > > > On 30 May 2016, at 10:58, Ladislav Lhotka wrote: > > > >> > >> On 30 May 2016, at 10:49, Martin Bjorklund wrote: > >> > >> Ladislav Lhotka wrote: > >>> Martin Bjorklund writes: > >>> > Juergen Schoenwaelder wrote: > > On Tue, May 24, 2016 at 10:33:29

Re: [netmod] leafref value space and constraint

2016-05-30 Thread Ladislav Lhotka
> On 30 May 2016, at 10:58, Ladislav Lhotka wrote: > >> >> On 30 May 2016, at 10:49, Martin Bjorklund wrote: >> >> Ladislav Lhotka wrote: >>> Martin Bjorklund writes: >>> Juergen Schoenwaelder wrote: > On Tue, May 24, 2016 at 10:33:29AM +0200, Martin Bjorklund wrote: >> Juerg

Re: [netmod] leafref value space and constraint

2016-05-30 Thread Ladislav Lhotka
> On 30 May 2016, at 10:49, Martin Bjorklund wrote: > > Ladislav Lhotka wrote: >> Martin Bjorklund writes: >> >>> Juergen Schoenwaelder wrote: On Tue, May 24, 2016 at 10:33:29AM +0200, Martin Bjorklund wrote: > Juergen Schoenwaelder wrote: >> On Mon, May 23, 2016 at 05:29:42PM

Re: [netmod] leafref value space and constraint

2016-05-30 Thread Martin Bjorklund
Ladislav Lhotka wrote: > Martin Bjorklund writes: > > > Juergen Schoenwaelder wrote: > >> On Tue, May 24, 2016 at 10:33:29AM +0200, Martin Bjorklund wrote: > >> > Juergen Schoenwaelder wrote: > >> > > On Mon, May 23, 2016 at 05:29:42PM +0200, Ladislav Lhotka wrote: > >> > > > >> > > [...] > >

Re: [netmod] leafref value space and constraint

2016-05-30 Thread Ladislav Lhotka
Martin Bjorklund writes: > Juergen Schoenwaelder wrote: >> On Tue, May 24, 2016 at 10:33:29AM +0200, Martin Bjorklund wrote: >> > Juergen Schoenwaelder wrote: >> > > On Mon, May 23, 2016 at 05:29:42PM +0200, Ladislav Lhotka wrote: >> > > >> > > [...] >> > > >> > > > This mixes up paths in th

Re: [netmod] leafref value space and constraint

2016-05-30 Thread Martin Bjorklund
Ladislav Lhotka wrote: > > > On 30 May 2016, at 09:43, Martin Bjorklund wrote: > > > > Ladislav Lhotka wrote: > >> > >>> On 27 May 2016, at 19:30, t.petch wrote: > >>> > >>> > >>> - Original Message - > >>> From: "Martin Bjorklund" > >>> To: > >>> Sent: Monday, May 23, 2016 3:10

Re: [netmod] leafref value space and constraint

2016-05-30 Thread Ladislav Lhotka
> On 30 May 2016, at 09:43, Martin Bjorklund wrote: > > Ladislav Lhotka wrote: >> >>> On 27 May 2016, at 19:30, t.petch wrote: >>> >>> >>> - Original Message - >>> From: "Martin Bjorklund" >>> To: >>> Sent: Monday, May 23, 2016 3:10 PM This comment from the Gen-ART revi

Re: [netmod] leafref value space and constraint

2016-05-30 Thread Martin Bjorklund
Ladislav Lhotka wrote: > > > On 27 May 2016, at 19:30, t.petch wrote: > > > > > > - Original Message - > > From: "Martin Bjorklund" > > To: > > Sent: Monday, May 23, 2016 3:10 PM > >> > >> This comment from the Gen-ART review deserves it's own thread. > >> > >> gen-art> - section 9

Re: [netmod] leafref value space and constraint

2016-05-30 Thread Ladislav Lhotka
> On 27 May 2016, at 19:30, t.petch wrote: > > > - Original Message - > From: "Martin Bjorklund" > To: > Sent: Monday, May 23, 2016 3:10 PM >> >> This comment from the Gen-ART review deserves it's own thread. >> >> gen-art> - section 9.9 >> gen-art> >> gen-art>The leafref type i

Re: [netmod] leafref value space and constraint

2016-05-27 Thread t . petch
- Original Message - From: "Martin Bjorklund" To: Sent: Monday, May 23, 2016 3:10 PM > > This comment from the Gen-ART review deserves it's own thread. > > gen-art> - section 9.9 > gen-art> > gen-art>The leafref type is used to declare a constraint on the value space > gen-art>of

Re: [netmod] leafref value space and constraint

2016-05-24 Thread Martin Bjorklund
Ladislav Lhotka wrote: > > > On 24 May 2016, at 12:04, Martin Bjorklund wrote: > > > > Ladislav Lhotka wrote: > >> > >>> On 24 May 2016, at 10:33, Martin Bjorklund wrote: > >>> > >>> Juergen Schoenwaelder wrote: > On Mon, May 23, 2016 at 05:29:42PM +0200, Ladislav Lhotka wrote: >

Re: [netmod] leafref value space and constraint

2016-05-24 Thread Ladislav Lhotka
> On 24 May 2016, at 12:04, Martin Bjorklund wrote: > > Ladislav Lhotka wrote: >> >>> On 24 May 2016, at 10:33, Martin Bjorklund wrote: >>> >>> Juergen Schoenwaelder wrote: On Mon, May 23, 2016 at 05:29:42PM +0200, Ladislav Lhotka wrote: [...] > This mixes up paths

Re: [netmod] leafref value space and constraint

2016-05-24 Thread Juergen Schoenwaelder
On Tue, May 24, 2016 at 12:13:04PM +0200, Martin Bjorklund wrote: > Juergen Schoenwaelder wrote: > > On Tue, May 24, 2016 at 10:33:29AM +0200, Martin Bjorklund wrote: > > > Juergen Schoenwaelder wrote: > > > > On Mon, May 23, 2016 at 05:29:42PM +0200, Ladislav Lhotka wrote: > > > > > > > > [...]

Re: [netmod] leafref value space and constraint

2016-05-24 Thread Martin Bjorklund
Juergen Schoenwaelder wrote: > On Tue, May 24, 2016 at 10:33:29AM +0200, Martin Bjorklund wrote: > > Juergen Schoenwaelder wrote: > > > On Mon, May 23, 2016 at 05:29:42PM +0200, Ladislav Lhotka wrote: > > > > > > [...] > > > > > > > This mixes up paths in the data tree with those in the schema

Re: [netmod] leafref value space and constraint

2016-05-24 Thread Martin Bjorklund
Ladislav Lhotka wrote: > > > On 24 May 2016, at 10:33, Martin Bjorklund wrote: > > > > Juergen Schoenwaelder wrote: > >> On Mon, May 23, 2016 at 05:29:42PM +0200, Ladislav Lhotka wrote: > >> > >> [...] > >> > >>> This mixes up paths in the data tree with those in the schema > >>> tree. The X

Re: [netmod] leafref value space and constraint

2016-05-24 Thread Juergen Schoenwaelder
On Tue, May 24, 2016 at 10:33:29AM +0200, Martin Bjorklund wrote: > Juergen Schoenwaelder wrote: > > On Mon, May 23, 2016 at 05:29:42PM +0200, Ladislav Lhotka wrote: > > > > [...] > > > > > This mixes up paths in the data tree with those in the schema tree. The > > > XPath expression in the "p

Re: [netmod] leafref value space and constraint

2016-05-24 Thread Ladislav Lhotka
> On 24 May 2016, at 10:33, Martin Bjorklund wrote: > > Juergen Schoenwaelder wrote: >> On Mon, May 23, 2016 at 05:29:42PM +0200, Ladislav Lhotka wrote: >> >> [...] >> >>> This mixes up paths in the data tree with those in the schema tree. The >>> XPath expression in the "path" statement is

Re: [netmod] leafref value space and constraint

2016-05-24 Thread Martin Bjorklund
Juergen Schoenwaelder wrote: > On Mon, May 23, 2016 at 05:29:42PM +0200, Ladislav Lhotka wrote: > > [...] > > > This mixes up paths in the data tree with those in the schema tree. The > > XPath expression in the "path" statement is evaluated in the context of a > > data tree, but if the resul

Re: [netmod] leafref value space and constraint

2016-05-24 Thread Juergen Schoenwaelder
On Mon, May 23, 2016 at 05:29:42PM +0200, Ladislav Lhotka wrote: [...] > This mixes up paths in the data tree with those in the schema tree. The XPath > expression in the "path" statement is evaluated in the context of a data > tree, but if the result is an empty node set, then "this leaf node

Re: [netmod] leafref value space and constraint

2016-05-23 Thread Martin Bjorklund
Ladislav Lhotka wrote: > > > On 23 May 2016, at 16:10, Martin Bjorklund wrote: > > > > Hi, > > > > This comment from the Gen-ART review deserves it's own thread. > > > > gen-art> - section 9.9 > > gen-art> > > gen-art>The leafref type is used to declare a constraint on the value > > spa

Re: [netmod] leafref value space and constraint

2016-05-23 Thread Ladislav Lhotka
> On 23 May 2016, at 16:10, Martin Bjorklund wrote: > > Hi, > > This comment from the Gen-ART review deserves it's own thread. > > gen-art> - section 9.9 > gen-art> > gen-art>The leafref type is used to declare a constraint on the value > space > gen-art>of a leaf, based on a referen

[netmod] leafref value space and constraint

2016-05-23 Thread Martin Bjorklund
Hi, This comment from the Gen-ART review deserves it's own thread. gen-art> - section 9.9 gen-art> gen-art>The leafref type is used to declare a constraint on the value space gen-art>of a leaf, based on a reference to a set of leaf instances in the gen-art>data tree. The "path" subs