William Ivory <wiv...@brocade.com> wrote: > Hi, > > I'd appreciate clarification on whether a YANG grouping defined and > used in the same file must have the grouping definition first, before > the 'uses' statement. > > On the one hand, RFC 6020 section 7.11 states: 'Once a grouping is > defined, it can be referenced in a "uses" statement', suggesting a C / > C++ -style which doesn't allow forward references. > (https://tools.ietf.org/html/rfc6020#section-7.11) > > On the other hand, section 6.2 states 'Forward references are allowed > in YANG.' (https://tools.ietf.org/html/rfc6020#section-6.2). > > I am assuming that the second, more explicit, statement trumps the > first, but would appreciate confirmation.
Correct. YANG allows forward references to groupings. /martin _______________________________________________ netmod mailing list netmod@ietf.org https://www.ietf.org/mailman/listinfo/netmod