Add test for generated code checking list of dependencies.
[controller.git] / opendaylight / md-sal / model / model-flow-service / src / main / yang / flow-capable-transaction.yang
1 module flow-capable-transaction {
2         namespace "urn:opendaylight:flow:transaction";
3     prefix type;
4
5     import opendaylight-inventory {prefix inv; revision-date "2013-08-19";}
6     import yang-ext {prefix ext; revision-date "2013-07-09";}
7     
8     revision "2013-11-03" {
9         description "Initial revision";
10     }
11
12     typedef transaction-id {
13         type uint64;
14     }
15     
16     grouping transaction-aware {
17         leaf transaction-id {
18             type transaction-id;
19         }
20     }
21
22     rpc get-next-transaction-id {
23         input {
24             leaf node {
25                 ext:context-reference "inv:node-context";
26                 type inv:node-ref;
27             }
28         }
29         output {
30                 uses transaction-aware;
31         }
32     }
33
34     // Barier request?
35     rpc finish-transaction {
36         input {
37             leaf node {
38                 ext:context-reference "inv:node-context";
39                 type inv:node-ref;
40             }
41             leaf transaction-id {
42                 type transaction-id;
43             }
44         }
45     }
46 }