Subject: [yang-doctors] Question about when to create IANA-maintained models

From: Jensen Zhang <[email-masked]>
Date: Tue, 22 Mar 2022 15:31:03 +0800

Hi YANG doctors,

We are working on an I-D [1] that requires enumeration typedefs for some
IANA registries. We notice that some modules [2] self-contain identities
and typedefs for IANA registries, but some other modules [3] create
separated `iana-xxx-types.yang` modules.

We wonder what is the best practice on when to create IANA-maintained YANG
models. Could anyone give us any guidance?

[1] https://github.com/openalto/draft-alto-oam-yang/issues/1
[2]
https://github.com/YangModels/yang/blob/main/experimental/ietf-extracted-YANG-modules/ietf-ospf-srv6%402018-10-11.yang
[3]
https://github.com/YangModels/yang/blob/main/standard/ietf/RFC/iana-routing-types%402018-10-29.yang

Thanks,
Jensen