Carmelo Cascone | d4e7a77 | 2016-05-03 11:21:29 -0700 | [diff] [blame] | 1 | { |
| 2 | "header_types": [ |
| 3 | { |
| 4 | "name": "standard_metadata_t", |
| 5 | "id": 0, |
| 6 | "fields": [ |
| 7 | [ |
| 8 | "ingress_port", |
| 9 | 9 |
| 10 | ], |
| 11 | [ |
| 12 | "packet_length", |
| 13 | 32 |
| 14 | ], |
| 15 | [ |
| 16 | "egress_spec", |
| 17 | 9 |
| 18 | ], |
| 19 | [ |
| 20 | "egress_port", |
| 21 | 9 |
| 22 | ], |
| 23 | [ |
| 24 | "egress_instance", |
| 25 | 32 |
| 26 | ], |
| 27 | [ |
| 28 | "instance_type", |
| 29 | 32 |
| 30 | ], |
| 31 | [ |
| 32 | "clone_spec", |
| 33 | 32 |
| 34 | ], |
| 35 | [ |
| 36 | "_padding", |
| 37 | 5 |
| 38 | ] |
| 39 | ], |
| 40 | "length_exp": null, |
| 41 | "max_length": null |
| 42 | }, |
| 43 | { |
| 44 | "name": "ethernet_t", |
| 45 | "id": 1, |
| 46 | "fields": [ |
| 47 | [ |
| 48 | "dstAddr", |
| 49 | 48 |
| 50 | ], |
| 51 | [ |
| 52 | "srcAddr", |
| 53 | 48 |
| 54 | ], |
| 55 | [ |
| 56 | "etherType", |
| 57 | 16 |
| 58 | ] |
| 59 | ], |
| 60 | "length_exp": null, |
| 61 | "max_length": null |
| 62 | }, |
| 63 | { |
| 64 | "name": "intrinsic_metadata_t", |
| 65 | "id": 2, |
| 66 | "fields": [ |
| 67 | [ |
| 68 | "ingress_global_timestamp", |
| 69 | 32 |
| 70 | ], |
| 71 | [ |
| 72 | "lf_field_list", |
| 73 | 32 |
| 74 | ], |
| 75 | [ |
| 76 | "mcast_grp", |
| 77 | 16 |
| 78 | ], |
| 79 | [ |
| 80 | "egress_rid", |
| 81 | 16 |
| 82 | ] |
| 83 | ], |
| 84 | "length_exp": null, |
| 85 | "max_length": null |
| 86 | } |
| 87 | ], |
| 88 | "headers": [ |
| 89 | { |
| 90 | "name": "standard_metadata", |
| 91 | "id": 0, |
| 92 | "header_type": "standard_metadata_t", |
| 93 | "metadata": true |
| 94 | }, |
| 95 | { |
| 96 | "name": "ethernet", |
| 97 | "id": 1, |
| 98 | "header_type": "ethernet_t", |
| 99 | "metadata": false |
| 100 | }, |
| 101 | { |
| 102 | "name": "intrinsic_metadata", |
| 103 | "id": 2, |
| 104 | "header_type": "intrinsic_metadata_t", |
| 105 | "metadata": true |
| 106 | } |
| 107 | ], |
| 108 | "header_stacks": [], |
| 109 | "parsers": [ |
| 110 | { |
| 111 | "name": "parser", |
| 112 | "id": 0, |
| 113 | "init_state": "start", |
| 114 | "parse_states": [ |
| 115 | { |
| 116 | "name": "start", |
| 117 | "id": 0, |
| 118 | "parser_ops": [], |
| 119 | "transition_key": [], |
| 120 | "transitions": [ |
| 121 | { |
| 122 | "value": "default", |
| 123 | "mask": null, |
| 124 | "next_state": "parse_ethernet" |
| 125 | } |
| 126 | ] |
| 127 | }, |
| 128 | { |
| 129 | "name": "parse_ethernet", |
| 130 | "id": 1, |
| 131 | "parser_ops": [ |
| 132 | { |
| 133 | "op": "extract", |
| 134 | "parameters": [ |
| 135 | { |
| 136 | "type": "regular", |
| 137 | "value": "ethernet" |
| 138 | } |
| 139 | ] |
| 140 | } |
| 141 | ], |
| 142 | "transition_key": [], |
| 143 | "transitions": [ |
| 144 | { |
| 145 | "value": "default", |
| 146 | "mask": null, |
| 147 | "next_state": null |
| 148 | } |
| 149 | ] |
| 150 | } |
| 151 | ] |
| 152 | } |
| 153 | ], |
| 154 | "deparsers": [ |
| 155 | { |
| 156 | "name": "deparser", |
| 157 | "id": 0, |
| 158 | "order": [ |
| 159 | "ethernet" |
| 160 | ] |
| 161 | } |
| 162 | ], |
| 163 | "meter_arrays": [], |
| 164 | "actions": [ |
| 165 | { |
| 166 | "name": "flood", |
| 167 | "id": 0, |
| 168 | "runtime_data": [], |
| 169 | "primitives": [ |
| 170 | { |
| 171 | "op": "modify_field", |
| 172 | "parameters": [ |
| 173 | { |
| 174 | "type": "field", |
| 175 | "value": [ |
| 176 | "intrinsic_metadata", |
| 177 | "mcast_grp" |
| 178 | ] |
| 179 | }, |
| 180 | { |
| 181 | "type": "field", |
| 182 | "value": [ |
| 183 | "standard_metadata", |
| 184 | "ingress_port" |
| 185 | ] |
| 186 | } |
| 187 | ] |
| 188 | } |
| 189 | ] |
| 190 | }, |
| 191 | { |
| 192 | "name": "_drop", |
| 193 | "id": 1, |
| 194 | "runtime_data": [], |
| 195 | "primitives": [ |
| 196 | { |
| 197 | "op": "modify_field", |
| 198 | "parameters": [ |
| 199 | { |
| 200 | "type": "field", |
| 201 | "value": [ |
| 202 | "standard_metadata", |
| 203 | "egress_spec" |
| 204 | ] |
| 205 | }, |
| 206 | { |
| 207 | "type": "hexstr", |
| 208 | "value": "0x1ff" |
| 209 | } |
| 210 | ] |
| 211 | } |
| 212 | ] |
| 213 | }, |
| 214 | { |
| 215 | "name": "fwd", |
| 216 | "id": 2, |
| 217 | "runtime_data": [ |
| 218 | { |
| 219 | "name": "port", |
| 220 | "bitwidth": 9 |
| 221 | } |
| 222 | ], |
| 223 | "primitives": [ |
| 224 | { |
| 225 | "op": "modify_field", |
| 226 | "parameters": [ |
| 227 | { |
| 228 | "type": "field", |
| 229 | "value": [ |
| 230 | "standard_metadata", |
| 231 | "egress_spec" |
| 232 | ] |
| 233 | }, |
| 234 | { |
| 235 | "type": "runtime_data", |
| 236 | "value": 0 |
| 237 | } |
| 238 | ] |
| 239 | } |
| 240 | ] |
| 241 | }, |
| 242 | { |
| 243 | "name": "push_to_cp", |
| 244 | "id": 3, |
| 245 | "runtime_data": [], |
| 246 | "primitives": [ |
| 247 | { |
| 248 | "op": "modify_field", |
| 249 | "parameters": [ |
| 250 | { |
| 251 | "type": "field", |
| 252 | "value": [ |
| 253 | "standard_metadata", |
| 254 | "egress_spec" |
| 255 | ] |
| 256 | }, |
| 257 | { |
| 258 | "type": "hexstr", |
| 259 | "value": "0x200" |
| 260 | } |
| 261 | ] |
| 262 | } |
| 263 | ] |
| 264 | } |
| 265 | ], |
| 266 | "pipelines": [ |
| 267 | { |
| 268 | "name": "ingress", |
| 269 | "id": 0, |
| 270 | "init_table": "table0", |
| 271 | "tables": [ |
| 272 | { |
| 273 | "name": "table0", |
| 274 | "id": 0, |
| 275 | "match_type": "ternary", |
| 276 | "type": "simple", |
| 277 | "max_size": 16384, |
| 278 | "with_counters": false, |
| 279 | "direct_meters": null, |
| 280 | "support_timeout": false, |
| 281 | "key": [ |
| 282 | { |
| 283 | "match_type": "ternary", |
| 284 | "target": [ |
| 285 | "standard_metadata", |
| 286 | "ingress_port" |
| 287 | ], |
| 288 | "mask": null |
| 289 | }, |
| 290 | { |
| 291 | "match_type": "ternary", |
| 292 | "target": [ |
| 293 | "ethernet", |
| 294 | "dstAddr" |
| 295 | ], |
| 296 | "mask": null |
| 297 | }, |
| 298 | { |
| 299 | "match_type": "ternary", |
| 300 | "target": [ |
| 301 | "ethernet", |
| 302 | "srcAddr" |
| 303 | ], |
| 304 | "mask": null |
| 305 | }, |
| 306 | { |
| 307 | "match_type": "ternary", |
| 308 | "target": [ |
| 309 | "ethernet", |
| 310 | "etherType" |
| 311 | ], |
| 312 | "mask": null |
| 313 | } |
| 314 | ], |
| 315 | "actions": [ |
| 316 | "fwd", |
| 317 | "flood", |
| 318 | "push_to_cp", |
| 319 | "_drop" |
| 320 | ], |
| 321 | "next_tables": { |
| 322 | "fwd": null, |
| 323 | "flood": null, |
| 324 | "push_to_cp": null, |
| 325 | "_drop": null |
| 326 | }, |
| 327 | "default_action": null, |
| 328 | "base_default_next": null |
| 329 | } |
| 330 | ], |
| 331 | "conditionals": [] |
| 332 | }, |
| 333 | { |
| 334 | "name": "egress", |
| 335 | "id": 1, |
| 336 | "init_table": null, |
| 337 | "tables": [], |
| 338 | "conditionals": [] |
| 339 | } |
| 340 | ], |
| 341 | "calculations": [], |
| 342 | "checksums": [], |
| 343 | "learn_lists": [], |
| 344 | "field_lists": [], |
| 345 | "counter_arrays": [], |
| 346 | "register_arrays": [], |
| 347 | "force_arith": [ |
| 348 | [ |
| 349 | "standard_metadata", |
| 350 | "ingress_port" |
| 351 | ], |
| 352 | [ |
| 353 | "standard_metadata", |
| 354 | "packet_length" |
| 355 | ], |
| 356 | [ |
| 357 | "standard_metadata", |
| 358 | "egress_spec" |
| 359 | ], |
| 360 | [ |
| 361 | "standard_metadata", |
| 362 | "egress_port" |
| 363 | ], |
| 364 | [ |
| 365 | "standard_metadata", |
| 366 | "egress_instance" |
| 367 | ], |
| 368 | [ |
| 369 | "standard_metadata", |
| 370 | "instance_type" |
| 371 | ], |
| 372 | [ |
| 373 | "standard_metadata", |
| 374 | "clone_spec" |
| 375 | ], |
| 376 | [ |
| 377 | "standard_metadata", |
| 378 | "_padding" |
| 379 | ], |
| 380 | [ |
| 381 | "intrinsic_metadata", |
| 382 | "ingress_global_timestamp" |
| 383 | ], |
| 384 | [ |
| 385 | "intrinsic_metadata", |
| 386 | "lf_field_list" |
| 387 | ], |
| 388 | [ |
| 389 | "intrinsic_metadata", |
| 390 | "mcast_grp" |
| 391 | ], |
| 392 | [ |
| 393 | "intrinsic_metadata", |
| 394 | "egress_rid" |
| 395 | ] |
| 396 | ] |
| 397 | } |