Convert yang-data-impl to a JPMS module
[yangtools.git] / yang / yang-data-impl / src / test / resources / bug-5830 / foo-presence.yang
diff --git a/yang/yang-data-impl/src/test/resources/bug-5830/foo-presence.yang b/yang/yang-data-impl/src/test/resources/bug-5830/foo-presence.yang
new file mode 100644 (file)
index 0000000..af03827
--- /dev/null
@@ -0,0 +1,34 @@
+module foo-presence {
+    yang-version 1;
+    namespace "foo";
+    prefix foo;
+
+    revision 2016-05-17 {
+        description "test";
+    }
+
+    container task-container {
+        list task {
+            key "task-id";
+
+            leaf task-id {
+                type string;
+            }
+            leaf task-mandatory-leaf {
+                type string;
+                mandatory true;
+            }
+
+            container task-data {
+                presence "Task data";
+                leaf mandatory-data {
+                    type string;
+                    mandatory true;
+                }
+                leaf other-data {
+                    type string;
+                }
+            }
+        }
+    }
+}