Rich Lane | 6242d9f | 2013-01-06 17:35:39 -0800 | [diff] [blame] | 1 | |
| 2 | # Class to array member map |
| 3 | class_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 Lane | b73808c | 2013-03-11 15:22:23 -0700 | [diff] [blame^] | 30 | 'version', |
| 31 | 'type', |
| 32 | 'length', |
| 33 | 'xid', |
Rich Lane | 6242d9f | 2013-01-06 17:35:39 -0800 | [diff] [blame] | 34 | '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 Lane | b73808c | 2013-03-11 15:22:23 -0700 | [diff] [blame^] | 75 | 'version', |
| 76 | 'type', |
| 77 | 'length', |
| 78 | 'xid', |
Rich Lane | 7c7342a | 2013-03-11 14:16:58 -0700 | [diff] [blame] | 79 | 'stats_type', |
Rich Lane | 6242d9f | 2013-01-06 17:35:39 -0800 | [diff] [blame] | 80 | 'flags' |
| 81 | ], |
Rich Lane | b73808c | 2013-03-11 15:22:23 -0700 | [diff] [blame^] | 82 | 'ofp_hello' : [ |
| 83 | 'version', |
| 84 | 'type', |
| 85 | 'length', |
| 86 | 'xid' |
| 87 | ], |
Rich Lane | 6242d9f | 2013-01-06 17:35:39 -0800 | [diff] [blame] | 88 | 'ofp_aggregate_stats_request' : [ |
| 89 | 'match', |
| 90 | 'table_id', |
| 91 | 'out_port' |
| 92 | ], |
| 93 | 'ofp_port_status' : [ |
Rich Lane | b73808c | 2013-03-11 15:22:23 -0700 | [diff] [blame^] | 94 | 'version', |
| 95 | 'type', |
| 96 | 'length', |
| 97 | 'xid', |
Rich Lane | 6242d9f | 2013-01-06 17:35:39 -0800 | [diff] [blame] | 98 | 'reason', |
| 99 | 'desc' |
| 100 | ], |
| 101 | 'ofp_action_header' : [ |
| 102 | 'type', |
| 103 | 'len' |
| 104 | ], |
| 105 | 'ofp_port_mod' : [ |
Rich Lane | b73808c | 2013-03-11 15:22:23 -0700 | [diff] [blame^] | 106 | 'version', |
| 107 | 'type', |
| 108 | 'length', |
| 109 | 'xid', |
Rich Lane | 6242d9f | 2013-01-06 17:35:39 -0800 | [diff] [blame] | 110 | '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 Lane | b73808c | 2013-03-11 15:22:23 -0700 | [diff] [blame^] | 128 | 'version', |
| 129 | 'type', |
| 130 | 'length', |
| 131 | 'xid', |
Rich Lane | 6242d9f | 2013-01-06 17:35:39 -0800 | [diff] [blame] | 132 | '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 Lane | b73808c | 2013-03-11 15:22:23 -0700 | [diff] [blame^] | 141 | 'version', |
| 142 | 'type', |
| 143 | 'length', |
| 144 | 'xid', |
Rich Lane | 6242d9f | 2013-01-06 17:35:39 -0800 | [diff] [blame] | 145 | 'port' |
| 146 | ], |
| 147 | 'ofp_packet_in' : [ |
Rich Lane | b73808c | 2013-03-11 15:22:23 -0700 | [diff] [blame^] | 148 | 'version', |
| 149 | 'type', |
| 150 | 'length', |
| 151 | 'xid', |
Rich Lane | 6242d9f | 2013-01-06 17:35:39 -0800 | [diff] [blame] | 152 | '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 Lane | b73808c | 2013-03-11 15:22:23 -0700 | [diff] [blame^] | 181 | 'version', |
| 182 | 'type', |
| 183 | 'length', |
| 184 | 'xid', |
Rich Lane | 7c7342a | 2013-03-11 14:16:58 -0700 | [diff] [blame] | 185 | 'stats_type', |
Rich Lane | 6242d9f | 2013-01-06 17:35:39 -0800 | [diff] [blame] | 186 | '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 Lane | b73808c | 2013-03-11 15:22:23 -0700 | [diff] [blame^] | 200 | 'version', |
| 201 | 'type', |
| 202 | 'length', |
| 203 | 'xid', |
Rich Lane | 6242d9f | 2013-01-06 17:35:39 -0800 | [diff] [blame] | 204 | '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 Lane | b73808c | 2013-03-11 15:22:23 -0700 | [diff] [blame^] | 230 | 'version', |
| 231 | 'type', |
| 232 | 'length', |
| 233 | 'xid', |
Rich Lane | 6242d9f | 2013-01-06 17:35:39 -0800 | [diff] [blame] | 234 | 'datapath_id', |
| 235 | 'n_buffers', |
| 236 | 'n_tables', |
| 237 | 'capabilities', |
| 238 | 'actions' |
| 239 | ], |
| 240 | 'ofp_match' : [ |
| 241 | 'wildcards', |
| 242 | 'in_port', |
Rich Lane | 5b44ab4 | 2013-03-11 12:37:45 -0700 | [diff] [blame] | 243 | '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 Lane | 6242d9f | 2013-01-06 17:35:39 -0800 | [diff] [blame] | 254 | ], |
| 255 | 'ofp_header' : [ |
| 256 | 'version', |
| 257 | 'type', |
| 258 | 'length', |
| 259 | 'xid' |
| 260 | ], |
| 261 | 'ofp_vendor_header' : [ |
Rich Lane | b73808c | 2013-03-11 15:22:23 -0700 | [diff] [blame^] | 262 | 'version', |
| 263 | 'type', |
| 264 | 'length', |
| 265 | 'xid', |
Rich Lane | 6242d9f | 2013-01-06 17:35:39 -0800 | [diff] [blame] | 266 | 'vendor' |
| 267 | ], |
| 268 | 'ofp_packet_out' : [ |
Rich Lane | b73808c | 2013-03-11 15:22:23 -0700 | [diff] [blame^] | 269 | 'version', |
| 270 | 'type', |
| 271 | 'length', |
| 272 | 'xid', |
Rich Lane | 6242d9f | 2013-01-06 17:35:39 -0800 | [diff] [blame] | 273 | '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 Lane | b73808c | 2013-03-11 15:22:23 -0700 | [diff] [blame^] | 288 | 'version', |
| 289 | 'type', |
| 290 | 'length', |
| 291 | 'xid', |
Rich Lane | 6242d9f | 2013-01-06 17:35:39 -0800 | [diff] [blame] | 292 | '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 Lane | b73808c | 2013-03-11 15:22:23 -0700 | [diff] [blame^] | 303 | 'version', |
| 304 | 'type', |
| 305 | 'length', |
| 306 | 'xid', |
Rich Lane | 4e361bb | 2013-03-11 13:57:31 -0700 | [diff] [blame] | 307 | 'err_type', |
Rich Lane | 6242d9f | 2013-01-06 17:35:39 -0800 | [diff] [blame] | 308 | 'code' |
| 309 | ], |
| 310 | '_ignore' : [] |
| 311 | } |