Bug 1280: Ensure list parent if written item is list item
[controller.git] / opendaylight / md-sal / sal-binding-dom-it / src / main / yang / opendaylight-sal-test-store.yang
1 module opendaylight-sal-test-store {
2         yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:md:sal:test:store";
4     prefix "binding-impl";
5
6     description
7         "Regression Test model for data store";
8
9     revision "2014-04-22" {
10         description
11             "Initial revision";
12     }
13
14     grouping name-value {
15         leaf name {
16             type string;
17         }
18         leaf value {
19             type string;
20         }
21     }
22
23     container lists {
24         config false;
25         container unordered-container {
26             list unordered-list {
27                 key "name";
28                 uses name-value;
29             }
30         }
31         container ordered-container {
32             list ordered-list {
33                 ordered-by user;
34                 key "name";
35                 uses name-value;
36             }
37         }
38         container unkeyed-container {
39             /*
40                 Following list nodes not specify key, which
41                 makes impossible to uniquely identify list items
42                 over time.
43             */
44             list unkeyed-list {
45                 uses name-value;
46             }
47         }
48     }
49 }

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