simple.json 7.27 KB
{
  "header_types": [
    {
      "name": "standard_metadata_t",
      "id": 0,
      "fields": [
        [
          "ingress_port",
          9
        ],
        [
          "packet_length",
          32
        ],
        [
          "egress_spec",
          9
        ],
        [
          "egress_port",
          9
        ],
        [
          "egress_instance",
          32
        ],
        [
          "instance_type",
          32
        ],
        [
          "clone_spec",
          32
        ],
        [
          "_padding",
          5
        ]
      ],
      "length_exp": null,
      "max_length": null
    },
    {
      "name": "ethernet_t",
      "id": 1,
      "fields": [
        [
          "dstAddr",
          48
        ],
        [
          "srcAddr",
          48
        ],
        [
          "etherType",
          16
        ]
      ],
      "length_exp": null,
      "max_length": null
    },
    {
      "name": "intrinsic_metadata_t",
      "id": 2,
      "fields": [
        [
          "ingress_global_timestamp",
          32
        ],
        [
          "lf_field_list",
          32
        ],
        [
          "mcast_grp",
          16
        ],
        [
          "egress_rid",
          16
        ]
      ],
      "length_exp": null,
      "max_length": null
    }
  ],
  "headers": [
    {
      "name": "standard_metadata",
      "id": 0,
      "header_type": "standard_metadata_t",
      "metadata": true
    },
    {
      "name": "ethernet",
      "id": 1,
      "header_type": "ethernet_t",
      "metadata": false
    },
    {
      "name": "intrinsic_metadata",
      "id": 2,
      "header_type": "intrinsic_metadata_t",
      "metadata": true
    }
  ],
  "header_stacks": [],
  "parsers": [
    {
      "name": "parser",
      "id": 0,
      "init_state": "start",
      "parse_states": [
        {
          "name": "start",
          "id": 0,
          "parser_ops": [],
          "transition_key": [],
          "transitions": [
            {
              "value": "default",
              "mask": null,
              "next_state": "parse_ethernet"
            }
          ]
        },
        {
          "name": "parse_ethernet",
          "id": 1,
          "parser_ops": [
            {
              "op": "extract",
              "parameters": [
                {
                  "type": "regular",
                  "value": "ethernet"
                }
              ]
            }
          ],
          "transition_key": [],
          "transitions": [
            {
              "value": "default",
              "mask": null,
              "next_state": null
            }
          ]
        }
      ]
    }
  ],
  "deparsers": [
    {
      "name": "deparser",
      "id": 0,
      "order": [
        "ethernet"
      ]
    }
  ],
  "meter_arrays": [],
  "actions": [
    {
      "name": "flood",
      "id": 0,
      "runtime_data": [],
      "primitives": [
        {
          "op": "modify_field",
          "parameters": [
            {
              "type": "field",
              "value": [
                "intrinsic_metadata",
                "mcast_grp"
              ]
            },
            {
              "type": "field",
              "value": [
                "standard_metadata",
                "ingress_port"
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "_drop",
      "id": 1,
      "runtime_data": [],
      "primitives": [
        {
          "op": "modify_field",
          "parameters": [
            {
              "type": "field",
              "value": [
                "standard_metadata",
                "egress_spec"
              ]
            },
            {
              "type": "hexstr",
              "value": "0x1ff"
            }
          ]
        }
      ]
    },
    {
      "name": "fwd",
      "id": 2,
      "runtime_data": [
        {
          "name": "port",
          "bitwidth": 9
        }
      ],
      "primitives": [
        {
          "op": "modify_field",
          "parameters": [
            {
              "type": "field",
              "value": [
                "standard_metadata",
                "egress_spec"
              ]
            },
            {
              "type": "runtime_data",
              "value": 0
            }
          ]
        }
      ]
    },
    {
      "name": "send_to_cpu",
      "id": 3,
      "runtime_data": [],
      "primitives": [
        {
          "op": "modify_field",
          "parameters": [
            {
              "type": "field",
              "value": [
                "standard_metadata",
                "egress_spec"
              ]
            },
            {
              "type": "hexstr",
              "value": "0xff"
            }
          ]
        }
      ]
    }
  ],
  "pipelines": [
    {
      "name": "ingress",
      "id": 0,
      "init_table": "table0",
      "tables": [
        {
          "name": "table0",
          "id": 0,
          "match_type": "ternary",
          "type": "simple",
          "max_size": 16384,
          "with_counters": false,
          "direct_meters": null,
          "support_timeout": false,
          "key": [
            {
              "match_type": "ternary",
              "target": [
                "standard_metadata",
                "ingress_port"
              ],
              "mask": null
            },
            {
              "match_type": "ternary",
              "target": [
                "ethernet",
                "dstAddr"
              ],
              "mask": null
            },
            {
              "match_type": "ternary",
              "target": [
                "ethernet",
                "srcAddr"
              ],
              "mask": null
            },
            {
              "match_type": "ternary",
              "target": [
                "ethernet",
                "etherType"
              ],
              "mask": null
            }
          ],
          "actions": [
            "fwd",
            "flood",
            "send_to_cpu",
            "_drop"
          ],
          "next_tables": {
            "fwd": null,
            "flood": null,
            "send_to_cpu": null,
            "_drop": null
          },
          "default_action": null,
          "base_default_next": null
        }
      ],
      "conditionals": []
    },
    {
      "name": "egress",
      "id": 1,
      "init_table": null,
      "tables": [],
      "conditionals": []
    }
  ],
  "calculations": [],
  "checksums": [],
  "learn_lists": [],
  "field_lists": [],
  "counter_arrays": [],
  "register_arrays": [],
  "force_arith": [
    [
      "standard_metadata",
      "ingress_port"
    ],
    [
      "standard_metadata",
      "packet_length"
    ],
    [
      "standard_metadata",
      "egress_spec"
    ],
    [
      "standard_metadata",
      "egress_port"
    ],
    [
      "standard_metadata",
      "egress_instance"
    ],
    [
      "standard_metadata",
      "instance_type"
    ],
    [
      "standard_metadata",
      "clone_spec"
    ],
    [
      "standard_metadata",
      "_padding"
    ],
    [
      "intrinsic_metadata",
      "ingress_global_timestamp"
    ],
    [
      "intrinsic_metadata",
      "lf_field_list"
    ],
    [
      "intrinsic_metadata",
      "mcast_grp"
    ],
    [
      "intrinsic_metadata",
      "egress_rid"
    ]
  ]
}