Handle empty type in NormalizedNode streaming
[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
39         leaf short-leaf {
40             type uint16;
41         }
42
43         leaf biginteger-leaf {
44             type uint64;
45         }
46
47         leaf bigdecimal-leaf {
48             type decimal64 {
49                 fraction-digits 2;
50             }
51         }
52
53         leaf boolean-leaf {
54             type boolean;
55         }
56
57         leaf byte-leaf {
58             type uint8;
59         }
60
61         list unkeyed-list {
62             leaf name {
63                 type string;
64             }
65         }
66
67         choice outer-choice {
68              case one {
69                 leaf one {
70                     type string;
71                 }
72              }
73              case two-three {
74                  leaf two {
75                      type string;
76                  }
77                  leaf three {
78                      type string;
79                  }
80              }
81         }
82
83         list ordered-list {
84             key ordered-list-leaf;
85             ordered-by user;
86
87             leaf ordered-list-leaf {
88                 type string;
89             }
90         }
91
92         list outer-list {
93             key id;
94             leaf id {
95                 type uint16;
96             }
97
98             list inner-list {
99                 key name;
100                 leaf name {
101                     type string;
102                 }
103                 leaf value {
104                     type string;
105                 }
106
107                 container inner-container {
108                 }
109             }
110         }
111
112         leaf-list shoe {
113             type string;
114         }
115
116         leaf-list number {
117             type uint8;
118         }
119
120         leaf-list binary_leaf_list {
121             type binary;
122         }
123
124         leaf pointer {
125             type leafref {
126                 path "/network-topology/topology/node/termination-point/tp-id";
127             }
128         }
129
130         leaf some-ref {
131             type instance-identifier;
132         }
133
134         leaf myidentity {
135             type identityref {
136                 base feature-capability;
137             }
138         }
139
140         container switch-features {
141             leaf-list capability {
142                 type identityref {
143                     base feature-capability;
144                 }
145
146             }
147         }
148
149         list augmented-list {
150             key id;
151
152             leaf id {
153                 type uint8;
154             }
155         }
156
157         leaf some-binary-data {
158             type binary;
159         }
160
161         anyxml any {
162         }
163
164         leaf empty-leaf {
165             type empty;
166         }
167     }
168 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.