Modified construction of built-in yang types.
[controller.git] / opendaylight / sal / yang-prototype / code-generator / yang-model-parser-impl / src / test / resources / model / testfile2.yang
index d75fc6329679b65224aca76be6cd7b3db1931e11..904c8e66fd2c3d8dd8ad9dc2f32588604ffc867f 100644 (file)
@@ -82,27 +82,27 @@ module types2 {
     }
 
     typedef my-union {
-       type union {
-               type int16 {
-                       range "1..100";
-               }
-               type int32;
-       }
+        type union {
+            type int16 {
+                range "1..100";
+            }
+            type int32;
+        }
     }
 
     typedef my-union-ext {
-       type my-union;
+        type my-union;
     }
 
     typedef nested-union1 {
-       type nested-union2;
+        type nested-union2;
     }
 
     typedef nested-union2 {
-       type union {
-               type my-union-ext;
-               type string;
-       }
+        type union {
+            type my-union-ext;
+            type string;
+        }
     }
 
     leaf if-name {
@@ -114,6 +114,12 @@ module types2 {
     leaf name {
         type string;
     }
+    
+    leaf count {
+        type int8 {
+            range "1..10";
+        }
+    }
      
     leaf nested-type-leaf {
         type my-type1;
@@ -205,10 +211,6 @@ module types2 {
                     }
                 }
                 refine port {
-                    must "must-condition" {
-                        error-message "An error message test";
-                        error-app-tag "An error app tag test";
-                    }
                     description "description of port defined by refine";
                     reference "port reference added by refine";
                     config false;