f7b960e9f995b448d5b655fb85cad5067a8397e4
[controller.git] / opendaylight / md-sal / sal-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 "needs to be present when empty";
12
13         list outer-list {
14             key id;
15             leaf id {
16                 type uint16;
17             }
18             choice outer-choice {
19                 case one {
20                     leaf one {
21                         type string;
22                     }
23                 }
24                 case two-three {
25                     leaf two {
26                         type string;
27                     }
28                     leaf three {
29                         type string;
30                     }
31                }
32            }
33            list inner-list {
34                 key name;
35                 leaf name {
36                     type string;
37                 }
38                 leaf value {
39                     type string;
40                 }
41             }
42         }
43     }
44
45     container test2 {
46     }
47
48     rpc test-rpc {
49         input {
50             leaf input-leaf {
51                 type string;
52             }
53         }
54
55         output {
56             leaf output-leaf {
57                 type string;
58             }
59         }
60     }
61
62     rpc test-rpc-no-input {
63     }
64
65     notification test-notification {
66         leaf value-leaf {
67             type string;
68         }
69     }
70 }