Use modifiable List when resolving relative xpath
[yangtools.git] / yang / yang-model-util-ut / src / test / resources / leafrefs.yang
index c923c589a86dc521a2bd2a2948763ea92c8f2b4e..925af6b3aad69f4478a8b913c391c28bc347414f 100644 (file)
@@ -29,6 +29,12 @@ module leafrefs {
       }
     }
 
+    leaf indirect-with-current {
+      type leafref {
+        path "../../../n[n-id=current()/../node]/tp/tp-id";
+      }
+    }
+
     leaf absolute {
       type leafref {
         // direct path to an instantiation