Fixed yang grouping resolution.
[controller.git] / opendaylight / sal / yang-prototype / code-generator / yang-model-parser-impl / src / test / resources / model / testfile2.yang
index a4e5868c4f9e26f098c760ac74f2336b8abf4c60..d75fc6329679b65224aca76be6cd7b3db1931e11 100644 (file)
@@ -136,6 +136,36 @@ module types2 {
     }
     
     grouping target {
+        anyxml data {
+            config true;
+            description "Copy of the source datastore subset.";
+            mandatory false;
+            must "test-condition-text";
+            reference "test-no-reference";
+            status "obsolete";
+            when "test-when-text";
+        }
+        choice how {
+            description "test choice description";
+            default interval;
+            case interval {
+                leaf interval {
+                    type uint16;
+                    default 30;
+                    units minutes;
+                }
+            }
+            case daily {
+                leaf daily {
+                    type empty;
+                }
+                leaf time-of-day {
+                    type string;
+                    units 24-hour-clock;
+                    default 1am;
+                }
+            }
+        }
         leaf address {
             type string;
             description "Target IP address";
@@ -143,13 +173,21 @@ module types2 {
         container port {
             description "Target port container";
         }
-        
         list addresses {
             key "id";
             leaf id {
                 type int8;
             }
         }
+        grouping target-inner {
+            description "target-inner default description";
+            leaf inner-grouping-id {
+                type int8;
+            }
+        }
+        typedef group-type {
+            type my-decimal-type;
+        }
     }
 
     container peer {
@@ -183,6 +221,13 @@ module types2 {
                     min-elements 2;
                     max-elements 12;
                 }
+                refine target-inner {
+                    description "new target-inner grouping description";
+                }
+                refine group-type {
+                    description "new group-type description";
+                    reference "new group-type reference";
+                }
             }
         }
     }