Which statement is used to associate a submodule and a parent module in a YANG data model?

Which statement is used to associate a submodule and a parent module in a YANG data model?
A. import
B. namespace
C. include
D. belongs-to

cisco-exams

One thought on “Which statement is used to associate a submodule and a parent module in a YANG data model?

  1. D
    Submodules allow a module designer to split a complex model into several pieces where all the submodules contribute to a single namespace, which is defined by the module that includes the submodules. The “submodule” statement defines the submodule’s name, and groups all statements that belong to the submodule together. The “belongs-to” statement specifies the module to which the submodule belongs.

    The “include” statement is used to make content from a submodule available to that submodule’s parent module, or to another submodule of that parent module. A module may include any number of submodules, but each submodule may belong to only one module. When a module includes a submodule, it incorporates the contents of the submodule into the node hierarchy of the module.

    In this short example the module top includes two sub modules, and instantiates the groupings defined by the submodules.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.