NetFlow and sFlow Configuration Guide on Cisco 8000 Series Routers, Cisco IOS XR Releases

PDF

NetFlow and sFlow Configuration Guide on Cisco 8000 Series Routers, Cisco IOS XR Releases

IOS XR YANG data models

Want to summarize with AI?

Log in

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:

  1. Enable a network management protocol to manage the router remotely using protocols such as NETCONF or gRPC.

  2. 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 ncclient library.

  3. 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.

  4. Retrieve the router capabilities to view the supported features and functionalities available on the router.

  5. Create or modify configurations using YANG data models to update the router's configuration.

  6. Apply the configuration by pushing the updated configuration via NETCONF or gRPC to modify the router's running configuration.

  7. 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.