1 <module xmlns="urn:ietf:params:xml:ns:yang:yin:1" xmlns:foo-prefix="foo-namespace" name="foo">
2 <yang-version value="1"></yang-version>
3 <namespace uri="foo-namespace"></namespace>
4 <prefix value="foo-prefix"></prefix>
11 <revision date="2016-08-05"></revision>
12 <extension name="test-extension">
13 <status value="current"></status>
15 <feature name="test-feature">
16 <status value="current"></status>
18 <text>test-feature description</text>
21 <text>test-feature reference</text>
24 <identity name="test-identity">
25 <base name="test-base-identity"></base>
26 <status value="current"></status>
28 <text>test-identity description</text>
31 <text>test-identity reference</text>
34 <identity name="test-base-identity">
35 <status value="current"></status>
37 <typedef name="test-uint32-typedef">
39 <range value="50..100">
41 <value>The argument is out of bounds <50, 100></value>
43 <error-app-tag value="range-out-of-specified-bounds"></error-app-tag>
46 <units name="seconds"></units>
47 <status value="current"></status>
49 <typedef name="test-int32-typedef">
51 <range value="50..100">
53 <value>The argument is out of bounds <50, 100></value>
55 <error-app-tag value="range-out-of-specified-bounds"></error-app-tag>
58 <status value="current"></status>
60 <typedef name="test-leafref-typedef">
62 <path value="../leafref-target-leaf"></path>
64 <status value="current"></status>
66 <typedef name="test-iid-typedef">
67 <type name="instance-identifier">
68 <require-instance value="false"></require-instance>
70 <status value="current"></status>
72 <grouping name="test-grouping-1">
73 <status value="current"></status>
74 <leaf name="test-leaf-1">
75 <type name="string"></type>
76 <default value="def-val"></default>
77 <config value="true"></config>
78 <mandatory value="false"></mandatory>
79 <status value="current"></status>
81 <leaf-list name="test-leaf-list">
82 <type name="string"></type>
83 <config value="false"></config>
84 <min-elements value="0"></min-elements>
85 <max-elements value="2147483647"></max-elements>
86 <ordered-by value="user"></ordered-by>
87 <status value="current"></status>
89 <list name="test-list">
90 <key value="key-leaf-1 key-leaf-2"></key>
91 <config value="true"></config>
92 <min-elements value="5"></min-elements>
93 <max-elements value="2147483647"></max-elements>
94 <ordered-by value="system"></ordered-by>
95 <status value="current"></status>
96 <leaf name="key-leaf-1">
97 <type name="string"></type>
98 <config value="true"></config>
99 <mandatory value="false"></mandatory>
100 <status value="current"></status>
102 <leaf name="key-leaf-2">
103 <type name="string"></type>
104 <config value="true"></config>
105 <mandatory value="false"></mandatory>
106 <status value="current"></status>
109 <container name="test-container-2">
110 <presence value="false"></presence>
111 <config value="false"></config>
112 <status value="current"></status>
115 <grouping name="test-grouping-2">
116 <status value="current"></status>
117 <anyxml name="test-anyxml-2">
118 <config value="false"></config>
119 <mandatory value="false"></mandatory>
120 <status value="current"></status>
122 <choice name="test-choice-2">
123 <config value="false"></config>
124 <mandatory value="false"></mandatory>
125 <status value="current"></status>
127 <status value="current"></status>
128 <leaf name="first-case-leaf">
130 <length value="10|15">
132 <value>The argument is out of bounds <10, 10></value>
134 <error-app-tag value="length-out-of-specified-bounds"></error-app-tag>
137 <config value="false"></config>
138 <mandatory value="false"></mandatory>
139 <status value="current"></status>
143 <status value="current"></status>
144 <leaf name="second-case-leaf">
146 <range value="10|15">
148 <value>The argument is out of bounds <10, 10></value>
150 <error-app-tag value="range-out-of-specified-bounds"></error-app-tag>
153 <config value="false"></config>
154 <mandatory value="false"></mandatory>
155 <status value="current"></status>
160 <anyxml name="test-anyxml">
161 <when condition="foo != 'bar'"></when>
162 <must condition="bar != 'foo'"></must>
163 <config value="true"></config>
164 <mandatory value="false"></mandatory>
165 <status value="current"></status>
166 <foo-prefix:test-extension></foo-prefix:test-extension>
168 <leaf name="leafref-target-leaf">
169 <type name="string"></type>
170 <config value="true"></config>
171 <mandatory value="false"></mandatory>
172 <status value="current"></status>
174 <container name="test-container-1">
175 <must condition="bar != 'foo'"></must>
176 <must condition="bar != 'foo'"></must>
177 <presence value="false"></presence>
178 <config value="true"></config>
179 <status value="current"></status>
181 <container name="test-container-3">
182 <presence value="false"></presence>
183 <config value="true"></config>
184 <status value="current"></status>
185 <choice name="test-choice">
186 <config value="true"></config>
187 <mandatory value="false"></mandatory>
188 <status value="current"></status>
190 <status value="current"></status>
191 <leaf name="case-a-leaf">
192 <type name="int32"></type>
193 <config value="true"></config>
194 <mandatory value="false"></mandatory>
195 <status value="current"></status>
199 <status value="current"></status>
200 <leaf name="case-b-leaf">
201 <type name="decimal64">
202 <fraction-digits value="3"></fraction-digits>
203 <range value="-9223372036854775.808..9223372036854775.807">
205 <value>The argument is out of bounds <-9223372036854775.808, 9223372036854775.807></value>
207 <error-app-tag value="range-out-of-specified-bounds"></error-app-tag>
209 <text>https://tools.ietf.org/html/rfc6020#section-9.3.4</text>
213 <config value="true"></config>
214 <mandatory value="false"></mandatory>
215 <status value="current"></status>
219 <leaf name="bits-leaf">
222 <position value="1"></position>
223 <status value="current"></status>
226 <position value="2"></position>
227 <status value="current"></status>
230 <config value="true"></config>
231 <mandatory value="false"></mandatory>
232 <status value="current"></status>
234 <leaf name="identityref-leaf">
235 <type name="identityref">
236 <base name="identityref"></base>
238 <config value="true"></config>
239 <mandatory value="false"></mandatory>
240 <status value="current"></status>
243 <augment target-node="/test-container-3/test-choice">
244 <status value="current"></status>
246 <status value="current"></status>
247 <leaf name="case-c-leaf">
248 <type name="string"></type>
249 <config value="true"></config>
250 <mandatory value="false"></mandatory>
251 <status value="current"></status>
255 <augment target-node="/test-container-1">
256 <status value="current"></status>
257 <uses name="test-grouping-1">
258 <refine target-node="test-list">
259 <config value="true"></config>
260 <min-elements value="5"></min-elements>
261 <max-elements value="2147483647"></max-elements>
263 <refine target-node="test-leaf-list">
264 <config value="false"></config>
265 <min-elements value="0"></min-elements>
266 <max-elements value="2147483647"></max-elements>
268 <refine target-node="test-leaf-1">
269 <default value="def-val"></default>
270 <config value="true"></config>
271 <mandatory value="false"></mandatory>
273 <refine target-node="test-container-2">
274 <presence value="false"></presence>
275 <config value="false"></config>
277 <augment target-node="test-container-2">
278 <status value="current"></status>
279 <leaf name="test-leaf-2">
280 <type name="string"></type>
281 <config value="true"></config>
282 <mandatory value="false"></mandatory>
283 <status value="current"></status>
288 <rpc name="test-rpc">
289 <status value="current"></status>
290 <grouping name="rpc-grouping">
291 <status value="current"></status>
292 <leaf name="rpc-grouping-leaf">
293 <type name="string"></type>
294 <config value="true"></config>
295 <mandatory value="false"></mandatory>
296 <status value="current"></status>
300 <leaf name="input-leaf">
301 <type name="string"></type>
302 <config value="true"></config>
303 <mandatory value="false"></mandatory>
304 <status value="current"></status>
308 <leaf name="output-leaf">
309 <type name="string"></type>
310 <config value="true"></config>
311 <mandatory value="false"></mandatory>
312 <status value="current"></status>
316 <notification name="test-notification">
317 <status value="current"></status>
318 <uses name="test-grouping-2">
319 <refine target-node="test-choice-2">
320 <config value="false"></config>
321 <mandatory value="false"></mandatory>
323 <refine target-node="test-anyxml-2">
324 <config value="false"></config>
325 <mandatory value="false"></mandatory>