NormalizedNode serialization using protocol buffer
[controller.git] / opendaylight / md-sal / sal-protocolbuffer-encoding / 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         leaf desc {
12             type string;
13         }
14         list outer-list {
15             key id;
16             leaf id {
17                 type uint16;
18             }
19             choice outer-choice {
20                 case one {
21                     leaf one {
22                         type string;
23                     }
24                 }
25                 case two-three {
26                     leaf two {
27                         type string;
28                     }
29                     leaf three {
30                         type string;
31                     }
32                }
33            }
34            list inner-list {
35                 key name;
36                 leaf name {
37                     type string;
38                 }
39                 leaf value {
40                     type string;
41                 }
42             }
43         }
44
45         leaf-list shoe {
46             type string;
47         }
48
49         leaf-list number {
50             type uint8;
51         }
52
53     }
54 }