surya-huawei | 5ccbac3 | 2017-07-27 12:24:18 +0530 | [diff] [blame] | 1 | module hello { |
2 | yang-version 1; | ||||
3 | namespace "urn:params:xml:ns:yang:hello"; | ||||
4 | prefix "hello"; | ||||
5 | |||||
6 | revision "2015-01-05" { | ||||
7 | description "Initial revision of hello model"; | ||||
8 | } | ||||
9 | |||||
10 | rpc hello-world { | ||||
11 | input { | ||||
12 | leaf x { | ||||
13 | type string; | ||||
14 | } | ||||
15 | } | ||||
16 | |||||
17 | output { | ||||
18 | leaf greeting { | ||||
19 | type string; | ||||
20 | } | ||||
21 | } | ||||
22 | } | ||||
Sean Condon | e6adc30 | 2017-08-24 15:01:42 +0100 | [diff] [blame] | 23 | |
24 | rpc hello-second { | ||||
25 | input { | ||||
26 | leaf x { | ||||
Sean Condon | 701ca48 | 2017-08-27 19:10:28 +0100 | [diff] [blame^] | 27 | type binary; |
Sean Condon | e6adc30 | 2017-08-24 15:01:42 +0100 | [diff] [blame] | 28 | } |
29 | } | ||||
30 | |||||
31 | output { | ||||
32 | leaf greeting { | ||||
Sean Condon | 701ca48 | 2017-08-27 19:10:28 +0100 | [diff] [blame^] | 33 | type binary; |
Sean Condon | e6adc30 | 2017-08-24 15:01:42 +0100 | [diff] [blame] | 34 | } |
35 | } | ||||
36 | } | ||||
surya-huawei | 5ccbac3 | 2017-07-27 12:24:18 +0530 | [diff] [blame] | 37 | } |