Per Andersson <per.i...@ionio.se> writes: > Hi! > > I thought it was pretty neat to have stumbled upon a ready > made method for generating IANA YANG modules from > the IANA registry. > > However, I understand that it might not be suitable to have in > the draft. It was possible though for me as a YANG Doctor > reviewer to suggest changes in the generation though with > a patch. > > Is there some guidance documented anywhere on how to > generate the initial IANA YANG modules? I couldn't find > anything on the IETF Wiki.
In the draft phase of RFC 9108 we first had the initial version of iana-dns-class-rr-type module, pretty much along the lines of RFC 7224. But some people in the DNSOP ML objected (e. g. [1]) to having an RFC that seems up to date according to IETF rules but contains an obsolete revision of a YANG module. It's true that the purpose of such an RFC is only to give instructions to IANA how to generate future revisions of the module, and so some kind of a template for the YANG module would be better than just an example of the initial version. And XSLT looked like the best of the available template languages, also because IANA publishes their registries in the XML format, too. The template approach could also allow for keeping IANA completely out of the loop, which IMO would be helpful. For practical reasons, we had not attempted this for RFC 9108, but later I tried to make a repository of XSLT stylesheets for DNS-related IANA registries: https://github.com/llhotka/iana-yang (see also ML thread [2]). Preparing similar stylesheets for all IANA registries would be quite some work, but it could be approached on as-needed basis. Cheers, Lada [1] https://mailarchive.ietf.org/arch/msg/dnsop/TqRaEVlVnfgsqudeN3ydF8UOEIE/ [2] https://mailarchive.ietf.org/arch/msg/netmod/hxy7gKJ13yA0L_PYopb7usql870/ > > > -- > Per > > _______________________________________________ > netmod mailing list -- netmod@ietf.org > To unsubscribe send an email to netmod-le...@ietf.org -- Ladislav Lhotka <ladis...@lhotka.name> PGP Key ID: 0xB8F92B08A9F76C67 _______________________________________________ netmod mailing list -- netmod@ietf.org To unsubscribe send an email to netmod-le...@ietf.org