dc26e328bedfc019161c81d17990f5cd015b27fe
[mdsal.git] / binding2 / mdsal-binding2-generator-impl / src / test / resources / yang-template / yang-template-test.yang
1 module yang-template-test {
2     yang-version 1.1;
3     namespace "org.opendaylight.yang.template";
4     prefix "ytemp";
5
6     import yang-template-import { prefix "yti"; revision-date 2016-06-23; }
7
8     revision 2016-01-01 {
9         description "Simple yang missing deviation statement";
10     }
11
12     typedef simple-typedef {
13         type string;
14         default "simple-typedef";
15     }
16
17     container simple-container {
18     }
19
20     anyxml simple-anyxml-mandatory {
21         mandatory true;
22     }
23
24     anydata simple-anydata;
25
26     anydata simple-anydata-mandatory {
27         mandatory true;
28     }
29
30     container simple-container-with-action {
31         action act {
32             input {
33                 leaf reset-at {
34                     type string;
35                     mandatory true;
36                 }
37             }
38             output {
39                 leaf reset-finished-at {
40                     type string;
41                     mandatory true;
42                 }
43             }
44         }
45     }
46
47     leaf simple-leaf {
48         type string;
49     }
50
51     leaf-list simple-leaf-list {
52         type string;
53     }
54
55     leaf-list simple-leaf-list-userordered {
56         ordered-by user;
57         type string;
58     }
59
60     list simple-list {
61         key "simple-list-leaf-1";
62         unique "simple-list-leaf-2";
63         leaf simple-list-leaf-1 {
64             type string;
65         }
66         leaf simple-list-leaf-2 {
67             type string;
68         }
69     }
70
71     list simple-list-more-arg-in-unique {
72         key "simple-list-leaf-1";
73         unique "simple-list-leaf-1 simple-list-leaf-2";
74         leaf simple-list-leaf-1 {
75             type string;
76         }
77         leaf simple-list-leaf-2 {
78             type string;
79         }
80     }
81
82     list simple-list-userordered {
83         ordered-by user;
84         key "simple-list-userordered-leaf-1";
85         unique "simple-list-userordered-leaf-2";
86         leaf simple-list-userordered-leaf-1 {
87             type string;
88         }
89         leaf simple-list-userordered-leaf-2 {
90             type string;
91         }
92     }
93
94     choice simple-choice {
95         case simple-case-1 {
96             leaf simple-case-1-leaf {
97                 type string;
98             }
99         }
100         case simple-case-2 {
101             leaf simple-case-2-leaf {
102                 type string;
103             }
104         }
105     }
106
107     anyxml simple-anyxml;
108
109     container simple-container-uses {
110         uses simple-grouping {
111             refine simple-grouping-leaf {
112                 description "refined simple-grouping-leaf description";
113             }
114         }
115     }
116
117     grouping simple-grouping {
118         leaf simple-grouping-leaf {
119             description "simple-grouping-leaf description";
120             type string;
121         }
122     }
123
124     augment "/simple-container-uses" {
125         leaf augment-leaf {
126             type string;
127         }
128     }
129
130     extension simple-extension {
131         description "simple-extension";
132         argument simple-extension-argument;
133     }
134
135     feature simple-feature {
136         description "simple-feature definex if device has some feature... hdd";
137     }
138
139     identity simple-identity {
140         description "simple-identity";
141     }
142
143     notification simple-notification {
144         leaf notification-leaf {
145             type string;
146         }
147     }
148
149     rpc simple-rpc {
150         input {
151             leaf rpc-input-leaf {
152                 type string;
153             }
154         }
155     }
156 }