b8233545c5f2b0990662f91d2b1a346a87b1d0e0
[controller.git] / opendaylight / md-sal / model / model-flow-statistics / src / main / yang / 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 ietf-yang-types {prefix yang; revision-date "2010-09-24";}
8     import opendaylight-inventory {prefix inv;revision-date "2013-08-19";}
9     import flow-node-inventory {prefix flow-node;revision-date "2013-08-19";}
10     import opendaylight-table-types {prefix table-types;revision-date "2013-10-26";}
11     import opendaylight-statistics-types {prefix stat-types;revision-date "2013-09-25";}
12     
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 flow table statistics data to the table
23         augment "/inv:nodes/inv:node/flow-node:table" {
24         ext:augment-identifier "flow-table-statistics-data";
25         uses flow-table-statistics;
26     }
27         
28         grouping flow-table-statistics {
29         container flow-table-statistics {
30             //config "false";
31                 uses stat-types:generic-table-statistics;
32         }
33         }    
34     
35     //RPC calls to fetch flow table statistics
36     grouping flow-table-and-statistics-map {
37         list flow-table-and-statistics-map {
38                 key "table-id";
39                 leaf table-id {
40                         type table-types:table-id;
41                 }
42                 uses stat-types:generic-table-statistics;
43         }
44     }
45     
46     rpc get-flow-tables-statistics {
47         description "Fetch statistics of all the flow tables present on the tarnet node";
48         input {
49                 uses inv:node-context-ref;
50         }
51         output {
52                 uses flow-table-and-statistics-map;
53                 uses tr:transaction-aware;
54         }
55     }
56     
57     //Notification to receive table statistics update
58     
59     notification flow-table-statistics-update {
60         description "Receive flow table statistics update";
61         
62                 leaf moreReplies {
63             type boolean;
64         }
65         uses inv:node;
66                 uses flow-table-and-statistics-map;
67                 uses tr:transaction-aware;
68     }
69 }