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