RFC Errata
RFC 7950, "The YANG 1.1 Data Modeling Language", August 2016
Source of RFC: netmod (ops)
Errata ID: 6258
Status: Reported
Type: Technical
Publication Format(s) : TEXT
Reported By: Fred Gan
Date Reported: 2020-08-20
Section 5.6.5 says:
For example, with these modules: module a { yang-version 1.1; namespace "urn:example:a"; prefix "a"; import b { revision-date 2015-01-01; } import c; revision 2015-01-01;
It should say:
For example, with these modules: module a { yang-version 1.1; namespace "urn:example:a"; prefix "a"; import b { revision-date 2015-01-01; prefix b; } import c { prefix c; } revision 2015-01-01;
Notes:
As is considered in 7.1.5, The mandatory "prefix" substatement assigns a prefix for the imported module that is scoped to the importing module or submodule.
So, there should be a prefix substatement in the "import b" and "import c" statement respectively.