Carmelo Cascone | c8e8498 | 2017-07-26 15:34:42 -0400 | [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: "hdr.ethernet.dstAddr" |
| 16 | bitwidth: 48 |
| 17 | match_type: TERNARY |
| 18 | } |
| 19 | match_fields { |
| 20 | id: 3 |
| 21 | name: "hdr.ethernet.srcAddr" |
| 22 | bitwidth: 48 |
| 23 | match_type: TERNARY |
| 24 | } |
| 25 | match_fields { |
| 26 | id: 4 |
| 27 | name: "hdr.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 { |
Yi Tseng | b62509b | 2017-08-12 20:01:50 -0700 | [diff] [blame] | 38 | id: 16824896 |
| 39 | } |
| 40 | action_refs { |
Carmelo Cascone | eb01812 | 2017-09-06 13:16:03 +0200 | [diff] [blame] | 41 | id: 16784184 |
Carmelo Cascone | c8e8498 | 2017-07-26 15:34:42 -0400 | [diff] [blame] | 42 | } |
Carmelo Cascone | c8e8498 | 2017-07-26 15:34:42 -0400 | [diff] [blame] | 43 | direct_resource_ids: 301990488 |
| 44 | size: 1024 |
Carmelo Cascone | c8e8498 | 2017-07-26 15:34:42 -0400 | [diff] [blame] | 45 | } |
Yi Tseng | b62509b | 2017-08-12 20:01:50 -0700 | [diff] [blame] | 46 | tables { |
| 47 | preamble { |
| 48 | id: 33573767 |
| 49 | name: "ecmp" |
| 50 | alias: "ecmp" |
| 51 | } |
| 52 | match_fields { |
| 53 | id: 1 |
Yi Tseng | 60ef61d | 2017-08-29 14:20:33 -0700 | [diff] [blame] | 54 | name: "meta.ecmp_metadata.ecmp_group_id" |
Yi Tseng | b62509b | 2017-08-12 20:01:50 -0700 | [diff] [blame] | 55 | bitwidth: 8 |
| 56 | match_type: EXACT |
| 57 | } |
| 58 | action_refs { |
| 59 | id: 16794308 |
| 60 | } |
| 61 | action_refs { |
| 62 | id: 16800567 |
| 63 | annotations: "@defaultonly()" |
| 64 | } |
| 65 | implementation_id: 285227860 |
| 66 | direct_resource_ids: 302048161 |
| 67 | size: 1024 |
| 68 | } |
Carmelo Cascone | c8e8498 | 2017-07-26 15:34:42 -0400 | [diff] [blame] | 69 | actions { |
| 70 | preamble { |
| 71 | id: 16794308 |
| 72 | name: "set_egress_port" |
| 73 | alias: "set_egress_port" |
| 74 | } |
| 75 | params { |
| 76 | id: 1 |
| 77 | name: "port" |
| 78 | bitwidth: 9 |
| 79 | } |
| 80 | } |
| 81 | actions { |
| 82 | preamble { |
| 83 | id: 16829080 |
| 84 | name: "send_to_cpu" |
| 85 | alias: "send_to_cpu" |
| 86 | } |
| 87 | } |
| 88 | actions { |
| 89 | preamble { |
Carmelo Cascone | eb01812 | 2017-09-06 13:16:03 +0200 | [diff] [blame] | 90 | id: 16784184 |
| 91 | name: "_drop" |
| 92 | alias: "_drop" |
Carmelo Cascone | c8e8498 | 2017-07-26 15:34:42 -0400 | [diff] [blame] | 93 | } |
| 94 | } |
| 95 | actions { |
| 96 | preamble { |
| 97 | id: 16800567 |
| 98 | name: "NoAction" |
| 99 | alias: "NoAction" |
| 100 | } |
| 101 | } |
Yi Tseng | b62509b | 2017-08-12 20:01:50 -0700 | [diff] [blame] | 102 | actions { |
| 103 | preamble { |
| 104 | id: 16824896 |
| 105 | name: "do_ecmp" |
| 106 | alias: "do_ecmp" |
| 107 | } |
| 108 | params { |
| 109 | id: 1 |
| 110 | name: "ecmp_group_id" |
| 111 | bitwidth: 8 |
| 112 | } |
| 113 | } |
| 114 | action_profiles { |
| 115 | preamble { |
| 116 | id: 285227860 |
| 117 | name: "ecmp_selector" |
| 118 | alias: "ecmp_selector" |
| 119 | } |
| 120 | table_ids: 33573767 |
| 121 | with_selector: true |
| 122 | size: 64 |
| 123 | } |
Carmelo Cascone | c8e8498 | 2017-07-26 15:34:42 -0400 | [diff] [blame] | 124 | counters { |
| 125 | preamble { |
| 126 | id: 302025528 |
| 127 | name: "port_counters_control.egress_port_counter" |
| 128 | alias: "egress_port_counter" |
| 129 | } |
| 130 | spec { |
| 131 | unit: PACKETS |
| 132 | } |
Carmelo Cascone | f2a5ea6 | 2017-09-15 01:19:28 +0200 | [diff] [blame] | 133 | size: 255 |
Carmelo Cascone | c8e8498 | 2017-07-26 15:34:42 -0400 | [diff] [blame] | 134 | } |
| 135 | counters { |
| 136 | preamble { |
| 137 | id: 301999025 |
| 138 | name: "port_counters_control.ingress_port_counter" |
| 139 | alias: "ingress_port_counter" |
| 140 | } |
| 141 | spec { |
| 142 | unit: PACKETS |
| 143 | } |
Carmelo Cascone | f2a5ea6 | 2017-09-15 01:19:28 +0200 | [diff] [blame] | 144 | size: 255 |
Carmelo Cascone | c8e8498 | 2017-07-26 15:34:42 -0400 | [diff] [blame] | 145 | } |
| 146 | direct_counters { |
| 147 | preamble { |
| 148 | id: 301990488 |
| 149 | name: "table0_counter" |
| 150 | alias: "table0_counter" |
| 151 | } |
| 152 | spec { |
| 153 | unit: PACKETS |
| 154 | } |
| 155 | direct_table_id: 33617813 |
| 156 | } |
Yi Tseng | b62509b | 2017-08-12 20:01:50 -0700 | [diff] [blame] | 157 | direct_counters { |
| 158 | preamble { |
| 159 | id: 302048161 |
| 160 | name: "ecmp_counter" |
| 161 | alias: "ecmp_counter" |
| 162 | } |
| 163 | spec { |
| 164 | unit: PACKETS |
| 165 | } |
| 166 | direct_table_id: 33573767 |
| 167 | } |
Carmelo Cascone | c8e8498 | 2017-07-26 15:34:42 -0400 | [diff] [blame] | 168 | controller_packet_metadata { |
| 169 | preamble { |
| 170 | id: 2868941301 |
| 171 | name: "packet_in" |
| 172 | annotations: "@controller_header(\"packet_in\")" |
| 173 | } |
| 174 | metadata { |
| 175 | id: 1 |
| 176 | name: "ingress_port" |
| 177 | bitwidth: 9 |
| 178 | } |
Carmelo Cascone | c8e8498 | 2017-07-26 15:34:42 -0400 | [diff] [blame] | 179 | } |
| 180 | controller_packet_metadata { |
| 181 | preamble { |
| 182 | id: 2868916615 |
| 183 | name: "packet_out" |
| 184 | annotations: "@controller_header(\"packet_out\")" |
| 185 | } |
| 186 | metadata { |
| 187 | id: 1 |
| 188 | name: "egress_port" |
| 189 | bitwidth: 9 |
| 190 | } |
Carmelo Cascone | c8e8498 | 2017-07-26 15:34:42 -0400 | [diff] [blame] | 191 | } |