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