3 namespace "urn:simple.types.data.demo";
6 organization "opendaylight";
7 contact "http://www.opendaylight.org/";
9 description "This is types-data test description";
11 revision "2013-02-27" {
12 reference " WILL BE DEFINED LATER";
15 typedef my-base-int32-type {
22 type my-base-int32-type {
29 typedef my-custom-string {
36 typedef my-string-type {
37 type my-custom-string {
42 typedef my-string-type2 {
48 typedef my-string-type-ext {
49 type my-string-type2 {
60 typedef my-int-type2 {
66 typedef my-int-type-ext {
72 typedef my-decimal-type {
78 typedef my-decimal-type-ext {
93 typedef my-union-ext {
97 typedef nested-union1 {
101 typedef nested-union2 {
110 path "/interface/name";
118 leaf nested-type-leaf {
124 "Takes as argument a name string.
125 Makes the code generator use the given name in the
141 description "Copy of the source datastore subset.";
143 must "test-condition-text";
144 reference "test-no-reference";
146 when "test-when-text";
149 description "test choice description";
171 description "Target IP address";
174 description "Target port container";
182 grouping target-inner {
183 description "target-inner default description";
184 leaf inner-grouping-id {
189 type my-decimal-type;
194 container destination {
198 description "description of address defined by refine";
199 reference "address reference added by refine";
202 must "ifType != 'ethernet' or " +
203 "(ifType = 'ethernet' and ifMTU = 1500)" {
204 error-message "An ethernet MTU must be 1500";
208 must "must-condition" {
209 error-message "An error message test";
210 error-app-tag "An error app tag test";
212 description "description of port defined by refine";
213 reference "port reference added by refine";
215 presence "presence is required";
218 description "description of addresses defined by refine";
219 reference "addresses reference added by refine";
224 refine target-inner {
225 description "new target-inner grouping description";
228 description "new group-type description";
229 reference "new group-type reference";
235 container interfaces {