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