Merge branch 'master' of ../controller
[yangtools.git] / yang / yang-model-export / src / test / resources / schema-context-emitter-test / foo@2016-08-05.yin
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">
7     </extension>
8     <feature name="test-feature">
9         <status value="current"></status>
10         <description>
11             <text>test-feature description</text>
12         </description>
13         <reference>
14             <text>test-feature reference</text>
15         </reference>
16     </feature>
17     <identity name="test-identity">
18         <base name="test-base-identity"></base>
19         <status value="current"></status>
20         <description>
21             <text>test-identity description</text>
22         </description>
23         <reference>
24             <text>test-identity reference</text>
25         </reference>
26     </identity>
27     <identity name="test-base-identity">
28     </identity>
29     <typedef name="test-uint32-typedef">
30         <type name="uint32">
31             <range value="50..100">
32             </range>
33         </type>
34         <units name="seconds"></units>
35     </typedef>
36     <typedef name="test-int32-typedef">
37         <type name="int32">
38             <range value="50..100">
39             </range>
40         </type>
41     </typedef>
42     <typedef name="test-leafref-typedef">
43         <type name="leafref">
44             <path value="../leafref-target-leaf"></path>
45         </type>
46     </typedef>
47     <typedef name="test-iid-typedef">
48         <type name="instance-identifier">
49             <require-instance value="false"></require-instance>
50         </type>
51     </typedef>
52     <grouping name="test-grouping-1">
53         <leaf name="test-leaf-1">
54             <type name="string"></type>
55             <default value="def-val"></default>
56         </leaf>
57         <leaf-list name="test-leaf-list">
58             <type name="string"></type>
59             <config value="false"></config>
60             <ordered-by value="user"></ordered-by>
61         </leaf-list>
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>
67             </leaf>
68             <leaf name="key-leaf-2">
69                 <type name="string"></type>
70             </leaf>
71         </list>
72         <container name="test-container-2">
73             <config value="false"></config>
74         </container>
75     </grouping>
76     <grouping name="test-grouping-2">
77         <anyxml name="test-anyxml-2">
78             <config value="false"></config>
79         </anyxml>
80         <choice name="test-choice-2">
81             <config value="false"></config>
82             <case name="first">
83                 <leaf name="first-case-leaf">
84                     <type name="string">
85                         <length value="10..10 | 15">
86                         </length>
87                     </type>
88                 </leaf>
89             </case>
90             <case name="second">
91                 <leaf name="second-case-leaf">
92                     <type name="int32">
93                         <range value="10..10 | 15">
94                         </range>
95                     </type>
96                 </leaf>
97             </case>
98         </choice>
99     </grouping>
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>
104     </anyxml>
105     <leaf name="leafref-target-leaf">
106         <type name="string"></type>
107     </leaf>
108     <container name="test-container-1">
109         <must condition="bar != 'foo'"></must>
110     </container>
111     <container name="test-container-3">
112         <choice name="test-choice">
113             <case name="a">
114                 <leaf name="case-a-leaf">
115                     <type name="int32"></type>
116                 </leaf>
117             </case>
118             <case name="b">
119                 <leaf name="case-b-leaf">
120                     <type name="decimal64">
121                         <fraction-digits value="3"></fraction-digits>
122                     </type>
123                 </leaf>
124             </case>
125         </choice>
126         <leaf name="bits-leaf">
127             <type name="bits">
128                 <bit name="one">
129                     <position value="1"></position>
130                 </bit>
131                 <bit name="two">
132                     <position value="2"></position>
133                 </bit>
134             </type>
135         </leaf>
136         <leaf name="identityref-leaf">
137             <type name="identityref">
138                 <base name="test-base-identity"></base>
139             </type>
140         </leaf>
141     </container>
142     <augment target-node="/test-container-3/test-choice">
143         <case name="c">
144             <leaf name="case-c-leaf">
145                 <type name="string"></type>
146             </leaf>
147         </case>
148     </augment>
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>
153             </refine>
154             <refine target-node="test-leaf-list">
155                 <config value="false"></config>
156             </refine>
157             <refine target-node="test-leaf-1">
158                 <default value="def-val"></default>
159             </refine>
160             <refine target-node="test-container-2">
161                 <config value="false"></config>
162             </refine>
163             <augment target-node="test-container-2">
164                 <leaf name="test-leaf-2">
165                     <type name="string"></type>
166                 </leaf>
167             </augment>
168         </uses>
169     </augment>
170     <rpc name="test-rpc">
171         <grouping name="rpc-grouping">
172             <leaf name="rpc-grouping-leaf">
173                 <type name="string"></type>
174             </leaf>
175         </grouping>
176         <input>
177             <leaf name="input-leaf">
178                 <type name="string"></type>
179             </leaf>
180         </input>
181         <output>
182             <leaf name="output-leaf">
183                 <type name="string"></type>
184             </leaf>
185         </output>
186     </rpc>
187     <notification name="test-notification">
188         <uses name="test-grouping-2">
189             <refine target-node="test-choice-2">
190                 <config value="false"></config>
191             </refine>
192             <refine target-node="test-anyxml-2">
193                 <config value="false"></config>
194             </refine>
195         </uses>
196     </notification>
197 </module>