Tolerate unresolvable leafrefs in groupings
[mdsal.git] / binding / mdsal-binding-generator-impl / src / test / resources / mdsal-182 / good-leafref.yang
1 module good-leafref {
2
3   namespace "odl:test:leafref:good";
4   prefix "gl";
5   revision 2016-07-01;
6
7   leaf target-leaf {
8     type string;
9   }
10
11   /* one level without uses */
12   container direct-container {
13     leaf direct-leafref {
14       type leafref {
15         path "../../target-leaf";
16       }
17     }
18   }
19
20   /* one level with uses */
21   grouping leafref-grouping {
22     leaf grouping-leafref {
23       type leafref {
24         path "../../target-leaf";
25       }
26     }
27   }
28
29   container grouping-container {
30     uses leafref-grouping;
31   }
32
33   /* two levels without uses */
34   container outer-container {
35     container inner-container {
36       leaf my-leafref {
37         type leafref {
38           path "../../../target-leaf";
39         }
40       }
41     }
42   }
43
44 }