Checkstyle compliant src/main|test/resources
[mdsal.git] / dom / mdsal-dom-broker / 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 test {
11         presence "presence container";
12         list outer-list {
13             key id;
14             leaf id {
15                 type uint16;
16             }
17             choice outer-choice {
18                 case one {
19                     leaf one {
20                         type string;
21                     }
22                 }
23                 case two-three {
24                     leaf two {
25                         type string;
26                     }
27                     leaf three {
28                         type string;
29                     }
30                }
31            }
32            list inner-list {
33                 key name;
34                 leaf name {
35                     type string;
36                 }
37                 leaf value {
38                     type string;
39                 }
40             }
41         }
42
43         container inner-container {
44
45             leaf sharded-value-1 {
46                 type string;
47             }
48
49             leaf sharded-value-2 {
50                 type string;
51             }
52
53             container another-shard {
54                 list new-shard-list {
55                     key name;
56                     leaf name {
57                         type string;
58                     }
59                     leaf value {
60                         type string;
61                     }
62                 }
63
64                 leaf another-shard-value {
65                     type string;
66                 }
67             }
68         }
69     }
70
71     container test2 {
72     }
73 }