Split out yang-data-tree-{api,spi}
[yangtools.git] / data / yang-data-tree-ri / src / test / resources / case-exclusion-test.yang
1 module case-exclusion-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 test {
11         presence true;
12         config true;
13         choice choice1 {
14             case case1 {
15                 leaf case1-leaf1 {
16                     type string;
17                 }
18             }
19             case case2 {
20                 container case2-cont {
21                     leaf case2-leaf1 {
22                         type string;
23                     }
24                 }
25             }
26         }
27
28         list outer-list {
29
30             key id;
31             leaf id {
32                 type uint16;
33             }
34             choice outer-choice {
35                 case one {
36                     leaf one {
37                         type string;
38                     }
39                 }
40                 case two-three {
41                     leaf two {
42                         type string;
43                     }
44                     leaf three {
45                         type string;
46                     }
47                 }
48             }
49             list inner-list {
50                 key name;
51                 leaf name {
52                     type string;
53                 }
54                 leaf value {
55                     type string;
56                 }
57             }
58
59             list inner-list2 {
60                 key name;
61                 leaf name {
62                     type string;
63                 }
64                 leaf value {
65                     type string;
66                 }
67             }
68         }
69     }
70 }