Automation scripts using YANG RPCs
An automation script is a software tool that
-
interacts with network devices using standardized APIs such as NETCONF or gNMI,
-
executes remote procedure calls (RPCs) defined by YANG data models to retrieve or edit device configuration, and
-
enables automated, repeatable, and scalable management operations for network infrastructure.
To use automation scripts for remote management, you must establish an SSH session between the client (the script or application) and the network device (the server). For example, enabling the NETCONF SSH agent on a router requires these configuration commands:
-
ssh server v2 -
netconf agent tty
Once connected, the client sends one or more RPC requests such as get-config to retrieve device configuration or edit-config to modify it. The server processes each request and sends a response.
|
Feature Name |
Release Information |
Description |
|---|---|---|
|
Manage Automation Scripts Using YANG RPCs |
Release 7.3.2 |
This feature enables you to use remote procedure calls (RPCs) on YANG data models to perform the same automated operations as CLIs, such as edit configurations or retrieve router information. |
A Python script uses the NETCONF protocol to automatically update interface settings on multiple routers by sending edit-config RPCs. An automation tool retrieves system status from a network device using gNMI and YANG-defined telemetry models.
Feedback