DevNet Associate DEVASC 200-901 Official Certification Guide by Adrian Iliesiu (z-lib.org)

(andrew) #1

There are several components that go into building the
YANG data model, as shown in Figure 12-3.


Figure 12-3 YANG Module Components


The YANG header contains the namespace for the
module. The namespace is used to uniquely identify each
module on a system that implements NETCONF. Next,
the prefix is used as short notation for the module, so
that it can be more easily referenced, if needed. The
namespace and prefix statements in YANG have exactly
the same role as in XML documents. (Keep in mind that
YANG is an XML schema definition language.) The
header also includes identifying information such as the
name of the organization that created the module,
contact information, a short description, and revision
information. Revision information is particularly of
interest; as the model evolves, the revision information
will change. This way, a user can distinguish between
different versions of the data model.


A section of imports and includes follows the header. In
this section of the module, information contained in

Free download pdf