YANG Commands

This module outlines the commands necessary to utilize the YANG server module configuration protocol, which defines network operations using data models.

For detailed information about YANG data model concepts, configuration tasks, and examples, see the Drive Network Automation Using Programmable YANG Data Modelsin the Cisco 8000 Series Router module in the Programmability Configuration Guide for Cisco 8000 Series Routers.

yang-server module-set

To enable a certain set of YANG models, use the yang-server module-set command in the Global Configuration mode.

yang-server module-set

Syntax Description

UM-preferred

This set uses applicable unified models.

XR-only

This set uses native models.

Command Default

None

Command Modes

Global Configuration mode

Command History

Release Modification

Release 5.3.1

This command was introduced.

Usage Guidelines

The yang-server module-set command is applied to only config models. When this command is configured, all externally defined YANG models, including OpenConfig models, are disabled.

Task ID

Task ID Operation

config-services

read, write

Examples

This command shows how to use the yang-server module-set command:

Router# config
Router(config)# yang-server module-set XR-only
Router# end