Populate parser/ hierarchy
[yangtools.git] / parser / yang-parser-rfc7950 / src / test / resources / bugs / bug394 / bug394.yang
diff --git a/parser/yang-parser-rfc7950/src/test/resources/bugs/bug394/bug394.yang b/parser/yang-parser-rfc7950/src/test/resources/bugs/bug394/bug394.yang
new file mode 100644 (file)
index 0000000..470eba3
--- /dev/null
@@ -0,0 +1,44 @@
+module bug394 {
+    yang-version 1;
+    namespace "urn:test:bug394";
+    prefix "b394";
+
+    import bug394-ext {
+        prefix ext;
+        revision-date 2014-03-04;
+    }
+
+    revision "2014-03-04" {
+    }
+
+
+    container logrecords {
+        ext:info "Shows logrecords information";
+        ext:action show {
+
+            info "Shows the log records";
+            actionpoint logging-logrecord-show;
+
+            input {
+                leaf from {
+                    type yang:date-and-time;
+                    default 2000-01-01T00:00:00-00:00;
+                    description "Shows the log records from the given time";
+                }
+                leaf to {
+                    type yang:date-and-time;
+                    default 2099-01-01T00:00:00-00:00;
+                    description "Shows the log records up to the given time";
+                }
+            }
+            output {
+                leaf data {
+                    cli-drop-node-name;
+                    type string;
+                    description "Shows the log records according to the given input";
+                }
+            }
+        }
+    }
+
+}