Data models
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.";
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 {
}
/*** META INFORMATION ***/
organization "Cisco Systems, Inc.";
A module may include any number of sub-modules, but each sub-module may belong to only one module.
Note
The names of all standard modules and sub-modules must be unique.
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
• 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
.........................
......................... (truncated)
revision-date 2015-01-07;
........................
........................ (truncated)
leafs
the four node types
Data Models Configuration Guide for Cisco NCS 1001
Structure of YANG models
3