netmod-wg / yang-next

Feature requests for future versions of YANG
6 stars 0 forks source link

Allow identities to be active even when module is not implemented #123

Open kwatsen opened 11 months ago

kwatsen commented 11 months ago

Currently a module has to be implemented in order for its identities to be active. Why is this so?

If the module also implements protocol-accessible nodes, but those nodes are unwanted, if-feature statements are needed to disable the protocol-accessible nodes.

This leads to weirdness whereby the general rule of "implement a module to enable protocol-accessible nodes" doesn't hold true universally.

abierman commented 3 months ago

where does it say this requirement.

Consider iana-if-type. It is not imported into ietf-interfaces. Is may not be imported anywhere. Is this module implemented by the server?

This module is clearly not intended to imply any conformance requirements. It is simply a way to collect interface type identities.

Better conformance specifications for identities is needed

abierman commented 2 months ago

This is a duplicate issue of #107

There is no concept of an identity being "active" within a YANG module. It is simply an abstract code-point value in the module namespace.

kwatsen commented 1 month ago

I think tooling makes the assumption.

I'm looking for a clarification that eliminates guessing.

kwatsen commented 1 month ago

Andy: SHOULD if-feature be used on each identity Rob: see Section 9.10.2 (definition of identity-ref)

9.10.2 from 7950:

   Valid values for an identityref are any identities derived from all
   the identityref's base identities.  On a particular server, the valid
   values are further restricted to the set of identities defined in the
   modules implemented by the server.

Andy: above text needs to be update Rob: just mark as "implemented" not import-only Kent: what about feature conformance?

Andy: client want to know: 1) what does the server support 2) which must be supported