cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
486
Views
0
Helpful
1
Replies

Custom RPC

k.rohini
Level 1
Level 1

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?

1 Accepted Solution

Accepted Solutions

saalvare
Cisco Employee
Cisco Employee

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.

View solution in original post

1 Reply 1

saalvare
Cisco Employee
Cisco Employee

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.