Adjust test suite parser update to conform with API changes
[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         grouping my-grouping-in-grouping {
23             leaf my-leaf-in-grouping-in-grouping {
24                 type string;
25             }
26         }
27     }
28
29     container my-container {
30         leaf my-leaf-in-container {
31             type int32;
32         }
33         uses my-grouping;
34         list my-list {
35             leaf my-leaf-in-list {
36                 type string;
37             }
38             leaf-list my-leaf-list-in-list {
39                 type int16;
40             }
41             grouping my-grouping-in-list {
42                 leaf my-leaf-in-grouping-in-list {
43                     type string;
44                 }
45             }
46         }
47         grouping my-grouping-in-container {
48             leaf my-leaf-in-grouping-in-container {
49                 type string;
50             }
51         }
52     }
53
54     rpc my-rpc {
55         input {
56             leaf my-input-leaf {
57                 type string;
58             }
59             grouping my-grouping-in-input {
60                 leaf my-leaf-in-grouping-in-input {
61                     type string;
62                 }
63             }
64         }
65
66         output {
67             leaf my-output-leaf {
68                 type int16;
69             }
70             grouping my-grouping-in-output {
71                 leaf my-leaf-in-grouping-in-output {
72                     type string;
73                 }
74             }
75         }
76
77         grouping my-grouping-in-rpc {
78             leaf my-leaf-in-grouping-in-rpc {
79                 type string;
80             }
81         }
82     }
83
84     notification my-notification {
85         leaf my-notification-leaf {
86             type string;
87         }
88         grouping my-grouping-in-notification {
89             leaf my-leaf-in-grouping-in-notification {
90                 type string;
91             }
92         }
93     }
94
95     choice my-choice {
96         case one {
97             leaf my-choice-leaf-one {
98                 type string;
99             }
100             container my-container-in-case {
101                 grouping my-grouping-in-case {
102                     leaf my-leaf-in-grouping-in-case {
103                         type string;
104                     }
105                 }
106             }
107         }
108         case two {
109             leaf my-choice-leaf-two {
110                 type int16;
111             }
112         }
113     }
114
115     grouping my-name {
116         choice my-choice {
117             case case-one {
118                 container one {
119                     //empty
120                 }
121             }
122             case case-two {
123                 container two {
124                     //empty
125                 }
126             }
127         }
128     }
129
130     rpc my-name {
131         input {
132             uses my-name;
133         }
134     }
135 }