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

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