Split out yang-data-tree-impl
[yangtools.git] / data / yang-data-tree-ri / src / test / resources / odl-datastore-test.yang
1 module odl-datastore-test {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:store:test";
4     prefix "store-test";
5
6     revision "2014-03-13" {
7         description "Initial revision.";
8     }
9
10     container non-presence {
11         description "Deep structure of (structural) nodes to test structural ";
12
13         leaf name {
14             type string;
15         }
16
17         choice deep-choice {
18             list a-list {
19                 key "a-name";
20
21                 leaf a-name {
22                     type string;
23                 }
24             }
25
26             container b-container {
27                 leaf b-name {
28                     type string;
29                 }
30             }
31         }
32     }
33
34     container test {
35         presence true;
36         choice choice1 {
37             case case1 {
38                 leaf case1-leaf1 {
39                     type string;
40                     config false;
41                 }
42             }
43             case case2 {
44                 container case2-cont {
45                     leaf case2-leaf1 {
46                         type string;
47                         config false;
48                     }
49                 }
50             }
51         }
52
53         list outer-list {
54
55             key id;
56             leaf id {
57                 type uint16;
58             }
59             choice outer-choice {
60                 case one {
61                     leaf one {
62                         type string;
63                     }
64                 }
65                 case two-three {
66                     leaf two {
67                         type string;
68                     }
69                     leaf three {
70                         type string;
71                     }
72                }
73             }
74             list inner-list {
75                 config false;
76                 key name;
77                 leaf name {
78                     type string;
79                 }
80                 leaf value {
81                     type string;
82                 }
83             }
84
85             list inner-list2 {
86                 key name;
87                 leaf name {
88                     type string;
89                 }
90                 leaf value {
91                     type string;
92                     config false;
93                 }
94             }
95         }
96
97         container inner-container {
98             leaf value {
99                 type string;
100             }
101         }
102     }
103 }