blob: 7e615718a24b026c69f7af643ce9c9e81bde81a2 [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' : [
30 'match',
31 'cookie',
32 'priority',
33 'reason',
34 'duration_sec',
35 'duration_nsec',
36 'idle_timeout',
37 'packet_count',
38 'byte_count'
39 ],
40 'ofp_port_stats' : [
41 'port_no',
42 'rx_packets',
43 'tx_packets',
44 'rx_bytes',
45 'tx_bytes',
46 'rx_dropped',
47 'tx_dropped',
48 'rx_errors',
49 'tx_errors',
50 'rx_frame_err',
51 'rx_over_err',
52 'rx_crc_err',
53 'collisions'
54 ],
55 'ofp_queue_stats' : [
56 'port_no',
57 'queue_id',
58 'tx_bytes',
59 'tx_packets',
60 'tx_errors'
61 ],
62 'ofp_action_tp_port' : [
63 'type',
64 'len',
65 'tp_port'
66 ],
67 'ofp_port_stats_request' : [
68 'port_no'
69 ],
70 'ofp_stats_request' : [
71 'type',
72 'flags'
73 ],
74 'ofp_aggregate_stats_request' : [
75 'match',
76 'table_id',
77 'out_port'
78 ],
79 'ofp_port_status' : [
80 'reason',
81 'desc'
82 ],
83 'ofp_action_header' : [
84 'type',
85 'len'
86 ],
87 'ofp_port_mod' : [
88 'port_no',
89 'hw_addr',
90 'config',
91 'mask',
92 'advertise'
93 ],
94 'ofp_action_vlan_vid' : [
95 'type',
96 'len',
97 'vlan_vid'
98 ],
99 'ofp_action_output' : [
100 'type',
101 'len',
102 'port',
103 'max_len'
104 ],
105 'ofp_switch_config' : [
106 'flags',
107 'miss_send_len'
108 ],
109 'ofp_action_nw_tos' : [
110 'type',
111 'len',
112 'nw_tos'
113 ],
114 'ofp_queue_get_config_reply' : [
115 'port'
116 ],
117 'ofp_packet_in' : [
118 'buffer_id',
119 'total_len',
120 'in_port',
121 'reason'
122 ],
123 'ofp_flow_stats' : [
124 'length',
125 'table_id',
126 'match',
127 'duration_sec',
128 'duration_nsec',
129 'priority',
130 'idle_timeout',
131 'hard_timeout',
132 'cookie',
133 'packet_count',
134 'byte_count'
135 ],
136 'ofp_flow_stats_request' : [
137 'match',
138 'table_id',
139 'out_port'
140 ],
141 'ofp_action_vendor_header' : [
142 'type',
143 'len',
144 'vendor'
145 ],
146 'ofp_stats_reply' : [
147 'type',
148 'flags'
149 ],
150 'ofp_queue_stats_request' : [
151 'port_no',
152 'queue_id'
153 ],
154 'ofp_desc_stats' : [
155 'mfr_desc',
156 'hw_desc',
157 'sw_desc',
158 'serial_num',
159 'dp_desc'
160 ],
161 'ofp_queue_get_config_request' : [
162 'port'
163 ],
164 'ofp_packet_queue' : [
165 'queue_id',
166 'len'
167 ],
168 'ofp_action_dl_addr' : [
169 'type',
170 'len',
171 'dl_addr'
172 ],
173 'ofp_queue_prop_header' : [
174 'property',
175 'len'
176 ],
177 'ofp_queue_prop_min_rate' : [
178 'prop_header',
179 'rate'
180 ],
181 'ofp_action_enqueue' : [
182 'type',
183 'len',
184 'port',
185 'queue_id'
186 ],
187 'ofp_switch_features' : [
188 'datapath_id',
189 'n_buffers',
190 'n_tables',
191 'capabilities',
192 'actions'
193 ],
194 'ofp_match' : [
195 'wildcards',
196 'in_port',
Rich Lane5b44ab42013-03-11 12:37:45 -0700197 'eth_src',
198 'eth_dst',
199 'vlan_vid',
200 'vlan_pcp',
201 'eth_type',
202 'ip_dscp',
203 'ip_proto',
204 'ipv4_src',
205 'ipv4_dst',
206 'tcp_src',
207 'tcp_dst'
Rich Lane6242d9f2013-01-06 17:35:39 -0800208 ],
209 'ofp_header' : [
210 'version',
211 'type',
212 'length',
213 'xid'
214 ],
215 'ofp_vendor_header' : [
216 'vendor'
217 ],
218 'ofp_packet_out' : [
219 'buffer_id',
220 'in_port',
221 'actions_len'
222 ],
223 'ofp_action_nw_addr' : [
224 'type',
225 'len',
226 'nw_addr'
227 ],
228 'ofp_action_vlan_pcp' : [
229 'type',
230 'len',
231 'vlan_pcp'
232 ],
233 'ofp_flow_mod' : [
234 'match',
235 'cookie',
236 'command',
237 'idle_timeout',
238 'hard_timeout',
239 'priority',
240 'buffer_id',
241 'out_port',
242 'flags'
243 ],
244 'ofp_error_msg' : [
245 'type',
246 'code'
247 ],
248 '_ignore' : []
249}