152907871e349170059dedf4d95e7213f3da3002
[mdsal.git] / binding2 / mdsal-binding2-generator-impl / src / test / resources / generator / test-typedef.yang
1 module test {
2     yang-version 1;
3
4     namespace "urn:test:simple:test";
5     prefix test;
6     organization "test.org";
7     revision "2017-02-06";
8
9     typedef my-type {
10       type int8;
11     }
12
13     container *my-cont {
14       container my-inner-cont {
15         leaf my-leaf {
16           type string;
17         }
18
19         leaf my-leaf2 {
20           type my-type;
21         }
22       }
23     }
24
25     container my-union-cont {
26       leaf my-union-leaf {
27         type union {
28           type int8;
29           type int16;
30         }
31       }
32     }
33
34     grouping my-grouping {
35       container *my-cont {
36       }
37     }
38 }