Hi,

This text in 7.21.5 is not clear:

   A leaf that is a list key MUST NOT have a "when" statement.

I think you mean that no when-stmt can use the key leaf as
a context node.

These are illegal in YANG 1.1 I think:


   augment /listX {
      when "foo";
      leaf key1 { ... }
   }


OR


    list listX {
       key key1;
       uses grouping1 {
          when "foo";
           // leaf key1 added via grouping
       }
    }

There are more ways that the key-leaf can inherit a when-stmt
but you get the idea.

The phrase "have a when-stmt" should be clear.
It implies that the when-stmt is a sub-statement of the leaf-stmt
but this is only 1 way the key leaf can be conditional.


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

Reply via email to