Bug 3224 - Parsing data with choice in case via augmentation results in
[yangtools.git] / yang / yang-data-impl / src / test / resources / org / opendaylight / yangtools / yang / data / impl / schema / augment_choice_hell.yang
index c2a57f667c657c1b5979ba0ae1fd08b70c2ff880..5c3e49f797ca6cf4d09d6c121032ab7a413a6a54 100644 (file)
@@ -105,5 +105,39 @@ module test {
         }
     }
 
+    augment "/container" {
+        /*ext:augment-identifier top-choice-augment1;*/
+        choice augment-choice1 {
+            case case1 {
+                container case1-container {
+                    leaf case1-leaf {
+                        type string;
+                    }
+                }
+            }
+
+            case case2 {
+                container case2-container {
+                    leaf case2-leaf {
+                        type string;
+                    }
+                }
+            }
+        }
+    }
+
+    augment "/container/augment-choice1/case1" {
+        /*ext:augment-identifier top-choice-augment2;*/
+        choice augment-choice2 {
+            case case11 {
+                container case11-choice-case-container {
+                    leaf case11-choice-case-leaf {
+                        type string;
+                    }
+                }
+            }
+        }
+    }
+
 
-}
\ No newline at end of file
+}