Added validation of range and length constraints.
[controller.git] / opendaylight / sal / yang-prototype / code-generator / yang-model-parser-impl / src / test / resources / model / testfile1.yang
index 619a5c3e104a1ecd3dcc331ee235a3647cd47ebd..f6bc34d1b609eea9c9616d7f3e2585a0b757a098 100644 (file)
@@ -22,7 +22,7 @@ module types1 {
 
     leaf testleaf {
         type data:my-type1 {
-            range "min..max";
+            range "12..max";
         }
     }
 
@@ -123,6 +123,23 @@ module types1 {
                 path "/if:interfaces/if:interface/if:higher-layer-if";
             }
         }
+        leaf my-type {
+            type data:my-type1;
+        }
+        container schemas {
+        }
     }
-
+    
+    container mycont {
+        container innercont {
+            typedef mytype {
+                type string;
+            }
+        
+            leaf myleaf {
+                type mytype;
+            }
+        }
+    }
+    
 }