ConfigurationService to create default config dir
[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 ietf-inet-types {prefix inet; revision-date "2010-09-24";}
7     import yang-ext {prefix ext; revision-date "2013-07-09";}
8     
9     revision "2013-11-03" {
10         description "Initial revision";
11     }
12
13     typedef transaction-id {
14         type uint64;
15     }
16     // This refers to MD-SAL transaction reference.
17     grouping transaction-metadata {
18         leaf transaction-uri {
19             type inet:uri;
20         }
21     }
22     
23     grouping transaction-aware {
24         leaf transaction-id {
25             type transaction-id;
26         }
27     }
28
29     rpc get-next-transaction-id {
30         input {
31             leaf node {
32                 ext:context-reference "inv:node-context";
33                 type inv:node-ref;
34             }
35         }
36         output {
37                 uses transaction-aware;
38         }
39     }
40
41     // Barier request?
42     rpc finish-transaction {
43         input {
44             leaf node {
45                 ext:context-reference "inv:node-context";
46                 type inv:node-ref;
47             }
48             leaf transaction-id {
49                 type transaction-id;
50             }
51         }
52     }
53 }