BUG 2325 : Value type of byte[] not recognized by the NormalizedNodeSerializer
[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 pointer {
78             type leafref {
79                 path "/network-topology/topology/node/termination-point/tp-id";
80             }
81         }
82
83         leaf some-ref {
84             type instance-identifier;
85         }
86
87         leaf myidentity {
88             type identityref {
89                 base feature-capability;
90             }
91         }
92
93         container switch-features {
94             leaf-list capability {
95                 type identityref {
96                     base feature-capability;
97                 }
98
99             }
100         }
101
102         list augmented-list {
103             key id;
104
105             leaf id {
106                 type uint8;
107             }
108         }
109
110         leaf some-binary-data {
111             type binary;
112         }
113
114
115     }
116 }

©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.