Martin Bjorklund <[email protected]> writes:
> Michal Vasko <[email protected]> wrote:
>> in NETCONF server draft [1] there is ietf-ssh-server model. It defines
>> feature "ssh-x509-certs" and then uses it twice in a
>> grouping. Referring to RFC 6020 [2] (I haven't noticed any difference
>> in the YANG 1.1 draft), in a grouping prefixes, type names, grouping
>> names, and extensions should be resolved in the context of the uses
>> that referenced this grouping. What about if-feature, where should
>> that be resolved?
>
> It is resolved locally (lexically).

The feature name is resolved in the context where a data node is
created.  Feature names are local to the module:

6.2.1

   o  All feature names defined in a module and its submodules share the
      same feature identifier namespace.

So the uses of the feature "ssh-x509-certs" in ietf-netconf-server and
ietf-ssh-server are different features.  It seems to me that the feature
must be declared in both modules, which it is, by separate declarations
in each module.  In principle you could put the feature statement in the
grouping statement, but the syntax doesn't allow that; a feature
statement has to be the child of a module or submodule statement.

Dale

_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to