Binding generator v2 - uses statement - uses inner type
[mdsal.git] / binding2 / mdsal-binding2-generator-impl / src / test / resources / uses-statement / test-uses-leaf-innertype3.yang
1 module test-uses-leaf-innertype3{
2     namespace "urn:test:uses:leaf:innertype3";
3     prefix innertype3;
4     revision 2017-08-09;
5     import test-uses-leaf-innertype3-base {
6       prefix base;
7     }
8
9     typedef protocol-version {
10         type uint8 {
11             range 1..7;
12         }
13     }
14
15     grouping open-message {
16        leaf version {
17            type protocol-version;
18            default 4;
19        }
20
21        leaf leaf-union {
22          type union {
23            type string;
24            type int64;
25          }
26        }
27     }
28
29     grouping link-bandwidth-extended-community {
30         leaf bandwidth {
31             mandatory true;
32             type base:bandwidth;
33             units "bytes per second";
34         }
35     }
36
37     container my-cont {
38        uses link-bandwidth-extended-community;
39     }
40
41     notification open {
42        uses open-message;
43     }
44
45 }