Obtain Data Models for Install Operation
You can use YANG data models to install and upgrade XR7 software. The data models are packaged with the release image in the /pkg/yang directory.
The models are in the .yang
format. Each data model can be identified as one of the following functionalities:
-
-oper
in the model name indicates an operational model. For example,Cisco-IOS-XR-install-oper.yang
andCisco-IOS-XR-install-augmented-oper.yang
are operational models for the install operation. -
-cfg
indicates a configuration model. For example,Cisco-IOS-XR-install-cfg.yang
is a configuration model for the install operation. -
-act
indicates an action model. For example,Cisco-IOS-XR-install-augmented-act.yang
andCisco-IOS-XR-install-act.yang
are action models for the install operation.
Procedure
Step 1 |
View the install-related data models on the router. You can also access the supported data models to install Cisco IOS XR software from the Github repository. Example:
The following table describes the function of the install-related data models:
|
||||||||||||||||||
Step 2 |
Use a manageability agent like NETCONF or gRPC to connect and communicate with the router. You can send Remote Procedure Calls (RPC) requests to configure or retrieve operational data from the router. The router processes the request and responds to the request through an RPC response. You use the RPCs to send requests to install the software by populating the relevant container and leaf in the data model. For more information about understanding the data model structure and using data models, see the Programmability Configuration Guide for Cisco NCS 5500 Series Routers. |