Merge "Added check for mandatory nodes if augment target is in another module."
[yangtools.git] / yang / yang-parser-impl / src / test / resources / negative-scenario / testfile7.yang
diff --git a/yang/yang-parser-impl/src/test/resources/negative-scenario/testfile7.yang b/yang/yang-parser-impl/src/test/resources/negative-scenario/testfile7.yang
new file mode 100644 (file)
index 0000000..17dddeb
--- /dev/null
@@ -0,0 +1,26 @@
+module testfile7 {
+    yang-version 1;
+    namespace "urn:simple.test7.demo";
+    prefix "t7";
+
+    import testfile8 {
+        prefix "t8";
+        revision-date 2013-08-03;
+    }
+
+    organization "opendaylight";
+    contact "http://www.opendaylight.org/";
+
+    revision "2013-08-03" {
+        reference " WILL BE DEFINED LATER";
+    }
+
+    augment "/t8:interfaces/t8:ifEntry" {
+        when "if:leafType='ds1'";
+        leaf linkleaf {
+            mandatory true;
+            type binary;
+        }
+    }
+
+}