6d5bec1280ffde4cee89690032ec3b40b6fc318b
[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 node-connector-statistics {
13         container packets {
14             leaf received {
15                 type uint64;
16             }
17             leaf transmitted {
18                 type uint64;
19             }
20         }
21         container bytes {
22             leaf received {
23                 type uint64;
24             }
25             leaf transmitted {
26                 type uint64;
27             }
28         }
29         leaf receive-drops {
30             type uint64;
31         }
32         leaf transmit-drops {
33             type uint64;
34         }
35         leaf receive-errors {
36             type uint64;
37         }
38         leaf transmit-errors {
39             type uint64;
40         }
41         leaf receive-frame-error {
42             type uint64;
43         }
44         leaf receive-over-run-error {
45             type uint64;
46         }
47         leaf receive-crc-error {
48             type uint64;
49         }
50         leaf collision-count {
51             type uint64;
52         }
53         
54         container duration {
55             leaf second {
56                 type yang:counter32;
57             }
58             leaf nanosecond {
59                 type yang:counter32;
60             }
61         }
62     }
63     
64     grouping generic-statistics {
65         description "Generic grouping for statistics";
66         leaf packet-count {
67             type yang:counter64;
68         }
69
70         leaf byte-count {
71             type yang:counter64;
72         }
73
74         container duration {
75             leaf second {
76                 type yang:counter64;
77             }
78             leaf nanosecond {
79                 type yang:counter64;
80             }
81         }
82     }
83     
84     grouping generic-table-statistics {
85         description "Generic grouping holding generic statistics related to switch table";
86         leaf active-flows {
87             type yang:counter32;
88         }
89         leaf packets-looked-up {
90                 type yang:counter64;
91         }
92         leaf packets-matched {
93                 type yang:counter64;
94         }
95     }
96     
97     grouping aggregate-flow-statistics {
98         description "Aggregate flow statistics";
99         leaf packet-count {
100             type yang:counter64;
101         }
102
103         leaf byte-count {
104             type yang:counter64;
105         }
106         leaf flow-count {
107             type yang:counter32;
108         }
109     }
110     
111 }