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";
124 leaf nested-type-leaf {
130 "Takes as argument a name string.
131 Makes the code generator use the given name in the
147 description "Copy of the source datastore subset.";
149 must "test-condition-text";
150 reference "test-no-reference";
152 when "test-when-text";
155 description "test choice description";
177 description "Target IP address";
180 description "Target port container";
188 grouping target-inner {
189 description "target-inner default description";
190 leaf inner-grouping-id {
195 type my-decimal-type;
202 container destination {
206 description "IP address of target node";
207 reference "address reference added by refine";
210 must "ifType != 'ethernet' or " +
211 "(ifType = 'ethernet' and ifMTU = 1500)" {
212 error-message "An ethernet MTU must be 1500";
216 description "description of port defined by refine";
217 reference "port reference added by refine";
219 presence "presence is required";
222 description "description of addresses defined by refine";
223 reference "addresses reference added by refine";
228 refine target-inner {
229 description "new target-inner grouping description";
232 description "new group-type description";
233 reference "new group-type reference";
239 container interfaces {