Access data models
You can access the data models using one of these options:
Access data models from router
To access data models directly from the router, you can use these steps:
Procedure
|
Step 1 |
Enter the global configuration mode. Example:
|
|
Step 2 |
Configure the NETCONF network management protocol to remotely configure and manage the router using YANG data models. Example:
|
|
Step 3 |
Commit the configuration. Example:
|
|
Step 4 |
Establish a NETCONF session with the device and retrieve the capabilities information. Example:
By examining the capabilities, you can view the available data models for the software version installed on the router. |
Access data models from Cisco Feature Navigator
To access data models from Cisco Feature Navigator, you can use these steps:
Procedure
|
Step 1 |
Go to Cisco Feature Navigator. |
|
Step 2 |
If you have a Cisco.com account, click on the Login button and enter your credentials. If you don't have an account, you can click Continue as Guest . You will be directed to the Cisco Feature Navigator main page. |
|
Step 3 |
Click YANG Data Models . |
|
Step 4 |
Select the Product and Cisco IOS XR Release based on your requirement. The data models are listed based on type—Cisco XR native models, Unified models and OpenConfig models. You can use the search field to search for specific data model of interest. |
|
Step 5 |
Click the specific data model of interest to view more details. The data model is displayed in a hierarchical tree structure making it easier to navigate and understand the relationships between different YANG modules, containers, leaves and leaf lists. You can apply filters to further narrow down the data model definitions for the selected platform and release based on status such as deprecated, obsolete and unsupported nodes. You can also click the Download icon to export the data model information in Excel format.This visual tree form helps you get insights into the nodes that you can use to automate your network. The data models on Cisco Feature Navigator is regularly updated based on IOS XR release. If you encounter any problem or have suggestions for improvements, share your experience using Send us your feedback link. |
Access data models from GitHub
To access the data models from GitHub repository, you can use these steps:
Procedure
|
Step 1 |
Go to the GitHub repository for data models. On the repository page, you will find a list of folders based on IOS XR releases. |
|
Step 2 |
Navigate to the release folder of interest to view the list of supported data models and their definitions. For example, if
you want to access the data models for IOS XR release 7.10.1, click on the folder named Inside the folder, you will find a list of YANG files representing different data models. |
|
Step 3 |
Click on the YANG file you want to access to view its contents. You can also click on the Raw button to see the raw code or use the Download button to download the file to your computer. Each data model defines a complete and cohesive model, or augments an existing data model with additional XPaths. To view
a comprehensive list of the data models supported in a release, navigate to the Available-Content.md file in the repository. The unsupported sensor paths are documented as deviations. For example, |
|
Step 4 |
Repeat the above steps for other versions or data models of interest. The GitHub repository for IOS XR data models is regularly updated based on release. You can also contribute to the repository by submitting pull requests, opening issues if you encounter any problems or have suggestions for improvements. |
Feedback