# Use of rpc in yang

**URL:** https://dmap-community.ductus.global/t/use-of-rpc-in-yang/652
**Category:** YANG
**Created:** [August 26, 2016, 11:53am UTC](https://dmap-community.ductus.global/t/use-of-rpc-in-yang/652 "2016-08-26T11:53:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jay.ganatra](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@jay.ganatra](https://dmap-community.ductus.global/u/jay.ganatra)
#### Post date: [August 26, 2016, 11:53am UTC](https://dmap-community.ductus.global/t/use-of-rpc-in-yang/652/1 "2016-08-26T11:53:11Z")

</div>

I am new to yang. So any one can explain the use of the rpc ?means in which context i would go for the rpc rather than simple configuration data. leaf ?

---

<div class="post-metadata">

### Author: ![jjohansson](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@jjohansson](https://dmap-community.ductus.global/u/jjohansson)
#### Post date: [August 26, 2016, 1:02pm UTC](https://dmap-community.ductus.global/t/use-of-rpc-in-yang/652/2 "2016-08-26T13:02:48Z")

</div>

You should almost alway use simple data leafs. RPCs are sometimes used for administrative actions with input and output parameters. Custom RPCs may be great in the correct situation and when used with judicious care. However, custom RPCs can cause big interoperability issues with NETCONF clients if done wrong.
