YANG models not only define configuration and operational data. They also define remote procedure calls or commands. Cisco IOS XR 6.1.2 starts introducing models for those RPCs or commands. Those models define how to roll back config, test SNMP traps or generate custom syslog messages. An RPC model specifies whether the RPC takes input data and whether it produces output data.
In YDK 0.5.1, we introduced the Executor service which allows you to execute RPCs. This service supports a single operation (execute_rpc) and is currently documented at:
http://ydk.cisco.com/py/docs/ydk.services.html#executorservice-provides-api-to-execute-rpcs
Watch the ydk-py-samples repository for a series of upcoming sample apps that execute RPCs. Stay tuned!
Comments
0 comments
Please sign in to leave a comment.