BUG-9223:Remove hardcoded value of lldp interval
[openflowplugin.git] / model / model-flow-statistics / src / main / yang / opendaylight-flow-table-statistics.yang
1 module opendaylight-flow-table-statistics {
2     namespace "urn:opendaylight:flow:table:statistics";
3     prefix flowtablestat;
4
5     import flow-capable-transaction {prefix tr; revision-date "2015-03-04";}
6     import yang-ext {prefix ext; revision-date "2013-07-09";}
7     import opendaylight-inventory {prefix inv;revision-date "2013-08-19";}
8     import flow-node-inventory {prefix flow-node;revision-date "2013-08-19";}
9     import opendaylight-table-types {prefix table-types;revision-date "2013-10-26";}
10     import opendaylight-statistics-types {prefix stat-types;revision-date "2013-09-25";}
11
12     description "Openflow flow table statistics structures.";
13
14     contact
15         "Anilkumar Vishnoi
16         Email: avishnoi@in.ibm.com";
17
18     revision "2013-12-15" {
19         description "Initial revision of flow table statistics model";
20     }
21
22     augment "/inv:nodes/inv:node/flow-node:table" {
23         description "Openflow flow table statistics data into the table node.";
24         ext:augment-identifier "flow-table-statistics-data";
25         uses flow-table-statistics;
26     }
27
28     grouping flow-table-statistics {
29         description "TODO:: simplify.";
30         container flow-table-statistics {
31             uses stat-types:generic-table-statistics;
32         }
33     }
34
35     grouping flow-table-and-statistics-map {
36         status deprecated;
37         description "RPC calls to fetch flow table statistics.";
38
39         list flow-table-and-statistics-map {
40             key "table-id";
41             leaf table-id {
42                 type table-types:table-id;
43             }
44             uses stat-types:generic-table-statistics;
45         }
46     }
47
48     rpc get-flow-tables-statistics {
49         status deprecated;
50         description "Fetch statistics of all the flow tables present on the tarnet node";
51
52         input {
53             uses inv:node-context-ref;
54         }
55         output {
56             uses flow-table-and-statistics-map;
57             uses tr:transaction-aware;
58         }
59     }
60
61     //Notification to receive table statistics update
62
63     notification flow-table-statistics-update {
64         status deprecated;
65         description "Receive flow table statistics update";
66
67         uses inv:node;
68         uses flow-table-and-statistics-map;
69         uses tr:multipart-transaction-aware;
70     }
71 }