05-26-2017 07:40 PM
1. I want to write a custom rpc for my module.. I am not able to understand where to write the code specific to the rpc..
2. Is it possible to execute the samples on a linux enviroment?
Solved! Go to Solution.
05-30-2017 02:11 AM
Regarding your first quesion, the executor service is used to excute 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
Thanks.
05-30-2017 02:11 AM
Regarding your first quesion, the executor service is used to excute 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
Thanks.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide