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 |
Enables Unified Models (UMs) only. Excludes OpenConfig (OC) models. |
|
UM-preferred-plus |
Enables UMs and includes all supported OC models. |
|
XR-only |
Enables only IOS XR native models, excluding UM and OC models |
|
all |
Enables the full range of available models, including IOS XR native, UM, and OC models. |
Command Default
None
Command Modes
Global Configuration mode
Command History
| Release | Modification |
|---|---|
|
Release 7.0.1 |
This command was introduced. |
|
Release 25.1.1 |
The UM-preferred-plus and all keywords were 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
Feedback