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 "Target IP address";
144 description "Target port container";
156 container destination {
160 description "description of address defined by refine";
161 reference "address reference added by refine";
164 must "ifType != 'ethernet' or " +
165 "(ifType = 'ethernet' and ifMTU = 1500)" {
166 error-message "An ethernet MTU must be 1500";
170 must "must-condition" {
171 error-message "An error message test";
172 error-app-tag "An error app tag test";
174 description "description of port defined by refine";
175 reference "port reference added by refine";
177 presence "presence is required";
180 description "description of addresses defined by refine";
181 reference "addresses reference added by refine";
190 container interfaces {