Bug 3104 - Sal Rest Connector: Data already exists for path when adding
[controller.git] / opendaylight / md-sal / sal-rest-connector / src / test / resources / instanceidentifier / yang / augment-module.yang
index 67b0086ee3d77ee976887d025cd575ad1b8aa146..c918ef98ad64ebb5773231a6312f8b8f2a4785f3 100644 (file)
@@ -1,13 +1,13 @@
 module augment-module {
-  namespace "augment:module";  
+  namespace "augment:module";
 
   prefix "amodule";
-  
+
   import instance-identifier-module {prefix imodule; revision-date 2014-01-17;}
-   
-  revision 2014-01-17 {    
+
+  revision 2014-01-17 {
   }
-  
+
        augment "/imodule:cont/imodule:cont1" {
           list lst11 {
               key "keyvalue111 keyvalue112";
@@ -17,7 +17,47 @@ module augment-module {
               leaf keyvalue112 {
                   type string;
               }
-          }       
+          }
+       }
+
+    augment "/imodule:cont" {
+           container cont-augment {
+            leaf leaf1 {
+                type string;
+            }
+        }
        }
-         
-}
\ No newline at end of file
+
+    augment "/imodule:cont" {
+        choice augment-choice1 {
+            case case1 {
+                container case-container1 {
+                    leaf case-leaf1 {
+                        type string;
+                    }
+                }
+            }
+
+            case case2 {
+                container case-container2 {
+                    leaf case-leaf2 {
+                        type string;
+                    }
+                }
+            }
+        }
+    }
+
+    augment "/imodule:cont/augment-choice1/case1" {
+        choice augment-choice2 {
+            case case11 {
+                container case-choice-case-container1 {
+                    leaf case-choice-case-leaf1 {
+                        type string;
+                    }
+                }
+            }
+        }
+    }
+
+}