blob: cd60deb419fc00cb936167050d83c2cdb3a31fad [file] [log] [blame]
Rich Lane629393f2013-01-10 15:37:33 -08001
2# Class to array member map
3class_to_members_map = {
4 'ofp_aggregate_stats_reply' : [
5 'packet_count',
6 'byte_count',
7 'flow_count'
8 ],
9 'ofp_role_request' : [
10 'role',
11 'generation_id'
12 ],
13 'ofp_table_stats' : [
14 'table_id',
15 'name',
16 'match',
17 'wildcards',
18 'write_actions',
19 'apply_actions',
20 'write_setfields',
21 'apply_setfields',
22 'metadata_match',
23 'metadata_write',
24 'instructions',
25 'config',
26 'max_entries',
27 'active_count',
28 'lookup_count',
29 'matched_count'
30 ],
31 'ofp_table_mod' : [
32 'table_id',
33 'config'
34 ],
35 'ofp_group_stats' : [
36 'length',
37 'group_id',
38 'ref_count',
39 'packet_count',
40 'byte_count'
41 ],
42 'ofp_instruction_actions' : [
43 'type',
44 'len'
45 ],
46 'ofp_queue_stats' : [
47 'port_no',
48 'queue_id',
49 'tx_bytes',
50 'tx_packets',
51 'tx_errors'
52 ],
53 'ofp_packet_in' : [
54 'buffer_id',
55 'total_len',
56 'reason',
57 'table_id',
58 'match'
59 ],
60 'ofp_error_experimenter_msg' : [
61 'type',
62 'exp_type',
63 'experimenter'
64 ],
65 'ofp_bucket_counter' : [
66 'packet_count',
67 'byte_count'
68 ],
69 'ofp_port_stats_request' : [
70 'port_no'
71 ],
72 'ofp_stats_request' : [
73 'type',
74 'flags'
75 ],
76 'ofp_instruction' : [
77 'type',
78 'len'
79 ],
80 'ofp_group_stats_request' : [
81 'group_id'
82 ],
83 'ofp_experimenter_header' : [
84 'experimenter',
85 'exp_type'
86 ],
87 'ofp_aggregate_stats_request' : [
88 'table_id',
89 'out_port',
90 'out_group',
91 'cookie',
92 'cookie_mask',
93 'match'
94 ],
95 'ofp_queue_get_config_request' : [
96 'port'
97 ],
98 'ofp_action_nw_ttl' : [
99 'type',
100 'len',
101 'nw_ttl'
102 ],
103 'ofp_port_status' : [
104 'reason',
105 'desc'
106 ],
107 'ofp_action_header' : [
108 'type',
109 'len'
110 ],
111 'ofp_port_mod' : [
112 'port_no',
113 'hw_addr',
114 'config',
115 'mask',
116 'advertise'
117 ],
118 'ofp_action_output' : [
119 'type',
120 'len',
121 'port',
122 'max_len'
123 ],
124 'ofp_switch_config' : [
125 'flags',
126 'miss_send_len'
127 ],
128 'ofp_queue_prop_experimenter' : [
129 'prop_header',
130 'experimenter'
131 ],
132 'ofp_instruction_write_metadata' : [
133 'type',
134 'len',
135 'metadata',
136 'metadata_mask'
137 ],
138 'ofp_action_experimenter_header' : [
139 'type',
140 'len',
141 'experimenter'
142 ],
143 'ofp_queue_get_config_reply' : [
144 'port'
145 ],
146 'ofp_oxm_experimenter_header' : [
147 'oxm_header',
148 'experimenter'
149 ],
150 'ofp_action_set_queue' : [
151 'type',
152 'len',
153 'queue_id'
154 ],
155 'ofp_action_set_field' : [
156 'type',
157 'len',
158 'field'
159 ],
160 'ofp_flow_stats' : [
161 'length',
162 'table_id',
163 'duration_sec',
164 'duration_nsec',
165 'priority',
166 'idle_timeout',
167 'hard_timeout',
168 'cookie',
169 'packet_count',
170 'byte_count',
171 'match'
172 ],
173 'ofp_flow_removed' : [
174 'cookie',
175 'priority',
176 'reason',
177 'table_id',
178 'duration_sec',
179 'duration_nsec',
180 'idle_timeout',
181 'hard_timeout',
182 'packet_count',
183 'byte_count',
184 'match'
185 ],
186 'ofp_queue_prop_min_rate' : [
187 'prop_header',
188 'rate'
189 ],
190 'ofp_header' : [
191 'version',
192 'type',
193 'length',
194 'xid'
195 ],
196 'ofp_stats_reply' : [
197 'type',
198 'flags'
199 ],
200 'ofp_queue_stats_request' : [
201 'port_no',
202 'queue_id'
203 ],
204 'ofp_group_features_stats' : [
205 'types',
206 'capabilities',
207 'max_groups',
208 'actions'
209 ],
210 'ofp_group_mod' : [
211 'command',
212 'type',
213 'group_id'
214 ],
215 'ofp_port_stats' : [
216 'port_no',
217 'rx_packets',
218 'tx_packets',
219 'rx_bytes',
220 'tx_bytes',
221 'rx_dropped',
222 'tx_dropped',
223 'rx_errors',
224 'tx_errors',
225 'rx_frame_err',
226 'rx_over_err',
227 'rx_crc_err',
228 'collisions'
229 ],
230 'ofp_packet_queue' : [
231 'queue_id',
232 'port',
233 'len'
234 ],
235 'ofp_port' : [
236 'port_no',
237 'hw_addr',
238 'name',
239 'config',
240 'state',
241 'curr',
242 'advertised',
243 'supported',
244 'peer',
245 'curr_speed',
246 'max_speed'
247 ],
248 'ofp_switch_features' : [
249 'datapath_id',
250 'n_buffers',
251 'n_tables',
252 'capabilities',
253 'reserved'
254 ],
255 'ofp_queue_prop_header' : [
256 'property',
257 'len'
258 ],
259 'ofp_flow_stats_request' : [
260 'table_id',
261 'out_port',
262 'out_group',
263 'cookie',
264 'cookie_mask',
265 'match'
266 ],
267 'ofp_bucket' : [
268 'len',
269 'weight',
270 'watch_port',
271 'watch_group'
272 ],
273 'ofp_action_pop_mpls' : [
274 'type',
275 'len',
276 'ethertype'
277 ],
278 'ofp_match' : [
279 'type',
280 'length'
281 ],
282 'ofp_flow_mod' : [
283 'cookie',
284 'cookie_mask',
285 'table_id',
286 'command',
287 'idle_timeout',
288 'hard_timeout',
289 'priority',
290 'buffer_id',
291 'out_port',
292 'out_group',
293 'flags',
294 'match'
295 ],
296 'ofp_packet_out' : [
297 'buffer_id',
298 'in_port',
299 'actions_len'
300 ],
301 'ofp_instruction_goto_table' : [
302 'type',
303 'len',
304 'table_id'
305 ],
306 'ofp_queue_prop_max_rate' : [
307 'prop_header',
308 'rate'
309 ],
310 'ofp_experimenter_stats_header' : [
311 'experimenter',
312 'exp_type'
313 ],
314 'ofp_action_group' : [
315 'type',
316 'len',
317 'group_id'
318 ],
319 'ofp_desc_stats' : [
320 'mfr_desc',
321 'hw_desc',
322 'sw_desc',
323 'serial_num',
324 'dp_desc'
325 ],
326 'ofp_action_push' : [
327 'type',
328 'len',
329 'ethertype'
330 ],
331 'ofp_group_desc_stats' : [
332 'length',
333 'type',
334 'group_id'
335 ],
336 'ofp_error_msg' : [
337 'type',
338 'code'
339 ],
340 'ofp_action_mpls_ttl' : [
341 'type',
342 'len',
343 'mpls_ttl'
344 ],
345 '_ignore' : []
346}