Bug 1411-4: MDSAL Binding2 Generator Impl
[mdsal.git] / binding2 / mdsal-binding2-generator-impl / src / main / test / resources / yang-template / yang-template-test.yang
1 module yang-template-test {
2     yang-version 1;
3     namespace "org.opendaylight.yang.template";
4     prefix "ytemp";
5
6     revision 2016-01-01 {
7         description "Simple yang missing deviation statement";
8     }
9
10     import yang-template-import { prefix yti; revision-date 2016-06-23; }
11
12     typedef simple-typedef {
13         type string;
14         default "simple-typedef";
15     }
16
17     container simple-container {
18     }
19
20     leaf simple-leaf {
21         type string;
22     }
23
24     leaf-list simple-leaf-list  {
25         type string;
26     }
27
28     leaf-list simple-leaf-list-userordered  {
29         ordered-by user;
30         type string;
31     }
32
33     list simple-list  {
34     key "simple-list-leaf-1";
35     unique "simple-list-leaf-2";
36         leaf simple-list-leaf-1 {
37             type string;
38         }
39         leaf simple-list-leaf-2 {
40             type string;
41         }
42     }
43
44     list simple-list-userordered  {
45     ordered-by user;
46     key "simple-list-userordered-leaf-1";
47     unique "simple-list-userordered-leaf-2";
48         leaf simple-list-userordered-leaf-1 {
49             type string;
50         }
51         leaf simple-list-userordered-leaf-2 {
52             type string;
53         }
54     }
55
56     choice simple-choice {
57         case simple-case-1 {
58             leaf simple-case-1-leaf {
59                 type string;
60             }
61         }
62         case simple-case-2 {
63             leaf simple-case-2-leaf {
64                 type string;
65             }
66         }
67     }
68
69     anyxml simple-anyxml;
70
71     grouping simple-grouping {
72         leaf simple-grouping-leaf {
73             description "simple-grouping-leaf description";
74             type string;
75         }
76     }
77
78     container simple-container-uses {
79         uses simple-grouping {
80             refine simple-grouping-leaf {
81                 description "refined simple-grouping-leaf description";
82             }
83         }
84     }
85
86     rpc simple-rpc {
87         input {
88             leaf rpc-input-leaf {
89                 type string;
90             }
91         }
92     }
93
94     notification simple-notification {
95         leaf notification-leaf {
96             type string;
97         }
98     }
99
100     augment "/simple-container-uses" {
101         leaf augment-leaf {
102             type string;
103         }
104     }
105
106     identity simple-identity {
107         description "simple-identity";
108     }
109
110     extension simple-extension {
111         description "simple-extension";
112         argument "simple-extension-argument";
113     }
114
115     feature simple-feature {
116         description "simple-feature definex if device has some feature... hdd";
117     }
118 }