MDSAL-361: Deal with restricted types in unions
[mdsal.git] / binding / mdsal-binding-generator-impl / src / test / resources / mdsal361.yang
1 module mdsal361 {
2
3     namespace "yang:test:mdsal361";
4     prefix m;
5
6     revision 2018-09-13 {
7     }
8
9     typedef pce-id {
10         type union {
11             type binary {
12                 length 4;
13             }
14             type binary {
15                 length 16;
16             }
17         }
18     }
19
20     typedef pce-id-2 {
21         type union {
22             type enumeration {
23                 enum a;
24             }
25
26             type enumeration {
27                 enum b;
28             }
29         }
30     }
31
32 }