Fix path namespace resolution
[mdsal.git] / binding / mdsal-binding-generator-impl / src / test / resources / mdsal-499 / child.yang
diff --git a/binding/mdsal-binding-generator-impl/src/test/resources/mdsal-499/child.yang b/binding/mdsal-binding-generator-impl/src/test/resources/mdsal-499/child.yang
new file mode 100644 (file)
index 0000000..4240bf4
--- /dev/null
@@ -0,0 +1,20 @@
+submodule child {
+  belongs-to parent {
+    prefix par;
+  }
+
+  import imported {
+    prefix imp;
+  }
+
+  container cont {
+    leaf leaf1 {
+      type leafref {
+        path "/imp:root/imp:leaf1";
+      }
+    }
+    leaf leaf2 {
+      type imp:foo;
+    }
+  }
+}