跳到主要内容

3.2. 已发布模块的修订 (Revisions of Published Modules)

本节说明已发布 YANG 模块的后续修订如何在 IANA 注册表中处理. 核心变化是: 初始版本的 module/submodule 名称和 XML namespace 仍必须唯一, 但后续修订会沿用初始版本的名称和 namespace, 以便注册表能表达同一模块随时间演进的多个 revision.

下面的 OLD/NEW 文本是 RFC 对注册规则的精确修改, 因此保留原文格式和规范性关键词.

规范正文

3.2.  已发布模块的修订

This document amends the guidance on the uniqueness of names,
initially defined in Section 14 of [RFC6020], as follows:

OLD:

| All module and submodule names in the registry MUST be unique.
|
| All XML namespaces in the registry MUST be unique.

NEW:

| Modules and their revisions are maintained in the registry.
|
| All initial version module and submodule names in the registry
| MUST be unique.
|
| All XML namespaces of initial version modules in the registry MUST
| be unique.
|
| All module and submodule revisions MUST have the same name as the
| one in the initial version of the module and submodule.
|
| All module revisions MUST have the same XML namespace as the
| initial version of the module.

这一调整使注册表实践与 YANG 模块实际发布方式保持一致: 修订代表同一模块的新版本, 而不是新的模块名称空间.