Merge "Replace exception.printStacktrace with write to log."
[controller.git] / opendaylight / sal / yang-prototype / sal / model / model-flow-statistics / src / main / yang / flow-statistics.yang
1 module opendaylight-flow-statistics {
2     namespace "urn:opendaylight:flow:statistics";
3     prefix flowstat;
4
5     import yang-ext {prefix ext;}
6     import opendaylight-inventory {prefix inv;}
7     import opendaylight-flow-types {prefix flow-types;}
8     import sal-flow {prefix flow;}
9     import opendaylight-statistics-types {prefix stat-types;}
10
11     revision "2013-08-19" {
12         description "Initial revision of flow service";
13     }
14
15     rpc get-node-connector-statistics {
16         input {
17             leaf node {
18                 ext:context-reference "node-context";
19                 type inv:node-ref;
20             }
21             leaf node-connector {
22                 type inv:node-connector-ref;
23             }
24         }
25         output {
26             uses stat-types:node-connector-statistics;
27         }
28     }
29
30     notification node-connector-statistics-updated {
31         uses stat-types:node-connector-statistics;
32     }
33
34     rpc get-flow-statistics {
35         input {
36             leaf node {
37                 ext:context-reference "node-context";
38                 type inv:node-ref;
39             }
40             uses flow-types:flow;
41         }
42         output {
43             uses flow-types:flow-statistics;
44         }
45     }
46
47     notification flow-statistics-updated {
48         uses flow-types:flow-statistics;
49     }
50
51     rpc get-flow-table-statistics {
52         input {
53             leaf node {
54                 ext:context-reference "node-context";
55                 type inv:node-ref;
56             }
57         }
58         output {
59             uses flow-types:flow-table-statistics;
60         }
61     }
62
63     notification flow-table-statistics-updated {
64         leaf flow-table {
65             type flow:flow-table-ref;
66         }
67         uses flow-types:flow-table-statistics;
68     }
69
70 }