Carmelo Cascone | fc3776d | 2017-08-21 23:17:22 +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: 16829080 |
| 36 | } |
| 37 | action_refs { |
Carmelo Cascone | 16de6db | 2017-08-22 00:27:57 +0200 | [diff] [blame] | 38 | id: 16784184 |
Carmelo Cascone | fc3776d | 2017-08-21 23:17:22 +0200 | [diff] [blame] | 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 { |
Carmelo Cascone | f2ac720 | 2017-09-08 00:57:44 +0200 | [diff] [blame] | 50 | id: 33607247 |
| 51 | name: "process_packet_out_table" |
| 52 | alias: "process_packet_out_table" |
Carmelo Cascone | fc3776d | 2017-08-21 23:17:22 +0200 | [diff] [blame] | 53 | } |
| 54 | action_refs { |
Carmelo Cascone | f2ac720 | 2017-09-08 00:57:44 +0200 | [diff] [blame] | 55 | id: 16798653 |
Carmelo Cascone | 16de6db | 2017-08-22 00:27:57 +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" |
Carmelo Cascone | fc3776d | 2017-08-21 23:17:22 +0200 | [diff] [blame] | 64 | } |
| 65 | action_refs { |
Carmelo Cascone | 16de6db | 2017-08-22 00:27:57 +0200 | [diff] [blame] | 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 | } |
Carmelo Cascone | fc3776d | 2017-08-21 23:17:22 +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 { |
Carmelo Cascone | 16de6db | 2017-08-22 00:27:57 +0200 | [diff] [blame] | 109 | id: 16784184 |
| 110 | name: "_drop" |
| 111 | alias: "_drop" |
Carmelo Cascone | fc3776d | 2017-08-21 23:17:22 +0200 | [diff] [blame] | 112 | } |
| 113 | } |
| 114 | actions { |
| 115 | preamble { |
Carmelo Cascone | f2ac720 | 2017-09-08 00:57:44 +0200 | [diff] [blame] | 116 | id: 16798653 |
| 117 | name: "_process_packet_out" |
| 118 | alias: "_process_packet_out" |
Carmelo Cascone | 16de6db | 2017-08-22 00:27:57 +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 | } |
Carmelo Cascone | fc3776d | 2017-08-21 23:17:22 +0200 | [diff] [blame] | 135 | counters { |
| 136 | preamble { |
| 137 | id: 302008596 |
| 138 | name: "egress_port_counter" |
| 139 | alias: "egress_port_counter" |
Carmelo Cascone | 133c7b1 | 2017-09-13 15:36:08 +0200 | [diff] [blame] | 140 | annotations: "@min_width(64)" |
Carmelo Cascone | fc3776d | 2017-08-21 23:17:22 +0200 | [diff] [blame] | 141 | } |
| 142 | spec { |
Carmelo Cascone | 0ce8f5d | 2017-09-13 03:50:36 +0200 | [diff] [blame] | 143 | unit: BYTES |
Carmelo Cascone | fc3776d | 2017-08-21 23:17:22 +0200 | [diff] [blame] | 144 | } |
Brian O'Connor | a6862e0 | 2017-09-08 01:17:39 -0700 | [diff] [blame] | 145 | size: 254 |
Carmelo Cascone | fc3776d | 2017-08-21 23:17:22 +0200 | [diff] [blame] | 146 | } |
| 147 | counters { |
| 148 | preamble { |
| 149 | id: 301991238 |
| 150 | name: "ingress_port_counter" |
| 151 | alias: "ingress_port_counter" |
Carmelo Cascone | 133c7b1 | 2017-09-13 15:36:08 +0200 | [diff] [blame] | 152 | annotations: "@min_width(64)" |
Carmelo Cascone | fc3776d | 2017-08-21 23:17:22 +0200 | [diff] [blame] | 153 | } |
| 154 | spec { |
Carmelo Cascone | 0ce8f5d | 2017-09-13 03:50:36 +0200 | [diff] [blame] | 155 | unit: BYTES |
Carmelo Cascone | fc3776d | 2017-08-21 23:17:22 +0200 | [diff] [blame] | 156 | } |
Brian O'Connor | a6862e0 | 2017-09-08 01:17:39 -0700 | [diff] [blame] | 157 | size: 254 |
Carmelo Cascone | fc3776d | 2017-08-21 23:17:22 +0200 | [diff] [blame] | 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 | } |
Carmelo Cascone | 16de6db | 2017-08-22 00:27:57 +0200 | [diff] [blame] | 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 | } |
| 194 | } |