300-435 · Question #65
Which statement is used to associate a submodule and a parent module in a YANG data model?
The correct answer is C. include. In YANG data modeling, the include statement associates a submodule with its parent module, making the submodule's definitions accessible.
Question
Options
- Aimport
- Bnamespace
- Cinclude
- Dbelongs-to
How the community answered
(31 responses)- B3% (1)
- C90% (28)
- D6% (2)
Why each option
In YANG data modeling, the include statement associates a submodule with its parent module, making the submodule's definitions accessible.
The import statement in YANG is used by a module to refer to definitions (e.g., types, groupings, data nodes) from other independent modules, not directly to associate a submodule with its parent.
The namespace statement defines the XML namespace for the data model defined by the module, serving as a unique identifier, not for associating submodules with parent modules.
In YANG data modeling, the include statement is used within a parent module to incorporate definitions from a submodule. This action makes all type definitions, groupings, and data nodes defined in the submodule available for use within the parent module, establishing the association.
The belongs-to statement is used within a submodule to explicitly declare which top-level module it is a part of, rather than being the statement in the parent module that pulls in the submodule's definitions.
Concept tested: YANG data model submodule association
Source: https://www.rfc-editor.org/rfc/rfc7950#section-7.1.3
Topics
Community Discussion
No community discussion yet for this question.