Explains the IOS XR YANG data models that enable programmatic management and remote configuration of network devices.
A IOS XR YANG data model is a configuration framework that
-
enables programmatic management of network devices,
-
supports remote configuration using protocols such as NETCONF or gRPC, and
-
allows automation and validation of device configurations.
Key attributes and configuration steps for IOS XR YANG data models
Describes the IOS XR YANG data models, their key attributes, and the steps to programmatically configure a router using these models.
IOS XR YANG data models provide a network configuration framework that:
-
enables programmatic management of network devices,
-
supports remote configuration using protocols such as NETCONF or gRPC, and
-
allows automation and validation of device configurations.
To programmatically configure your router using IOS XR YANG data models, follow these steps:
-
Enable a network management protocol to manage the router remotely using protocols such as NETCONF or gRPC.
-
Install the necessary libraries and tools. Depending on the programming language, you may need to install libraries or tools to interact with the router. For example, if you use Python, install the
ncclientlibrary. -
Establish a session with the router using your chosen programming language and protocol (NETCONF or gRPC). Provide connection parameters such as device IP address, username, password, and port number.
-
Retrieve the router capabilities to view the supported features and functionalities available on the router.
-
Create or modify configurations using YANG data models to update the router's configuration.
-
Apply the configuration by pushing the updated configuration via NETCONF or gRPC to modify the router's running configuration.
-
Validate the configuration by verifying that the changes are successfully applied. Retrieve the running configuration or specific parameters to ensure the device is configured as intended.
For detailed instructions about using the data models, refer to the Programmability Configuration Guide for Cisco 8000 Series Routers.