Created sal-clustering-commons and moved
[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 desc {
15             type string;
16         }
17         list outer-list {
18             key id;
19             leaf id {
20                 type uint16;
21             }
22             choice outer-choice {
23                 case one {
24                     leaf one {
25                         type string;
26                     }
27                 }
28                 case two-three {
29                     leaf two {
30                         type string;
31                     }
32                     leaf three {
33                         type string;
34                     }
35                }
36            }
37            list inner-list {
38                 key name;
39                 leaf name {
40                     type string;
41                 }
42                 leaf value {
43                     type string;
44                 }
45             }
46         }
47
48         leaf-list shoe {
49             type string;
50         }
51
52         leaf-list number {
53             type uint8;
54         }
55
56         leaf pointer {
57             type leafref {
58                 path "/network-topology/topology/node/termination-point/tp-id";
59             }
60         }
61
62         leaf some-ref {
63             type instance-identifier;
64         }
65
66         leaf myidentity {
67             type identityref {
68                 base feature-capability;
69             }
70         }
71
72         container switch-features {
73             leaf-list capability {
74                 type identityref {
75                     base feature-capability;
76                 }
77
78             }
79         }
80
81         list augmented-list {
82             key id;
83
84             leaf id {
85                 type uint8;
86             }
87         }
88
89
90     }
91 }

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