blob: 1825b2dffbf1e35b20c40c049be399e103acd6b0 [file] [log] [blame]
surya-huawei5ccbac32017-07-27 12:24:18 +05301module 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 Condone6adc302017-08-24 15:01:42 +010023
24 rpc hello-second {
25 input {
26 leaf x {
Sean Condon701ca482017-08-27 19:10:28 +010027 type binary;
Sean Condone6adc302017-08-24 15:01:42 +010028 }
29 }
30
31 output {
32 leaf greeting {
Sean Condon701ca482017-08-27 19:10:28 +010033 type binary;
Sean Condone6adc302017-08-24 15:01:42 +010034 }
35 }
36 }
surya-huawei5ccbac32017-07-27 12:24:18 +053037}