Merge "bug 433 NPE in onGlobalContextUpdated of ControllerContext class"
[controller.git] / opendaylight / md-sal / 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;}
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
13     contact
14         "Anilkumar Vishnoi
15         Email: avishnoi@in.ibm.com";
16
17     revision "2013-12-15" {
18         description "Initial revision of flow table statistics model";
19     }
20     
21     //Augment flow table statistics data to the table
22     augment "/inv:nodes/inv:node/flow-node:table" {
23         ext:augment-identifier "flow-table-statistics-data";
24         uses flow-table-statistics;
25     }
26     
27     grouping flow-table-statistics {
28         container flow-table-statistics {
29             //config "false";
30             uses stat-types:generic-table-statistics;
31         }
32     }    
33     
34     //RPC calls to fetch flow table statistics
35     grouping flow-table-and-statistics-map {
36         list flow-table-and-statistics-map {
37             key "table-id";
38             leaf table-id {
39                 type table-types:table-id;
40             }
41             uses stat-types:generic-table-statistics;
42         }
43     }
44     
45     rpc get-flow-tables-statistics {
46         description "Fetch statistics of all the flow tables present on the tarnet node";
47         input {
48             uses inv:node-context-ref;
49         }
50         output {
51             uses flow-table-and-statistics-map;
52             uses tr:transaction-aware;
53         }
54     }
55     
56     //Notification to receive table statistics update
57     
58     notification flow-table-statistics-update {
59         description "Receive flow table statistics update";
60         
61         uses inv:node;
62         uses flow-table-and-statistics-map;
63         uses tr:multipart-transaction-aware;
64     }
65 }