BUG-2399: Implement automatic container removal
[yangtools.git] / yang / yang-data-impl / 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 true;
12         choice choice1 {
13             case case1 {
14                 leaf case1-leaf1 {
15                     type string;
16                     config false;
17                 }
18             }
19             case case2 {
20                 container case2-cont {
21                     leaf case2-leaf1 {
22                         type string;
23                         config false;
24                     }
25                 }
26             }
27         }
28
29         list outer-list {
30
31             key id;
32             leaf id {
33                 type uint16;
34             }
35             choice outer-choice {
36                 case one {
37                     leaf one {
38                         type string;
39                     }
40                 }
41                 case two-three {
42                     leaf two {
43                         type string;
44                     }
45                     leaf three {
46                         type string;
47                     }
48                }
49            }
50            list inner-list {
51                 config false;
52                 key name;
53                 leaf name {
54                     type string;
55                 }
56                 leaf value {
57                     type string;
58                 }
59             }
60
61             list inner-list2 {
62                  key name;
63                  leaf name {
64                      type string;
65                  }
66                  leaf value {
67                      type string;
68                      config false;
69                  }
70              }
71          }
72         
73     }
74 }