Data Types
YANG defines data types for leaf values. These data types help the user in understanding the relevant input
for a leaf.
DescriptionName
Any binary databinary
A set of bits or flagsbits
"true" or "false"boolean
64-bit signed decimal numberdecimal64
A leaf that does not have any valueempty
Enumerated stringsenumeration
A reference to an abstract identityidentityref
References a data tree nodeinstance-identifier
8-bit, 16-bit, 32-bit, 64-bit signed integersint (integer-defined values)
A reference to a leaf instanceleafref
8-bit, 16-bit, 32-bit, 64-bit unsigned intergersuint
Human-readable stringstring
Choice of member typesunion
Supported YANG models
The complete list of the supported IOSXR YANG models are:
https://github.com/YangModels/yang/tree/master/vendor/cisco/xr
Introduction to NETCONF
NETCONF provides mechanisms to install, manipulate, and delete the configuration of network devices. It
uses an Extensible Markup Language (XML)-based data encoding for the configuration data as well as the
protocol messages. NETCONF uses a simple RPC-based (Remote Procedure Call) mechanism to facilitate
communication between a client and a server. The client can be a script or application typically running as
part of a network manager. The server is typically a network device (router).
For more NETCONF details, refer RFC 6241.
Data Models Configuration Guide for Cisco NCS 1001
4
Data models
Data Types