| Khen Nursimulu | bf8bf28 | 2016-11-07 15:21:35 -0500 | [diff] [blame] | 1 | module basic-rpc { |
| 2 | namespace "urn:acme:yang:basic"; | ||||
| 3 | prefix "basic"; | ||||
| 4 | |||||
| 5 | leaf my-id { | ||||
| 6 | type uint8; | ||||
| 7 | } | ||||
| 8 | leaf my-name { | ||||
| 9 | type string; | ||||
| 10 | } | ||||
| 11 | leaf my-status { | ||||
| 12 | type boolean; | ||||
| 13 | config false; | ||||
| 14 | } | ||||
| 15 | |||||
| 16 | rpc do-something { | ||||
| 17 | input { | ||||
| 18 | leaf my-input { | ||||
| 19 | type string; | ||||
| 20 | } | ||||
| 21 | } | ||||
| 22 | output { | ||||
| 23 | leaf my-output { | ||||
| 24 | type string; | ||||
| 25 | } | ||||
| 26 | } | ||||
| 27 | } | ||||
| 28 | } | ||||