Updated Flow Capable Models & AD SAL Compatibility mapping
[controller.git] / opendaylight / md-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
12     revision "2013-08-19" {
13         description "Initial revision of flow service";
14     }
15
16     rpc get-node-connector-statistics {
17         input {
18             leaf node {
19                 ext:context-reference "inv:node-context";
20                 type inv:node-ref;
21             }
22             leaf node-connector {
23                 type inv:node-connector-ref;
24             }
25         }
26         output {
27             uses stat-types:node-connector-statistics;
28         }
29     }
30
31     rpc get-flow-statistics {
32         input {
33             leaf node {
34                 ext:context-reference "inv:node-context";
35                 type inv:node-ref;
36             }
37             uses flow-types:flow;
38         }
39         output {
40             uses flow-types:flow-statistics;
41         }
42     }
43
44     rpc get-all-flow-statistics {
45         input {
46             leaf node {
47                 ext:context-reference "inv:node-context";
48                 type inv:node-ref;
49             }
50         }
51         output {
52             list flow-statistics {
53                 uses flow-types:flow-statistics;
54             }
55         }
56     }
57
58     rpc get-all-node-connector-statistics {
59         input {
60             leaf node {
61                 ext:context-reference "inv:node-context";
62                 type inv:node-ref;
63             }
64         }
65         output {
66             list node-connector-statistics {
67                 uses stat-types:node-connector-statistics;
68             }
69         }
70     }
71
72     notification flow-statistics-updated {
73         uses flow-types:flow-statistics;
74     }
75
76     rpc get-flow-table-statistics {
77         input {
78             leaf node {
79                 ext:context-reference "inv:node-context";
80                 type inv:node-ref;
81             }
82         }
83         output {
84             uses flow-types:flow-table-statistics;
85         }
86     }
87
88     notification flow-table-statistics-updated {
89         leaf flow-table {
90             type flow:flow-table-ref;
91         }
92         uses flow-types:flow-table-statistics;
93     }
94
95     notification node-connector-statistics-updated {
96         uses stat-types:node-connector-statistics;
97     }
98
99
100 }