Pick up byte-buddy from yangtools
[mdsal.git] / binding / mdsal-binding-java-api-generator / src / test / resources / compilation / bug5882 / foo.yang
1 module foo {
2     namespace "urn:yang.foo";
3     prefix "foo";
4
5     revision "2016-01-02" {
6     }
7
8     typedef typedef1 {
9         type typedef-deprecated;
10         description "current";
11     }
12
13     typedef typedef2 {
14         status deprecated;
15         type typedef1;
16         description "deprecated";
17     }
18
19     typedef typedef3 {
20         type typedef2;
21         description "current";
22     }
23
24     typedef typedef-deprecated {
25         status deprecated;
26         type string;
27         description "deprecated";
28     }
29
30     typedef typedef-current {
31         status current;
32         type uint8 {
33             range "0 .. 100";
34         }
35         description "current";
36     }
37
38     container container-main {
39         leaf container-main-leaf-depr {
40             status deprecated;
41             type string;
42         }
43
44         leaf container-main-leaf-current {
45             type typedef-current;
46         }
47
48         list container-main-list-depr {
49             status deprecated;
50             key "test";
51             leaf test {
52                 type int8;
53             }
54         }
55
56         list container-main-list-current {
57             key "test";
58             leaf test {
59                 type int8;
60             }
61         }
62
63         choice container-main-choice-depr {
64             status deprecated;
65             case depCase {
66                 status deprecated;
67                 leaf dep-one {
68                     type string;
69                 }
70             }
71             case depLeaf {
72                 leaf depr-two {
73                     status deprecated;
74                     type string;
75                 }
76             }
77             case cur {
78                 leaf depr-three {
79                     type string;
80                 }
81             }
82         }
83
84         choice container-main-choice-cur {
85             case depCase {
86                 status deprecated;
87                 leaf cur-one {
88                     type string;
89                 }
90             }
91             case depLeaf {
92                 leaf cur-two {
93                     status deprecated;
94                     type string;
95                 }
96             }
97             case cur {
98                 leaf cur-three {
99                     type string;
100                 }
101             }
102         }
103     }
104
105     leaf container-main-leaf-depr {
106         status deprecated;
107         type string;
108     }
109
110     leaf container-main-leaf-current {
111         type typedef-current;
112     }
113
114     list container-main-list-depr {
115         status deprecated;
116         key "test";
117         leaf test {
118             type int8;
119         }
120     }
121
122     list container-main-list-current {
123         key "test";
124         leaf test {
125             type int8;
126         }
127     }
128
129     choice container-main-choice-depr {
130         status deprecated;
131         case depCase {
132             status deprecated;
133             leaf depr-one {
134                 type string;
135             }
136         }
137         case depLeaf {
138             leaf depr-two {
139                 status deprecated;
140                 type string;
141             }
142         }
143         case cur {
144             leaf depr-three {
145                 type string;
146             }
147         }
148     }
149
150     choice container-main-choice-cur {
151         case depCase {
152             status deprecated;
153             leaf cur-one {
154                 type string;
155             }
156         }
157         case depLeaf {
158             leaf cur-two {
159                 status deprecated;
160                 type string;
161             }
162         }
163         case cur {
164             leaf cur-three {
165                 type string;
166             }
167         }
168     }
169
170     leaf leaf-deprecated {
171         status deprecated;
172         type typedef-deprecated;
173     }
174
175     leaf leaf-current {
176         type typedef-current;
177     }
178
179     grouping grouping-deprecated {
180         status deprecated;
181         leaf leaf-deprecated {
182             status deprecated;
183             type typedef-deprecated;
184         }
185
186         leaf leaf-current {
187             type typedef-current;
188         }
189     }
190
191     grouping grouping-current {
192         leaf leaf-deprecated {
193             status deprecated;
194             type typedef-deprecated;
195         }
196
197         leaf leaf-current {
198             type typedef-current;
199         }
200     }
201 }