- Want to write a custom rpc for a module.. Not able to understand where to write the code specific to the rpc..
- Is it possible to execute the samples on a linux environment.
Regarding your first question, the executor service is used to execute custom RPCs. See the documentation at:
http://ydk.cisco.com/py/docs/ydk.services.html#executorservice-provides-api-to-execute-rpcs
The RPCs must be defined in YANG. Cisco IOS XR supports a growing number of custom RPCs. You can find sample apps for the executor service at:
https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic/executor/models
Regarding the second question, we support Linux (debian and RPM-based). You can find the YDK installation instructions at:
http://ydk.cisco.com/py/docs/getting_started.html#linux
Once you install YDK, you can clone the YDK-Py samples repo and run the apps against any XR or OC compatible device:
https://github.com/CiscoDevNet/ydk-py-samples
Comments
0 comments
Please sign in to leave a comment.