Bug 2358 - Resources for tests nn to json
[controller.git] / opendaylight / md-sal / sal-rest-connector / src / test / resources / nn-to-json / leafref / cont-augment-module.yang
diff --git a/opendaylight/md-sal/sal-rest-connector/src/test/resources/nn-to-json/leafref/cont-augment-module.yang b/opendaylight/md-sal/sal-rest-connector/src/test/resources/nn-to-json/leafref/cont-augment-module.yang
new file mode 100644 (file)
index 0000000..528eb5e
--- /dev/null
@@ -0,0 +1,39 @@
+module cont-augment-module {
+  namespace "cont:augment:module";
+
+  prefix "cntaugmod";
+
+  import main-module {prefix mamo; revision-date 2013-12-2;}
+
+  revision 2013-12-2 {
+
+  }
+
+  augment "/mamo:cont" {
+       leaf-list lflst1 {
+               type leafref {
+                       path "../mamo:lf1";
+               }
+       }
+
+       leaf lf4 {
+               type leafref {
+                       path "../mamo:lf1";
+               }
+       }
+
+       /* reference to not leaf element */
+       leaf lf6 {
+               type leafref {
+                       path "../lflst1";
+               }
+       }
+
+       leaf lf7 {
+               type leafref {
+                       path "../lf4";
+               }
+       }
+  }
+  
+}
\ No newline at end of file