025b9a4b31531abc8e2249b4e897b033f5129809
[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     import opendaylight-multipart-types { prefix multipart; revision-date "2017-01-12"; }
12
13     description "Openflow flow table statistics structures.";
14
15     contact
16         "Anilkumar Vishnoi
17         Email: avishnoi@in.ibm.com";
18
19     revision "2013-12-15" {
20         description "Initial revision of flow table statistics model";
21     }
22
23     augment "/inv:nodes/inv:node/flow-node:table" {
24         description "Openflow flow table statistics data into the table node.";
25         ext:augment-identifier "flow-table-statistics-data";
26         uses flow-table-statistics;
27     }
28
29     grouping flow-table-statistics {
30         description "TODO:: simplify.";
31         container flow-table-statistics {
32             uses stat-types:generic-table-statistics;
33         }
34     }
35
36     grouping flow-table-and-statistics-map {
37         status deprecated;
38         description "RPC calls to fetch flow table statistics.";
39
40         list flow-table-and-statistics-map {
41             key "table-id";
42             leaf table-id {
43                 type table-types:table-id;
44             }
45             uses stat-types:generic-table-statistics;
46         }
47     }
48
49     rpc get-flow-tables-statistics {
50         status deprecated;
51         description "Fetch statistics of all the flow tables present on the tarnet node";
52
53         input {
54             uses inv:node-context-ref;
55         }
56         output {
57             uses flow-table-and-statistics-map;
58             uses tr:transaction-aware;
59         }
60     }
61
62     //Notification to receive table statistics update
63
64     notification flow-table-statistics-update {
65         status deprecated;
66         description "Receive flow table statistics update";
67
68         uses inv:node;
69         uses flow-table-and-statistics-map;
70         uses tr:multipart-transaction-aware;
71     }
72
73     augment "/multipart:multipart-reply/multipart:multipart-reply-body" {
74         case multipart-reply-flow-table-stats {
75             uses flow-table-and-statistics-map;
76         }
77     }
78 }