Replacing ":" by "_" for parameters
[ccsdk/sli/plugins.git] / restconf-client / provider / src / test / resources / yang / test_name_of_the_module.yang
1 module test_name_of_the_module {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:test:name";
4     prefix "name";
5
6     revision "2015-01-05" {
7         description "Initial revision of hello model";
8     }
9
10     container name_of_the_cont1 {
11         container name_of_the_cont2 {
12             container name_of_the_cont3 {
13                 leaf name_of_the_leaf10 {
14                     type string;
15                 }
16             }
17             list name_of_the_list1 {
18                 key "name_of_the_leaf1 name_of_the_leaf2";
19                 leaf name_of_the_leaf1 {
20                     type empty;
21                 }
22                 leaf name_of_the_leaf2 {
23                     type string;
24                 }
25                 leaf name_of_the_leaf3 {
26                     type string;
27                 }
28                 leaf-list name_of_the_ll1 {
29                     type string;
30                 }
31                 leaf-list name_of_the_ll2 {
32                     type string;
33                 }
34                 container name_of_the_cont4 {
35                     leaf name_of_the_leaf11 {
36                         type string;
37                     }
38                 }
39                 list name_of_the_list4 {
40                     leaf name_of_the_leaf8 {
41                         type string;
42                     }
43                 }
44                 list name_of_the_list5 {
45                     leaf name_of_the_leaf9 {
46                         type string;
47                     }
48                 }
49             }
50             list name_of_the_list2 {
51                 leaf name_of_the_leaf4 {
52                     type string;
53                 }
54             }
55             leaf name_of_the_leaf5 {
56                 type string;
57             }
58             leaf name_of_the_leaf6 {
59                 type string;
60             }
61             leaf-list name_of_the_ll3 {
62                 type string;
63             }
64             leaf-list name_of_the_ll4 {
65                 type string;
66             }
67         }
68     }
69
70     augment "/name_of_the_cont1/name_of_the_cont2" {
71         container name_of_the_cont4 {
72             leaf name_of_the_leaf10 {
73                type string;
74             }
75         }
76         list name_of_the_list6 {
77            leaf name_of_the_leaf11 {
78               type string;
79            }
80         }
81         leaf name_of_the_leaf12 {
82             type string;
83         }
84         leaf-list name_of_the_ll5 {
85             type string;
86         }
87     }
88
89     choice name_of_the_ch1 {
90         case name_of_the_c1 {
91             container name_of_the_cont8 {
92                 container name_of_the_cont6 {
93                     leaf name_of_the_leaf16 {
94                         type string;
95                     }
96                 }
97                 list name_of_the_list8 {
98                     leaf name_of_the_leaf18 {
99                         type string;
100                     }
101                 }
102                 leaf name_of_the_leaf19 {
103                     type string;
104                 }
105                 leaf-list name_of_the_ll7 {
106                     type string;
107                 }
108             }
109         }
110         case name_of_the_c2 {
111             container name_of_the_cont9 {
112                 leaf name_of_the_leaf20 {
113                     type string;
114                 }
115                 leaf-list name_of_the_ll8 {
116                     type string;
117                 }
118                 container name_of_the_cont11 {
119                     choice name_of_the_ch3 {
120                         case name_of_the_c1 {
121                             leaf name_of_the_leaf25 {
122                                 type string;
123                             }
124                             uses name_of_the_g1;
125                         }
126                     }
127                 }
128             }
129         }
130     }
131
132     grouping name_of_the_g1 {
133         container name_of_the_cont13 {
134             container name_of_the_cont12 {
135                 leaf name_of_the_leaf26 {
136                     type string;
137                 }
138             }
139             list name_of_the_list9 {
140                 leaf name_of_the_leaf27 {
141                     type string;
142                 }
143             }
144             leaf name_of_the_leaf28 {
145                 type string;
146             }
147             leaf-list name_of_the_ll9 {
148                 type string;
149             }
150         }
151     }
152
153     uses name_of_the_g1;
154
155     rpc name_of_the_create-sfc {
156         input {
157             container name_of_the_cont14 {
158                 leaf name_of_the_leaf28 {
159                     type string;
160                 }
161             }
162             list name_of_the_list10 {
163                 leaf name_of_the_leaf29 {
164                     type string;
165                 }
166             }
167             leaf name_of_the_leaf30 {
168                 type string;
169             }
170             leaf-list name_of_the_ll10 {
171                 type string;
172             }
173             choice name_of_the_ch3 {
174                 case name_of_the_c1 {
175                     container name_of_the_cont15 {
176                         leaf name_of_the_leaf31 {
177                             type string;
178                         }
179                     }
180                 }
181             }
182             uses name_of_the_g1;
183         }
184         output {
185             container name_of_the_cont16 {
186                 leaf name_of_the_leaf32 {
187                     type string;
188                 }
189             }
190             list name_of_the_list11 {
191                 leaf name_of_the_leaf33 {
192                     type string;
193                 }
194             }
195             leaf name_of_the_leaf34 {
196                 type string;
197             }
198             leaf-list name_of_the_ll11 {
199                 type string;
200             }
201             choice name_of_the_ch4 {
202                 case name_of_the_c1 {
203                     container name_of_the_cont17 {
204                         leaf name_of_the_leaf35 {
205                             type string;
206                         }
207                     }
208                 }
209             }
210             uses name_of_the_g1;
211         }
212     }
213
214     container name_of_the_cont18 {
215         container name_of_the_cont18 {
216             list name_of_the_list12 {
217                 list name_of_the_list12 {
218                     leaf name_of_the_leaf36 {
219                         type string;
220                     }
221                 }
222                 leaf name_of_the_leaf36 {
223                     type string;
224                 }
225             }
226         }
227         leaf name_of_the_leaf40 {
228             type string;
229         }
230     }
231 }