Hi Lada,

On 16/07/2018 08:35, Ladislav Lhotka wrote:
Robert Wilton <rwilton=40cisco....@dmarc.ietf.org> 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 substatement of
"refine".
My reading of 7950, is that you are allowed to refine a node to add an "if-feature".

RFC 7950, section 7.13.2:

The following refinements can be done:

....

   o  A leaf, leaf-list, list, container, choice, case, anydata, or
      anyxml node may get additional "if-feature" expressions.


Thanks,
Rob


Lada

Ideally, I think that the groupings would be split up, so that they
build on each other.

    grouping "foo" {
      container-or-leaf "foo" { ... }
    }

    grouping "bar-etc" {
      container-or-leaf "bar" { ... }
      ...  // the "etc" ;)
    }

    grouping "foo-bar-etc" {
      grouping "foo";
      grouping "bar-etc";
    }

Thanks,
Rob

On 11/07/2018 18:30, Kent Watsen wrote:
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 "foo-bar-etc" {
        refine "listen" {
          when "false()";
        }
      }
    }

Any better ideas?

Thanks,
Kent



_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod
.

_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod

_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to