1 module opendaylight-flow-statistics {
2 namespace "urn:opendaylight:flow:statistics";
5 import yang-ext {prefix ext; revision-date "2013-07-09";}
6 import ietf-yang-types {prefix yang; revision-date "2010-09-24";}
7 import opendaylight-inventory {prefix inv;revision-date "2013-08-19";}
8 import opendaylight-flow-types {prefix flow-types;revision-date "2013-10-26";}
9 import opendaylight-statistics-types {prefix stat-types;revision-date "2013-09-25";}
10 import opendaylight-table-types {prefix table-types;revision-date "2013-10-26";}
11 import flow-node-inventory {prefix flow-node;revision-date "2013-08-19";}
12 import flow-capable-transaction {prefix tr;}
13 import sal-flow {prefix flow;}
16 revision "2013-08-19" {
17 description "Initial revision of flow statistics service";
20 //Augment flow statistics data to the flow-capable-node->table->flow
21 augment "/inv:nodes/inv:node/flow-node:table/flow-node:flow" {
22 ext:augment-identifier "flow-statistics-data";
26 grouping flow-statistics {
27 container flow-statistics {
30 uses stat-types:generic-statistics;
35 description "flow id";
39 grouping flow-and-statistics-map-list {
40 description "List of flow and statistics map";
41 list flow-and-statistics-map-list {
46 uses flow-and-statistics-map;
50 grouping flow-and-statistics-map{
51 description "Mapping between flow and its statistics";
53 uses stat-types:generic-statistics;
56 // RPC calls to fetch flow statistics
57 rpc get-all-flows-statistics-from-all-flow-tables {
58 description "Fetch statistics of all the flow present in all the flow tables of the switch";
60 uses inv:node-context-ref;
63 uses flow-and-statistics-map-list;
64 uses tr:transaction-aware;
69 rpc get-all-flow-statistics-from-flow-table {
70 description "Fetch statistics of all the flow present in the specific flow table of the switch";
72 uses inv:node-context-ref;
74 type table-types:table-id;
78 uses flow-and-statistics-map-list;
79 uses tr:transaction-aware;
83 rpc get-flow-statistics-from-flow-table {
84 description "Fetch statistics of the specific flow present in the specific flow table of the switch";
86 uses inv:node-context-ref;
90 uses flow-and-statistics-map-list;
91 uses tr:transaction-aware;
95 notification flows-statistics-update {
96 description "Flows statistics sent by switch";
101 uses flow-and-statistics-map-list;
102 uses tr:transaction-aware;
105 //Models for aggregate flow statistics collection
106 augment "/inv:nodes/inv:node/flow-node:table" {
107 ext:augment-identifier "aggregate-flow-statistics-data";
108 uses aggregate-flow-statistics;
111 grouping aggregate-flow-statistics {
112 container aggregate-flow-statistics {
114 uses stat-types:aggregate-flow-statistics;
118 // RPC calls to fetch aggregate flow statistics
119 rpc get-aggregate-flow-statistics-from-flow-table-for-all-flows {
120 description "Fetch aggregate statistics for all the flows present in the specific flow table of the switch";
122 uses inv:node-context-ref;
124 type table-types:table-id;
128 uses stat-types:aggregate-flow-statistics;
129 uses tr:transaction-aware;
132 rpc get-aggregate-flow-statistics-from-flow-table-for-given-match {
133 description "Fetch aggregate statistics for all the flow matches to the given match from the given table of the switch";
135 uses inv:node-context-ref;
136 uses flow-types:flow;
139 uses stat-types:aggregate-flow-statistics;
140 uses tr:transaction-aware;
144 notification aggregate-flow-statistics-update {
145 description "Aggregate flow statistics for a table, sent by switch";
150 uses stat-types:aggregate-flow-statistics;
151 uses tr:transaction-aware;