Carmelo Cascone | 16de6db | 2017-08-22 00:27:57 +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: "standard_metadata.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: 16791212 |
| 36 | } |
| 37 | action_refs { |
| 38 | id: 16829080 |
| 39 | } |
| 40 | action_refs { |
| 41 | id: 16784184 |
| 42 | } |
| 43 | action_refs { |
| 44 | id: 16800567 |
| 45 | annotations: "@defaultonly()" |
| 46 | } |
| 47 | direct_resource_ids: 301990488 |
| 48 | size: 1024 |
| 49 | with_entry_timeout: true |
| 50 | } |
| 51 | tables { |
| 52 | preamble { |
| 53 | id: 33596222 |
| 54 | name: "wcmp_group_table" |
| 55 | alias: "wcmp_group_table" |
| 56 | } |
| 57 | match_fields { |
| 58 | id: 1 |
| 59 | name: "wcmp_meta.groupId" |
| 60 | bitwidth: 16 |
| 61 | match_type: EXACT |
| 62 | } |
| 63 | match_fields { |
| 64 | id: 2 |
| 65 | name: "wcmp_meta.selector" |
| 66 | bitwidth: 32 |
| 67 | match_type: LPM |
| 68 | } |
| 69 | action_refs { |
| 70 | id: 16794308 |
| 71 | } |
| 72 | action_refs { |
| 73 | id: 16800567 |
| 74 | annotations: "@defaultonly()" |
| 75 | } |
| 76 | direct_resource_ids: 302006421 |
| 77 | size: 1024 |
| 78 | } |
| 79 | tables { |
| 80 | preamble { |
| 81 | id: 33613026 |
| 82 | name: "wcmp_set_selector_table" |
| 83 | alias: "wcmp_set_selector_table" |
| 84 | } |
| 85 | action_refs { |
| 86 | id: 16819919 |
| 87 | } |
| 88 | action_refs { |
| 89 | id: 16800567 |
| 90 | annotations: "@defaultonly()" |
| 91 | } |
| 92 | size: 1024 |
| 93 | } |
| 94 | tables { |
| 95 | preamble { |
| 96 | id: 33560548 |
| 97 | name: "ingress_pkt" |
| 98 | alias: "ingress_pkt" |
| 99 | } |
| 100 | action_refs { |
| 101 | id: 16835928 |
| 102 | } |
| 103 | size: 1024 |
| 104 | } |
| 105 | tables { |
| 106 | preamble { |
| 107 | id: 33618793 |
| 108 | name: "egress_port_count_table" |
| 109 | alias: "egress_port_count_table" |
| 110 | } |
| 111 | action_refs { |
| 112 | id: 16822771 |
| 113 | } |
| 114 | size: 1024 |
| 115 | } |
| 116 | tables { |
| 117 | preamble { |
| 118 | id: 33579767 |
| 119 | name: "ingress_port_count_table" |
| 120 | alias: "ingress_port_count_table" |
| 121 | } |
| 122 | action_refs { |
| 123 | id: 16837943 |
| 124 | } |
| 125 | size: 1024 |
| 126 | } |
| 127 | tables { |
| 128 | preamble { |
| 129 | id: 33608529 |
| 130 | name: "egress_pkt" |
| 131 | alias: "egress_pkt" |
| 132 | } |
| 133 | action_refs { |
| 134 | id: 16835663 |
| 135 | } |
| 136 | size: 1024 |
| 137 | } |
| 138 | actions { |
| 139 | preamble { |
| 140 | id: 16800567 |
| 141 | name: "NoAction" |
| 142 | alias: "NoAction" |
| 143 | } |
| 144 | } |
| 145 | actions { |
| 146 | preamble { |
| 147 | id: 16819919 |
| 148 | name: "wcmp_set_selector" |
| 149 | alias: "wcmp_set_selector" |
| 150 | } |
| 151 | } |
| 152 | actions { |
| 153 | preamble { |
| 154 | id: 16794308 |
| 155 | name: "set_egress_port" |
| 156 | alias: "set_egress_port" |
| 157 | } |
| 158 | params { |
| 159 | id: 1 |
| 160 | name: "port" |
| 161 | bitwidth: 9 |
| 162 | } |
| 163 | } |
| 164 | actions { |
| 165 | preamble { |
| 166 | id: 16791212 |
| 167 | name: "wcmp_group" |
| 168 | alias: "wcmp_group" |
| 169 | } |
| 170 | params { |
| 171 | id: 1 |
| 172 | name: "groupId" |
| 173 | bitwidth: 16 |
| 174 | } |
| 175 | } |
| 176 | actions { |
| 177 | preamble { |
| 178 | id: 16829080 |
| 179 | name: "send_to_cpu" |
| 180 | alias: "send_to_cpu" |
| 181 | } |
| 182 | } |
| 183 | actions { |
| 184 | preamble { |
| 185 | id: 16784184 |
| 186 | name: "_drop" |
| 187 | alias: "_drop" |
| 188 | } |
| 189 | } |
| 190 | actions { |
| 191 | preamble { |
| 192 | id: 16835928 |
| 193 | name: "_packet_out" |
| 194 | alias: "_packet_out" |
| 195 | } |
| 196 | } |
| 197 | actions { |
| 198 | preamble { |
| 199 | id: 16822771 |
| 200 | name: "count_egress" |
| 201 | alias: "count_egress" |
| 202 | } |
| 203 | } |
| 204 | actions { |
| 205 | preamble { |
| 206 | id: 16837943 |
| 207 | name: "count_ingress" |
| 208 | alias: "count_ingress" |
| 209 | } |
| 210 | } |
| 211 | actions { |
| 212 | preamble { |
| 213 | id: 16835663 |
| 214 | name: "add_packet_in_hdr" |
| 215 | alias: "add_packet_in_hdr" |
| 216 | } |
| 217 | } |
| 218 | counters { |
| 219 | preamble { |
| 220 | id: 302008596 |
| 221 | name: "egress_port_counter" |
| 222 | alias: "egress_port_counter" |
| 223 | annotations: "@min_width(32)" |
| 224 | } |
| 225 | spec { |
| 226 | unit: PACKETS |
| 227 | } |
| 228 | size: 254 |
| 229 | } |
| 230 | counters { |
| 231 | preamble { |
| 232 | id: 301991238 |
| 233 | name: "ingress_port_counter" |
| 234 | alias: "ingress_port_counter" |
| 235 | annotations: "@min_width(32)" |
| 236 | } |
| 237 | spec { |
| 238 | unit: PACKETS |
| 239 | } |
| 240 | size: 254 |
| 241 | } |
| 242 | direct_counters { |
| 243 | preamble { |
| 244 | id: 301990488 |
| 245 | name: "table0_counter" |
| 246 | alias: "table0_counter" |
| 247 | } |
| 248 | spec { |
| 249 | unit: PACKETS |
| 250 | } |
| 251 | direct_table_id: 33617813 |
| 252 | } |
| 253 | direct_counters { |
| 254 | preamble { |
| 255 | id: 302006421 |
| 256 | name: "wcmp_group_table_counter" |
| 257 | alias: "wcmp_group_table_counter" |
| 258 | } |
| 259 | spec { |
| 260 | unit: PACKETS |
| 261 | } |
| 262 | direct_table_id: 33596222 |
| 263 | } |
| 264 | # Manually adding controller_packet_metadata for packet I/O since P4_14 doesn't support annotations. |
| 265 | controller_packet_metadata { |
| 266 | preamble { |
| 267 | id: 2868941301 |
| 268 | name: "packet_in" |
| 269 | annotations: "@controller_header(\"packet_in\")" |
| 270 | } |
| 271 | metadata { |
| 272 | id: 1 |
| 273 | name: "ingress_port" |
| 274 | bitwidth: 9 |
| 275 | } |
| 276 | } |
| 277 | controller_packet_metadata { |
| 278 | preamble { |
| 279 | id: 2868916615 |
| 280 | name: "packet_out" |
| 281 | annotations: "@controller_header(\"packet_out\")" |
| 282 | } |
| 283 | metadata { |
| 284 | id: 1 |
| 285 | name: "egress_port" |
| 286 | bitwidth: 9 |
| 287 | } |
| 288 | } |