Resolve generated type for leafrefs targetting unions
[mdsal.git] / binding / mdsal-binding-generator-impl / src / test / resources / mdsal572.yang
1 module mdsal572 {
2   namespace "mdsal572";
3   prefix l;
4
5   grouping state-top {
6     leaf index {
7       type union {
8         type enumeration {
9           enum ALL;
10         }
11         type uint32;
12       }
13     }
14   }
15
16   grouping g {
17     list l {
18       container state {
19         uses state-top;
20       }
21       leaf index {
22         type leafref {
23           path "../state/index";
24         }
25       }
26     }
27   }
28
29   uses g;
30 }