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