7bde486e91da8c4228086a9a6e1e08f8637b8707
[controller.git] / opendaylight / md-sal / model / model-flow-statistics / src / main / yang / statistics-types.yang
1 module opendaylight-statistics-types {
2     namespace "urn:opendaylight:model:statistics:types";
3     prefix stat-types;
4
5     import ietf-yang-types {prefix yang;}
6     import opendaylight-inventory {prefix inv;revision-date "2013-08-19";}
7     
8     revision "2013-09-25" {
9         description "Initial revision of flow service";
10     }
11     
12     grouping duration {
13         container duration {
14             leaf second {
15                 type yang:counter32;
16             }
17             leaf nanosecond {
18                 type yang:counter32;
19             }
20         }
21     }
22
23     grouping node-connector-statistics {
24         container packets {
25             leaf received {
26                 type uint64;
27             }
28             leaf transmitted {
29                 type uint64;
30             }
31         }
32         container bytes {
33             leaf received {
34                 type uint64;
35             }
36             leaf transmitted {
37                 type uint64;
38             }
39         }
40         leaf receive-drops {
41             type uint64;
42         }
43         leaf transmit-drops {
44             type uint64;
45         }
46         leaf receive-errors {
47             type uint64;
48         }
49         leaf transmit-errors {
50             type uint64;
51         }
52         leaf receive-frame-error {
53             type uint64;
54         }
55         leaf receive-over-run-error {
56             type uint64;
57         }
58         leaf receive-crc-error {
59             type uint64;
60         }
61         leaf collision-count {
62             type uint64;
63         }
64         uses duration;
65     }
66     
67     grouping generic-statistics {
68         description "Generic grouping for statistics";
69         leaf packet-count {
70             type yang:counter64;
71         }
72
73         leaf byte-count {
74             type yang:counter64;
75         }
76         uses duration;
77         }
78     
79     grouping generic-table-statistics {
80         description "Generic grouping holding generic statistics related to switch table";
81         leaf active-flows {
82             type yang:counter32;
83         }
84         leaf packets-looked-up {
85                 type yang:counter64;
86         }
87         leaf packets-matched {
88                 type yang:counter64;
89         }
90     }
91     
92     grouping aggregate-flow-statistics {
93         description "Aggregate flow statistics";
94         leaf packet-count {
95             type yang:counter64;
96         }
97
98         leaf byte-count {
99             type yang:counter64;
100         }
101         leaf flow-count {
102             type yang:counter32;
103         }
104     }
105     
106     grouping generic-queue-statistics {
107         description "Generic statistics of switch port attached queues.";
108         leaf transmitted-bytes {
109                         type yang:counter64;
110         }
111         
112         leaf transmitted-packets {
113                         type yang:counter64;
114         }
115         
116         leaf transmission-errors {
117                         type yang:counter64;
118         }
119                 uses duration;          
120     }
121     
122 }