Merge "bug 1827 XSQL hangs when there is an empty dataset + Add Configuration datastore."
[controller.git] / opendaylight / md-sal / samples / clustering-test-app / model / src / main / yang / car.yang
1 module car {
2
3     yang-version 1;
4
5     namespace "urn:opendaylight:params:xml:ns:yang:controller:config:sal-clustering-it:car";
6
7     prefix car;
8
9         import ietf-inet-types { prefix "inet"; revision-date 2010-09-24; }
10         
11     organization "Netconf Central";
12
13     contact
14       "Harman Singh <harmasin@cisco.com>";
15
16     description
17       "YANG model for car for test application";
18
19     revision "2014-08-18" {
20       description
21         "Clustering sample app";
22     }
23     
24     typedef car-id {
25       type inet:uri;
26       description "An identifier for car entry.";
27     }
28
29     grouping car-entry {
30       description "Describes the contents of a car entry -
31                        Details of the car manufacturer, model etc";
32       leaf id {
33         type car-id;
34         description "identifier of single list of entries.";
35       }
36
37       leaf model {
38         type string;
39       }
40       leaf manufacturer {
41         type string;
42       }
43
44       leaf year {
45         type uint32;
46       }
47
48       leaf category {
49         type string;
50       }
51     }
52     
53     container cars {
54       description
55         "Top-level container for all car objects.";
56       list car-entry {
57         key "id";
58         description "A list of cars (as defined by the 'grouping car-entry').";
59         uses car-entry;
60       }
61     }
62
63     
64 }