Split Restconf implementations (draft02 and RFC) - Prepare modules
[netconf.git] / restconf / restconf-nb-bierman02 / src / test / resources / restconf / parser / list-test.yang
diff --git a/restconf/restconf-nb-bierman02/src/test/resources/restconf/parser/list-test.yang b/restconf/restconf-nb-bierman02/src/test/resources/restconf/parser/list-test.yang
new file mode 100644 (file)
index 0000000..981e6fe
--- /dev/null
@@ -0,0 +1,39 @@
+module list-test {
+  namespace "list:test";
+  prefix "listt";
+
+  revision 2016-04-29 {
+    description
+      "Initial revision.";
+  }
+
+    container top {
+       list list1 {
+           key "key1 key2 key3";
+           leaf key1 {
+               type string;
+           }
+           leaf key2 {
+               type string;
+           }
+           leaf key3 {
+               type string;
+           }
+           list list2 {
+                key "key4 key5";
+                leaf key4 {
+                   type string;
+                }
+                leaf key5 {
+                   type string;
+                }
+                leaf result {
+                    type string;
+                }
+           }
+        }
+        leaf-list Y {
+          type uint32;
+        }
+    }
+}
\ No newline at end of file