sonu gupta | 1bb37b8 | 2016-11-11 16:51:18 +0530 | [diff] [blame] | 1 | module Hello_ONOS { |
2 | yang-version 1; | ||||
3 | namespace "ydt:hello_onos"; | ||||
4 | prefix "hello"; | ||||
5 | |||||
6 | revision "2016-09-03" { | ||||
7 | description "Initial revision of hello model"; | ||||
8 | } | ||||
9 | |||||
10 | grouping greeting { | ||||
11 | leaf name { | ||||
12 | type string; | ||||
13 | } | ||||
14 | |||||
15 | leaf surName { | ||||
16 | type string; | ||||
17 | } | ||||
18 | } | ||||
19 | |||||
20 | rpc hello-world { | ||||
21 | input { | ||||
22 | |||||
23 | // uses greeting; | ||||
24 | |||||
25 | leaf name { | ||||
26 | type string; | ||||
27 | } | ||||
28 | |||||
29 | leaf surName { | ||||
30 | type string; | ||||
31 | } | ||||
32 | |||||
33 | leaf inputDefault { | ||||
34 | type string; | ||||
35 | } | ||||
36 | |||||
37 | list stringList { | ||||
38 | key "string1 string2"; | ||||
39 | unique "string3"; | ||||
40 | leaf string1 { | ||||
41 | type string; | ||||
42 | } | ||||
43 | leaf string2 { | ||||
44 | type string; | ||||
45 | } | ||||
46 | leaf string3 { | ||||
47 | type string; | ||||
48 | } | ||||
49 | } | ||||
50 | } | ||||
51 | output { | ||||
52 | leaf greetingOut { | ||||
53 | type string; | ||||
54 | } | ||||
55 | } | ||||
56 | } | ||||
57 | } |