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

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.