1 <module xmlns="urn:ietf:params:xml:ns:yang:yin:1"
2 xmlns:foo-prefix="foo-namespace" name="foo">
3 <namespace uri="foo-namespace"></namespace>
4 <prefix value="foo-prefix"></prefix>
5 <revision date="2016-08-05"></revision>
6 <extension name="test-extension">
8 <feature name="test-feature">
9 <status value="current"></status>
11 <text>test-feature description</text>
14 <text>test-feature reference</text>
17 <identity name="test-identity">
18 <base name="test-base-identity"></base>
19 <status value="current"></status>
21 <text>test-identity description</text>
24 <text>test-identity reference</text>
27 <identity name="test-base-identity">
29 <typedef name="test-uint32-typedef">
31 <range value="50..100">
34 <units name="seconds"></units>
36 <typedef name="test-int32-typedef">
38 <range value="50..100">
42 <typedef name="test-leafref-typedef">
44 <path value="../leafref-target-leaf"></path>
47 <typedef name="test-iid-typedef">
48 <type name="instance-identifier">
49 <require-instance value="false"></require-instance>
52 <grouping name="test-grouping-1">
53 <leaf name="test-leaf-1">
54 <type name="string"></type>
55 <default value="def-val"></default>
57 <leaf-list name="test-leaf-list">
58 <type name="string"></type>
59 <config value="false"></config>
60 <ordered-by value="user"></ordered-by>
62 <list name="test-list">
63 <key value="key-leaf-1 key-leaf-2"></key>
64 <min-elements value="5"></min-elements>
65 <leaf name="key-leaf-1">
66 <type name="string"></type>
68 <leaf name="key-leaf-2">
69 <type name="string"></type>
72 <container name="test-container-2">
73 <config value="false"></config>
76 <grouping name="test-grouping-2">
77 <anyxml name="test-anyxml-2">
78 <config value="false"></config>
80 <choice name="test-choice-2">
81 <config value="false"></config>
83 <leaf name="first-case-leaf">
85 <length value="10..10 | 15">
91 <leaf name="second-case-leaf">
93 <range value="10..10 | 15">
100 <anyxml name="test-anyxml">
101 <when condition="foo != 'bar'"></when>
102 <must condition="bar != 'foo'"></must>
103 <foo-prefix:test-extension></foo-prefix:test-extension>
105 <leaf name="leafref-target-leaf">
106 <type name="string"></type>
108 <container name="test-container-1">
109 <must condition="bar != 'foo'"></must>
111 <container name="test-container-3">
112 <choice name="test-choice">
114 <leaf name="case-a-leaf">
115 <type name="int32"></type>
119 <leaf name="case-b-leaf">
120 <type name="decimal64">
121 <fraction-digits value="3"></fraction-digits>
126 <leaf name="bits-leaf">
129 <position value="1"></position>
132 <position value="2"></position>
136 <leaf name="identityref-leaf">
137 <type name="identityref">
138 <base name="test-base-identity"></base>
142 <augment target-node="/test-container-3/test-choice">
144 <leaf name="case-c-leaf">
145 <type name="string"></type>
149 <augment target-node="/test-container-1">
150 <uses name="test-grouping-1">
151 <refine target-node="test-list">
152 <min-elements value="5"></min-elements>
154 <refine target-node="test-leaf-list">
155 <config value="false"></config>
157 <refine target-node="test-leaf-1">
158 <default value="def-val"></default>
160 <refine target-node="test-container-2">
161 <config value="false"></config>
163 <augment target-node="test-container-2">
164 <leaf name="test-leaf-2">
165 <type name="string"></type>
170 <rpc name="test-rpc">
171 <grouping name="rpc-grouping">
172 <leaf name="rpc-grouping-leaf">
173 <type name="string"></type>
177 <leaf name="input-leaf">
178 <type name="string"></type>
182 <leaf name="output-leaf">
183 <type name="string"></type>
187 <notification name="test-notification">
188 <uses name="test-grouping-2">
189 <refine target-node="test-choice-2">
190 <config value="false"></config>
192 <refine target-node="test-anyxml-2">
193 <config value="false"></config>