Tolerate unresolvable leafrefs in groupings
[mdsal.git] / binding / mdsal-binding-generator-impl / src / test / resources / mdsal-182 / grouping-leafref.yang
diff --git a/binding/mdsal-binding-generator-impl/src/test/resources/mdsal-182/grouping-leafref.yang b/binding/mdsal-binding-generator-impl/src/test/resources/mdsal-182/grouping-leafref.yang
new file mode 100644 (file)
index 0000000..1bed584
--- /dev/null
@@ -0,0 +1,26 @@
+module grouping-leafref {
+
+  namespace "odl:test:leafref:grouping";
+  prefix "gl";
+  revision 2016-07-01;
+
+  leaf target-leaf {
+    type string;
+  }
+
+  /* two levels with uses */
+  grouping leafref-grouping {
+    leaf my-leafref {
+      type leafref {
+        path "../../../target-leaf";
+      }
+    }
+  }
+
+  container outer-container {
+    container inner-container {
+      uses leafref-grouping;
+    }
+  }
+
+}