Re: [netmod] removing a node from a grouping

2018-07-16 Thread Ladislav Lhotka
On Mon, 2018-07-16 at 09:33 -0400, Robert Wilton wrote: > Hi Lada, > > On 16/07/2018 08:35, Ladislav Lhotka wrote: > > Robert Wilton writes: > > > > > Hi Kent, > > > > > > I'm not sure that sec 7.13.2 of 7950 allows refine to add a when > > > statement, although an equivalent solution would be

Re: [netmod] removing a node from a grouping

2018-07-16 Thread Balazs Lengyel
So it seems that grouping "bar-etc" { uses "foo-bar-etc" { refine "foo" { if-feature never-supported-feature ; } } } would work. It seems rather similar to a deviation. regards Balazs On 7/16/2018 9:33 AM, Robert Wilton w

Re: [netmod] removing a node from a grouping

2018-07-16 Thread Robert Wilton
Hi Lada, On 16/07/2018 08:35, Ladislav Lhotka wrote: Robert Wilton writes: Hi Kent, I'm not sure that sec 7.13.2 of 7950 allows refine to add a when statement, although an equivalent solution would be refine it with an if-feature statement for a feature that is never enabled. Neither "when

Re: [netmod] removing a node from a grouping

2018-07-16 Thread Ladislav Lhotka
Robert Wilton writes: > Hi Kent, > > I'm not sure that sec 7.13.2 of 7950 allows refine to add a when > statement, although an equivalent solution would be refine it with an > if-feature statement for a feature that is never enabled. Neither "when" nor "if-feature" is permitted as a substateme

Re: [netmod] removing a node from a grouping

2018-07-15 Thread Per Hedeland
On 2018-07-15 13:11, Robert Wilton wrote: Hi Kent, I don't think that this is a valid use of augment - I thought that augment can only add news data nodes, not add extra sub statements to existing ones. Well, it is valid (though not if "foo" is a leaf), but you are right, and it doesn't do wh

Re: [netmod] removing a node from a grouping

2018-07-15 Thread Robert Wilton
Hi Kent, I don't think that this is a valid use of augment - I thought that augment can only add news data nodes, not add extra sub statements to existing ones. Also, YANG allows grouping to be changed so that it is constructed from sub groupings, at long as the original grouping name is pre

Re: [netmod] removing a node from a grouping

2018-07-14 Thread Kent Watsen
Hi Rob, Right you are, "refine" doesn't have a "when" substatement, but "augment" does. grouping "bar-etc" { uses "foo-bar-etc" { augment "foo" { when "false()"; } } } The problem with splitting up groupings is that 1) it needs to be done beforeh

Re: [netmod] removing a node from a grouping

2018-07-12 Thread Robert Wilton
Hi Kent, I'm not sure that sec 7.13.2 of 7950 allows refine to add a when statement, although an equivalent solution would be refine it with an if-feature statement for a feature that is never enabled. Ideally, I think that the groupings would be split up, so that they build on each other.

[netmod] removing a node from a grouping

2018-07-11 Thread Kent Watsen
Say there is: grouping "foo-bar-etc" { container-or-leaf "foo" { ... } container-or-leaf "bar" { ... } ... // the "etc" ;) } And the goal is to use the grouping sans the "foo" node. Can a "when" statement that always evaluates to "false" do it? grouping "bar-etc" { uses