BUG-9223:Remove hardcoded value of lldp interval
[openflowplugin.git] / model / model-flow-statistics / src / main / yang / opendaylight-queue-statistics.yang
1 module opendaylight-queue-statistics {
2     namespace "urn:opendaylight:queue:statistics";
3     prefix queuestat;
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-queue-types {prefix queue-types;revision-date "2013-09-25";}
10     import opendaylight-statistics-types {prefix stat-types;revision-date "2013-09-25";}
11
12     description "Openflowplugin queue statistics structures.";
13
14     contact
15         "Anilkumar Vishnoi
16         Email: avishnoi@in.ibm.com";
17
18     revision "2013-12-16" {
19         description "Initial revision of queue statistics model";
20     }
21
22     //Augment queue statistics data to the flow-capable-node-connector
23     augment "/inv:nodes/inv:node/inv:node-connector/flow-node:queue" {
24         description "Openflow queue statistics data into the queue node.";
25         ext:augment-identifier "flow-capable-node-connector-queue-statistics-data";
26         uses flow-capable-node-connector-queue-statistics;
27     }
28
29     grouping flow-capable-node-connector-queue-statistics {
30         description "TODO::simplify;";
31         container flow-capable-node-connector-queue-statistics {
32             uses stat-types:generic-queue-statistics;
33         }
34     }
35
36     //RPC calls to fetch queue statistics
37     grouping queue-id-and-statistics-map {
38         status deprecated;
39
40         list queue-id-and-statistics-map {
41             key "queue-id node-connector-id";
42             leaf queue-id {
43                 type queue-types:queue-id;
44             }
45             leaf node-connector-id {
46                 type inv:node-connector-id;
47             }
48
49             uses stat-types:generic-queue-statistics;
50         }
51     }
52
53     rpc get-all-queues-statistics-from-all-ports {
54         status deprecated;
55         description "Get statistics for all the queues attached to all the ports from the node";
56
57         input {
58             uses inv:node-context-ref;
59         }
60         output {
61             uses queue-id-and-statistics-map;
62             uses tr:transaction-aware;
63         }
64     }
65
66     rpc get-all-queues-statistics-from-given-port {
67         status deprecated;
68         description "Get statistics for all queues for given port of the node";
69
70         input {
71             uses inv:node-context-ref;
72             leaf node-connector-id {
73                 type inv:node-connector-id;
74             }
75         }
76         output {
77             uses queue-id-and-statistics-map;
78             uses tr:transaction-aware;
79         }
80     }
81
82     rpc get-queue-statistics-from-given-port {
83         status deprecated;
84         description "Get statistics for given queues from given port of the node";
85
86         input {
87             uses inv:node-context-ref;
88             leaf node-connector-id {
89                 type inv:node-connector-id;
90             }
91             leaf queue-id {
92                 type queue-types:queue-id;
93             }
94         }
95         output {
96             uses queue-id-and-statistics-map;
97             uses tr:transaction-aware;
98         }
99     }
100
101     //Notification for port statistics update
102
103     notification queue-statistics-update {
104         status deprecated;
105
106         uses inv:node;
107         uses queue-id-and-statistics-map;
108         uses tr:multipart-transaction-aware;
109     }
110 }