c720d5e0cdcc099026b545357c1edc8edb92de41
[controller.git] / opendaylight / md-sal / sal-clustering-commons / 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     identity feature-capability {
11     }
12
13     container test {
14         leaf my-bits {
15             type bits {
16                 bit ten-mb-hd;
17                 bit ten-mb-fd;
18                 bit hundred-mb-hd;
19                 bit hundred-mb-fd;
20                 bit one-gb-hd;
21                 bit one-gb-fd;
22                 bit ten-gb-fd;
23                 bit forty-gb-fd;
24                 bit hundred-gb-fd;
25                 bit one-tb-fd;
26                 bit other;
27                 bit copper;
28                 bit fiber;
29                 bit autoeng;
30                 bit pause;
31                 bit pause-asym;
32             }
33         }
34
35         leaf desc {
36             type string;
37         }
38         list outer-list {
39             key id;
40             leaf id {
41                 type uint16;
42             }
43             choice outer-choice {
44                 case one {
45                     leaf one {
46                         type string;
47                     }
48                 }
49                 case two-three {
50                     leaf two {
51                         type string;
52                     }
53                     leaf three {
54                         type string;
55                     }
56                }
57            }
58            list inner-list {
59                 key name;
60                 leaf name {
61                     type string;
62                 }
63                 leaf value {
64                     type string;
65                 }
66             }
67         }
68
69         leaf-list shoe {
70             type string;
71         }
72
73         leaf-list number {
74             type uint8;
75         }
76
77         leaf-list binary_leaf_list {
78             type binary;
79         }
80
81         leaf pointer {
82             type leafref {
83                 path "/network-topology/topology/node/termination-point/tp-id";
84             }
85         }
86
87         leaf some-ref {
88             type instance-identifier;
89         }
90
91         leaf myidentity {
92             type identityref {
93                 base feature-capability;
94             }
95         }
96
97         container switch-features {
98             leaf-list capability {
99                 type identityref {
100                     base feature-capability;
101                 }
102
103             }
104         }
105
106         list augmented-list {
107             key id;
108
109             leaf id {
110                 type uint8;
111             }
112         }
113
114         leaf some-binary-data {
115             type binary;
116         }
117
118
119     }
120 }