blob: b638eec5a00198558d5c66c1537a3b522e91dbad [file] [log] [blame]
Rich Lane6242d9f2013-01-06 17:35:39 -08001
2# Class to array member map
3class_to_members_map = {
4 'ofp_phy_port' : [
5 'port_no',
6 'hw_addr',
7 'name',
8 'config',
9 'state',
10 'curr',
11 'advertised',
12 'supported',
13 'peer'
14 ],
15 'ofp_aggregate_stats_reply' : [
16 'packet_count',
17 'byte_count',
18 'flow_count'
19 ],
20 'ofp_table_stats' : [
21 'table_id',
22 'name',
23 'wildcards',
24 'max_entries',
25 'active_count',
26 'lookup_count',
27 'matched_count'
28 ],
29 'ofp_flow_removed' : [
Rich Laneb73808c2013-03-11 15:22:23 -070030 'version',
31 'type',
32 'length',
33 'xid',
Rich Lane6242d9f2013-01-06 17:35:39 -080034 'match',
35 'cookie',
36 'priority',
37 'reason',
38 'duration_sec',
39 'duration_nsec',
40 'idle_timeout',
41 'packet_count',
42 'byte_count'
43 ],
44 'ofp_port_stats' : [
45 'port_no',
46 'rx_packets',
47 'tx_packets',
48 'rx_bytes',
49 'tx_bytes',
50 'rx_dropped',
51 'tx_dropped',
52 'rx_errors',
53 'tx_errors',
54 'rx_frame_err',
55 'rx_over_err',
56 'rx_crc_err',
57 'collisions'
58 ],
59 'ofp_queue_stats' : [
60 'port_no',
61 'queue_id',
62 'tx_bytes',
63 'tx_packets',
64 'tx_errors'
65 ],
66 'ofp_action_tp_port' : [
67 'type',
68 'len',
69 'tp_port'
70 ],
71 'ofp_port_stats_request' : [
72 'port_no'
73 ],
74 'ofp_stats_request' : [
Rich Laneb73808c2013-03-11 15:22:23 -070075 'version',
76 'type',
77 'length',
78 'xid',
Rich Lane7c7342a2013-03-11 14:16:58 -070079 'stats_type',
Rich Lane6242d9f2013-01-06 17:35:39 -080080 'flags'
81 ],
Rich Laneb73808c2013-03-11 15:22:23 -070082 'ofp_hello' : [
83 'version',
84 'type',
85 'length',
86 'xid'
87 ],
Rich Lane6242d9f2013-01-06 17:35:39 -080088 'ofp_aggregate_stats_request' : [
89 'match',
90 'table_id',
91 'out_port'
92 ],
93 'ofp_port_status' : [
Rich Laneb73808c2013-03-11 15:22:23 -070094 'version',
95 'type',
96 'length',
97 'xid',
Rich Lane6242d9f2013-01-06 17:35:39 -080098 'reason',
99 'desc'
100 ],
101 'ofp_action_header' : [
102 'type',
103 'len'
104 ],
105 'ofp_port_mod' : [
Rich Laneb73808c2013-03-11 15:22:23 -0700106 'version',
107 'type',
108 'length',
109 'xid',
Rich Lane6242d9f2013-01-06 17:35:39 -0800110 'port_no',
111 'hw_addr',
112 'config',
113 'mask',
114 'advertise'
115 ],
116 'ofp_action_vlan_vid' : [
117 'type',
118 'len',
119 'vlan_vid'
120 ],
121 'ofp_action_output' : [
122 'type',
123 'len',
124 'port',
125 'max_len'
126 ],
127 'ofp_switch_config' : [
Rich Laneb73808c2013-03-11 15:22:23 -0700128 'version',
129 'type',
130 'length',
131 'xid',
Rich Lane6242d9f2013-01-06 17:35:39 -0800132 'flags',
133 'miss_send_len'
134 ],
135 'ofp_action_nw_tos' : [
136 'type',
137 'len',
138 'nw_tos'
139 ],
140 'ofp_queue_get_config_reply' : [
Rich Laneb73808c2013-03-11 15:22:23 -0700141 'version',
142 'type',
143 'length',
144 'xid',
Rich Lane6242d9f2013-01-06 17:35:39 -0800145 'port'
146 ],
147 'ofp_packet_in' : [
Rich Laneb73808c2013-03-11 15:22:23 -0700148 'version',
149 'type',
150 'length',
151 'xid',
Rich Lane6242d9f2013-01-06 17:35:39 -0800152 'buffer_id',
153 'total_len',
154 'in_port',
155 'reason'
156 ],
157 'ofp_flow_stats' : [
158 'length',
159 'table_id',
160 'match',
161 'duration_sec',
162 'duration_nsec',
163 'priority',
164 'idle_timeout',
165 'hard_timeout',
166 'cookie',
167 'packet_count',
168 'byte_count'
169 ],
170 'ofp_flow_stats_request' : [
171 'match',
172 'table_id',
173 'out_port'
174 ],
175 'ofp_action_vendor_header' : [
176 'type',
177 'len',
178 'vendor'
179 ],
180 'ofp_stats_reply' : [
Rich Laneb73808c2013-03-11 15:22:23 -0700181 'version',
182 'type',
183 'length',
184 'xid',
Rich Lane7c7342a2013-03-11 14:16:58 -0700185 'stats_type',
Rich Lane6242d9f2013-01-06 17:35:39 -0800186 'flags'
187 ],
188 'ofp_queue_stats_request' : [
189 'port_no',
190 'queue_id'
191 ],
192 'ofp_desc_stats' : [
193 'mfr_desc',
194 'hw_desc',
195 'sw_desc',
196 'serial_num',
197 'dp_desc'
198 ],
199 'ofp_queue_get_config_request' : [
Rich Laneb73808c2013-03-11 15:22:23 -0700200 'version',
201 'type',
202 'length',
203 'xid',
Rich Lane6242d9f2013-01-06 17:35:39 -0800204 'port'
205 ],
206 'ofp_packet_queue' : [
207 'queue_id',
208 'len'
209 ],
210 'ofp_action_dl_addr' : [
211 'type',
212 'len',
213 'dl_addr'
214 ],
215 'ofp_queue_prop_header' : [
216 'property',
217 'len'
218 ],
219 'ofp_queue_prop_min_rate' : [
220 'prop_header',
221 'rate'
222 ],
223 'ofp_action_enqueue' : [
224 'type',
225 'len',
226 'port',
227 'queue_id'
228 ],
229 'ofp_switch_features' : [
Rich Laneb73808c2013-03-11 15:22:23 -0700230 'version',
231 'type',
232 'length',
233 'xid',
Rich Lane6242d9f2013-01-06 17:35:39 -0800234 'datapath_id',
235 'n_buffers',
236 'n_tables',
237 'capabilities',
238 'actions'
239 ],
240 'ofp_match' : [
241 'wildcards',
242 'in_port',
Rich Lane5b44ab42013-03-11 12:37:45 -0700243 'eth_src',
244 'eth_dst',
245 'vlan_vid',
246 'vlan_pcp',
247 'eth_type',
248 'ip_dscp',
249 'ip_proto',
250 'ipv4_src',
251 'ipv4_dst',
252 'tcp_src',
253 'tcp_dst'
Rich Lane6242d9f2013-01-06 17:35:39 -0800254 ],
255 'ofp_header' : [
256 'version',
257 'type',
258 'length',
259 'xid'
260 ],
261 'ofp_vendor_header' : [
Rich Laneb73808c2013-03-11 15:22:23 -0700262 'version',
263 'type',
264 'length',
265 'xid',
Rich Lane6242d9f2013-01-06 17:35:39 -0800266 'vendor'
267 ],
268 'ofp_packet_out' : [
Rich Laneb73808c2013-03-11 15:22:23 -0700269 'version',
270 'type',
271 'length',
272 'xid',
Rich Lane6242d9f2013-01-06 17:35:39 -0800273 'buffer_id',
274 'in_port',
275 'actions_len'
276 ],
277 'ofp_action_nw_addr' : [
278 'type',
279 'len',
280 'nw_addr'
281 ],
282 'ofp_action_vlan_pcp' : [
283 'type',
284 'len',
285 'vlan_pcp'
286 ],
287 'ofp_flow_mod' : [
Rich Laneb73808c2013-03-11 15:22:23 -0700288 'version',
289 'type',
290 'length',
291 'xid',
Rich Lane6242d9f2013-01-06 17:35:39 -0800292 'match',
293 'cookie',
294 'command',
295 'idle_timeout',
296 'hard_timeout',
297 'priority',
298 'buffer_id',
299 'out_port',
300 'flags'
301 ],
302 'ofp_error_msg' : [
Rich Laneb73808c2013-03-11 15:22:23 -0700303 'version',
304 'type',
305 'length',
306 'xid',
Rich Lane4e361bb2013-03-11 13:57:31 -0700307 'err_type',
Rich Lane6242d9f2013-01-06 17:35:39 -0800308 'code'
309 ],
310 '_ignore' : []
311}