Add test for generated code checking list of dependencies.
[controller.git] / opendaylight / md-sal / model / model-flow-service / src / main / yang / meter-service.yang
1 module sal-meter {
2     namespace "urn:opendaylight:meter:service";
3     prefix meter;
4
5     import yang-ext {prefix ext; revision-date "2013-07-09";}
6     import opendaylight-inventory {prefix inv;revision-date "2013-08-19";}
7     import opendaylight-meter-types {prefix meter-type;revision-date "2013-09-18";}
8     import flow-capable-transaction {prefix tr;}
9
10     revision "2013-09-18" {
11         description "Initial revision of meter service";
12     }        
13     
14     grouping node-meter {
15         uses "inv:node-context-ref";
16         
17         uses meter-type:meter;
18     }
19
20     /** Base configuration structure **/
21     grouping meter-update {
22         uses "inv:node-context-ref";
23
24         container original-meter {
25             uses meter-type:meter;
26         }
27         container updated-meter {
28             uses meter-type:meter;
29         }
30     }
31
32     rpc add-meter {
33         input {
34             uses node-meter;
35             uses tr:transaction-aware;            
36         }
37         output {
38             uses tr:transaction-aware;
39         }
40     }
41
42     rpc remove-meter {
43         input {
44             uses node-meter;
45             uses tr:transaction-aware;            
46         }
47         output {
48             uses tr:transaction-aware;
49         }
50     }
51
52     rpc update-meter {
53         input {
54             uses meter-update;
55             uses tr:transaction-aware;            
56         }
57         output {
58             uses tr:transaction-aware;
59         }
60     }
61         
62     notification meter-added {
63         uses node-meter;
64     }
65
66     notification meter-updated {
67         uses node-meter;
68     }
69
70     notification meter-removed {
71         uses node-meter;
72     }
73 }

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