b771346112a9d5d2160bf131bb0b8a22f5face0d
[controller.git] / opendaylight / md-sal / samples / clustering-test-app / model / src / main / yang / car-purchase.yang
1 module car-purchase {
2
3     yang-version 1;
4
5     namespace "urn:opendaylight:params:xml:ns:yang:controller:config:sal-clustering-it:car-purchase";
6
7     prefix cp;
8
9           import ietf-inet-types { prefix "inet"; revision-date 2013-07-15; }
10           import car { prefix "car"; revision-date 2014-08-18; }
11           import people { prefix "person"; revision-date 2014-08-18; }
12           import yang-ext {prefix "ext"; revision-date "2013-07-09";}
13
14     organization "Netconf Central";
15
16     contact
17       "Harman Singh <harmasin@cisco.com>";
18
19     description
20       "YANG model for car purchase for test application";
21
22     revision "2014-08-18" {
23       description
24         "Clustering sample app";
25     }
26
27     rpc buy-car {
28           description
29             "buy a new car";
30           input {
31             leaf person {
32               ext:context-reference "person:person-context";
33               type person:person-ref;
34               description "A reference to a particular person.";
35             }
36
37             leaf car-id {
38               type car:car-id;
39               description "identifier of car.";
40             }
41             leaf person-id {
42               type person:person-id;
43               description "identifier of person.";
44             }
45           }
46         }
47
48         notification carBought {
49           description
50             "Indicates that a person bought a car.";
51           leaf car-id {
52             type car:car-id;
53             description "identifier of car.";
54           }
55           leaf person-id {
56             type person:person-id;
57             description "identifier of person.";
58           }
59         }
60 }

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