Alex, On Wed, 31 Jul 2024 at 23:37, Alexander L Clemm <ludwig= [email protected]> wrote:
> ... > >> As a thought, it might be useful to introduce a construct that will > allow to define > >> a _grouping_ after-the-fact, for later reuse. I.e., allow groupings to > be defined > >> in a way that the new grouping embeds an existing definition, then > simply make > >> use of that grouping. That would seem perhaps cleanest, able to > address many > >> of the use cases and have the additional advantage that the semantics > here will > >> be very clear since part of the exising YANG framework. > > There is still the augment issue from above, we have it in > draft-ietf-opsawg-collected-data-manifest when reusing ietf-yang-push which > augments ietf-subscribed-notifications. All these augments have to be > rewritten with paths corresponding to the new location of the uses. > <AC> I don't think that would be an issue, actually. Just declare > modular, fine grained groupings and use those. Of course, this is > somewhat a speculative discussion as YANG is what it is and does not > support this today. <WL> What does "this" refer to here? YANG _does_ "allow groupings to be defined in a way that the new grouping embeds an existing definition", doesn't it? https://datatracker.ietf.org/doc/html/rfc7950#section-11 : Any set of data definition nodes may be replaced with another set of syntactically and semantically equivalent nodes. For example, a set of leafs may be replaced by a "uses" statement of a grouping with the same leafs. </WL> Cheeers, William
_______________________________________________ netmod mailing list -- [email protected] To unsubscribe send an email to [email protected]
