Andrea Campanella | bf1301d | 2017-08-07 18:33:52 +0200 | [diff] [blame] | 1 | tables { |
| 2 | preamble { |
| 3 | id: 33617813 |
| 4 | name: "table0" |
| 5 | alias: "table0" |
| 6 | } |
| 7 | match_fields { |
| 8 | id: 1 |
| 9 | name: "ig_intr_md.ingress_port" |
| 10 | bitwidth: 9 |
| 11 | match_type: TERNARY |
| 12 | } |
| 13 | match_fields { |
| 14 | id: 2 |
| 15 | name: "ethernet.dstAddr" |
| 16 | bitwidth: 48 |
| 17 | match_type: TERNARY |
| 18 | } |
| 19 | match_fields { |
| 20 | id: 3 |
| 21 | name: "ethernet.srcAddr" |
| 22 | bitwidth: 48 |
| 23 | match_type: TERNARY |
| 24 | } |
| 25 | match_fields { |
| 26 | id: 4 |
| 27 | name: "ethernet.etherType" |
| 28 | bitwidth: 16 |
| 29 | match_type: TERNARY |
| 30 | } |
| 31 | action_refs { |
| 32 | id: 16794308 |
| 33 | } |
| 34 | action_refs { |
| 35 | id: 16829080 |
| 36 | } |
| 37 | action_refs { |
| 38 | id: 16784184 |
| 39 | } |
| 40 | action_refs { |
| 41 | id: 16800567 |
| 42 | annotations: "@defaultonly()" |
| 43 | } |
| 44 | direct_resource_ids: 301990488 |
| 45 | size: 1024 |
| 46 | with_entry_timeout: true |
| 47 | } |
| 48 | tables { |
| 49 | preamble { |
Brian O'Connor | a6862e0 | 2017-09-08 01:17:39 -0700 | [diff] [blame] | 50 | id: 33607247 |
| 51 | name: "process_packet_out_table" |
| 52 | alias: "process_packet_out_table" |
Andrea Campanella | bf1301d | 2017-08-07 18:33:52 +0200 | [diff] [blame] | 53 | } |
| 54 | action_refs { |
Brian O'Connor | a6862e0 | 2017-09-08 01:17:39 -0700 | [diff] [blame] | 55 | id: 16798653 |
Andrea Campanella | bf1301d | 2017-08-07 18:33:52 +0200 | [diff] [blame] | 56 | } |
| 57 | size: 1024 |
| 58 | } |
| 59 | tables { |
| 60 | preamble { |
| 61 | id: 33618793 |
| 62 | name: "egress_port_count_table" |
| 63 | alias: "egress_port_count_table" |
| 64 | } |
| 65 | action_refs { |
| 66 | id: 16822771 |
| 67 | } |
| 68 | size: 1024 |
| 69 | } |
| 70 | tables { |
| 71 | preamble { |
| 72 | id: 33579767 |
| 73 | name: "ingress_port_count_table" |
| 74 | alias: "ingress_port_count_table" |
| 75 | } |
| 76 | action_refs { |
| 77 | id: 16837943 |
| 78 | } |
| 79 | size: 1024 |
| 80 | } |
Andrea Campanella | bf1301d | 2017-08-07 18:33:52 +0200 | [diff] [blame] | 81 | actions { |
| 82 | preamble { |
| 83 | id: 16800567 |
| 84 | name: "NoAction" |
| 85 | alias: "NoAction" |
| 86 | } |
| 87 | } |
| 88 | actions { |
| 89 | preamble { |
| 90 | id: 16794308 |
| 91 | name: "set_egress_port" |
| 92 | alias: "set_egress_port" |
| 93 | } |
| 94 | params { |
| 95 | id: 1 |
| 96 | name: "port" |
| 97 | bitwidth: 9 |
| 98 | } |
| 99 | } |
| 100 | actions { |
| 101 | preamble { |
| 102 | id: 16829080 |
| 103 | name: "send_to_cpu" |
| 104 | alias: "send_to_cpu" |
| 105 | } |
| 106 | } |
| 107 | actions { |
| 108 | preamble { |
| 109 | id: 16784184 |
| 110 | name: "_drop" |
| 111 | alias: "_drop" |
| 112 | } |
| 113 | } |
| 114 | actions { |
| 115 | preamble { |
Brian O'Connor | a6862e0 | 2017-09-08 01:17:39 -0700 | [diff] [blame] | 116 | id: 16798653 |
| 117 | name: "_process_packet_out" |
| 118 | alias: "_process_packet_out" |
Andrea Campanella | bf1301d | 2017-08-07 18:33:52 +0200 | [diff] [blame] | 119 | } |
| 120 | } |
| 121 | actions { |
| 122 | preamble { |
| 123 | id: 16822771 |
| 124 | name: "count_egress" |
| 125 | alias: "count_egress" |
| 126 | } |
| 127 | } |
| 128 | actions { |
| 129 | preamble { |
| 130 | id: 16837943 |
| 131 | name: "count_ingress" |
| 132 | alias: "count_ingress" |
| 133 | } |
| 134 | } |
Andrea Campanella | bf1301d | 2017-08-07 18:33:52 +0200 | [diff] [blame] | 135 | counters { |
| 136 | preamble { |
| 137 | id: 302008596 |
| 138 | name: "egress_port_counter" |
| 139 | alias: "egress_port_counter" |
| 140 | annotations: "@min_width(32)" |
| 141 | } |
| 142 | spec { |
| 143 | unit: PACKETS |
| 144 | } |
| 145 | size: 254 |
| 146 | } |
| 147 | counters { |
| 148 | preamble { |
| 149 | id: 301991238 |
| 150 | name: "ingress_port_counter" |
| 151 | alias: "ingress_port_counter" |
| 152 | annotations: "@min_width(32)" |
| 153 | } |
| 154 | spec { |
| 155 | unit: PACKETS |
| 156 | } |
| 157 | size: 254 |
| 158 | } |
| 159 | direct_counters { |
| 160 | preamble { |
| 161 | id: 301990488 |
| 162 | name: "table0_counter" |
| 163 | alias: "table0_counter" |
| 164 | } |
| 165 | spec { |
| 166 | unit: PACKETS |
| 167 | } |
| 168 | direct_table_id: 33617813 |
| 169 | } |
| 170 | # Manually adding controller_packet_metadata for packet I/O since P4_14 doesn't support annotations. |
| 171 | controller_packet_metadata { |
| 172 | preamble { |
| 173 | id: 2868941301 |
| 174 | name: "packet_in" |
| 175 | annotations: "@controller_header(\"packet_in\")" |
| 176 | } |
| 177 | metadata { |
| 178 | id: 1 |
| 179 | name: "ingress_port" |
| 180 | bitwidth: 9 |
| 181 | } |
| 182 | } |
| 183 | controller_packet_metadata { |
| 184 | preamble { |
| 185 | id: 2868916615 |
| 186 | name: "packet_out" |
| 187 | annotations: "@controller_header(\"packet_out\")" |
| 188 | } |
| 189 | metadata { |
| 190 | id: 1 |
| 191 | name: "egress_port" |
| 192 | bitwidth: 9 |
| 193 | } |
Carmelo Cascone | 5db3968 | 2017-09-07 16:36:42 +0200 | [diff] [blame] | 194 | } |