Bug 3224 - Parsing data with choice in case via augmentation results in
[mdsal.git] / code-generator / binding-test-model / src / main / yang / opendaylight-yangtools-augment-test.yang
index c26559b0714b081b92ea6828a19933c4d0e19d8e..04646fc83879c7ed25bc7259c51b58723c04fc45 100644 (file)
@@ -146,4 +146,38 @@ module opendaylight-yangtools-augment-test {
         }
     }
 
+    augment "/test:top" {
+        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 "/test:top/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;
+                    }
+                }
+            }
+        }
+    }
+
 }