跳到主要内容

1. 简介 (Introduction)

本节介绍 RFC 9890 的动机: [RFC6020] 为 YANG module 和 submodule 名称定义了 "YANG Module Names" 注册表, 但原有文字要求所有 module/submodule 名称在注册表中唯一, 与 IANA 对模块及其 revision 的实际注册方式不完全一致.

本文通过更新 [RFC6020] 第 14 节的指导, 使注册规则能够表达同一 YANG 模块的多个修订版本.

规范正文

1.  简介

[RFC6020] defines a registry for YANG module and submodule names,
called "YANG Module Names" [IANA-MOD-NAMES].

Specifically, IANA considerations to register YANG module and
submodule names are specified in Section 14 of [RFC6020]. These
considerations require that all module and submodule names in the
registry must be unique. However, the practice followed by IANA is
not consistent with that guidance.

This document amends the guidance on the uniqueness of names
(Section 14 of [RFC6020]) to comply with the IANA practices for
registering modules and their revisions.

对模块作者而言, 这意味着发布修订版时不应创建新的模块名称或 XML namespace, 而应把 revision 作为同一模块的演进记录.