prefix "aaa-locald-cfg";
/*** LINKAGE (IMPORTS / INCLUDES) ***/
import Cisco-IOS-XR-types { prefix "xr"; }
import Cisco-IOS-XR-aaa-lib-cfg { prefix "a1"; }
/*** META INFORMATION ***/
organization "Cisco Systems, Inc.";
.........................
......................... (truncated)
This is the operational YANG model for AAA (denoted by -oper)
(snippet)
module Cisco-IOS-XR-aaa-locald-oper {
/*** NAMESPACE / PREFIX DEFINITION ***/
namespace "http://cisco.com/ns/yang/Cisco-IOS-XR-aaa-locald-oper";
prefix "aaa-locald-oper";
/*** LINKAGE (IMPORTS / INCLUDES) ***/
import Cisco-IOS-XR-types { prefix "xr"; }
include Cisco-IOS-XR-aaa-locald-oper-sub1 {
revision-date 2015-01-07;
}
/*** META INFORMATION ***/
organization "Cisco Systems, Inc.";
........................
........................ (truncated)
A module may include any number of sub-modules, but each sub-module may belong to only one module.
The names of all standard modules and sub-modules must be unique.
Note
Structure of YANG models
YANG data models can be represented in a hierarchical, tree-based structure with nodes, which makes them
more easily understandable. YANG defines four nodes types. Each node has a name, and depending on the
node type, the node might either define a value or contain a set of child nodes. The nodes types (for data
modeling) are:
•
leaf node - contains a single value of a specific type
•
list node - contains a sequence of list entries, each of which is uniquely identified by one or more key
leafs
•
leaf-list node - contains a sequence of leaf nodes
•
container node - contains a grouping of related nodes containing only child nodes, which can be any of
the four node types
Data Models Configuration Guide for Cisco NCS 1001
3
Data models
Structure of YANG models