Merge "BUG-1954: Fix useless Boolean instantiation"
[yangtools.git] / yang / yang-parser-impl / src / test / resources / schema-context-util-test / my-module.yang
1 module my-module {
2     yang-version 1;
3     namespace "uri:my-module";
4     prefix my;
5
6     import imported-module { prefix imp; revision-date 2014-10-07; }
7
8     revision 2014-10-07 {
9         description
10                 "My yang model";
11     }
12
13     grouping my-grouping {
14         container my-container-in-grouping {
15             leaf my-leaf-in-grouping {
16                 type int16;
17             }
18         }
19         leaf my-leaf-in-gouping2 {
20             type string;
21         }
22     }
23
24     container my-container {
25         leaf my-leaf-in-container {
26             type int32;
27         }
28         uses my-grouping;
29         list my-list {
30             leaf my-leaf-in-list {
31                 type string;
32             }
33             leaf-list my-leaf-list-in-list {
34                 type int16;
35             }
36         }
37     }
38
39     rpc my-rpc {
40         input {
41             leaf my-input-leaf {
42                 type string;
43             }
44         }
45
46         output {
47             leaf my-output-leaf {
48                 type int16;
49             }
50         }
51     }
52
53     notification my-notification {
54         leaf my-notification-leaf {
55             type string;
56         }
57     }
58
59     choice my-choice {
60         case one {
61             leaf my-choice-leaf-one {
62                 type string;
63             }
64         }
65         case two {
66             leaf my-choice-leaf-two {
67                 type int16;
68             }
69         }
70     }
71 }
72