H Shiya,

> Consider a template that defines some interface data nodes using ietf 
> interfaces yang model. Leaf node “type” is a mandatory data node according to 
> RFC 8343.
>      +--rw interfaces
>         +--rw interface* [name]
>            +--rw name                        string
>            +--rw description?                string
>            +--rw type                        identityref
>  
> So even if you have defined the “type” of the interface in the templates, you 
> will be forced to set this at the reference point as well. Isn’t it?

Yes, the “type” leaf would have to be set, in <intended> after all templates 
have been fully expanded/flattened (disclaimer: this is my worldview)

Is your worldview that templates need to be validated when defined, even if not 
used?  (see https://github.com/netmod-wg/template-reqs/issues/4).  If this is 
your view, then your example makes more sense.

Kent




_______________________________________________
netmod mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to