Merge "HostTracker StaticHost changes"
[controller.git] / opendaylight / sal / yang-prototype / code-generator / yang-model-parser-impl / src / test / resources / model / testfile1.yang
index 2f4355390bf65dc4b66cab51fb04ee45cf4ac06b..f6bc34d1b609eea9c9616d7f3e2585a0b757a098 100644 (file)
@@ -22,7 +22,7 @@ module types1 {
 
     leaf testleaf {
         type data:my-type1 {
-            range "min..max";
+            range "12..max";
         }
     }
 
@@ -31,9 +31,9 @@ module types1 {
     }
 
     leaf leaf-with-length {
-       type data:my-string-type {
-               length "7..max";
-       }
+        type data:my-string-type {
+            length "7..max";
+        }
     }
 
     leaf test-int-leaf {
@@ -55,7 +55,7 @@ module types1 {
     }
 
     leaf union-leaf {
-       type data:my-union-ext;
+        type data:my-union-ext;
     }
 
     deviation /data:system/data:user {
@@ -66,7 +66,7 @@ module types1 {
     }
 
     leaf nested-union-leaf {
-       type data:nested-union1;
+        type data:nested-union1;
     }
 
     leaf custom-union-leaf {
@@ -113,6 +113,33 @@ module types1 {
         leaf ds0ChannelNumber {
             type string;
         }
+        leaf interface-id {
+            type leafref {
+                path "/if:interfaces/if:interface/if:name";
+            }
+        }
+        leaf-list higher-layer-if {
+            type leafref {
+                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;
+            }
+        }
+    }
+    
 }