Added support to generate interfaces from Choices and Cases.
[controller.git] / opendaylight / sal / yang-prototype / code-generator / yang-model-parser-impl / src / test / resources / model / testfile1.yang
index 619a5c3e104a1ecd3dcc331ee235a3647cd47ebd..bd8f378ee17b392bb8c7d32764ff992880c6511e 100644 (file)
@@ -22,7 +22,7 @@ module types1 {
 
     leaf testleaf {
         type data:my-type1 {
-            range "min..max";
+            range "12..max";
         }
     }
 
@@ -76,6 +76,13 @@ module types1 {
     container transfer {
         choice how {
             default interval;
+            container input {
+            }
+            list output {
+                leaf id {
+                    type string;
+                }
+            }
             case interval {
                 leaf interval {
                     type uint16;
@@ -123,6 +130,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;
+            }
+        }
+    }
+    
 }