blob: c076ebb1b03a3be7d82886a7ab71eaa5c6ed03e6 [file] [log] [blame]
Carmelo Casconefc3776d2017-08-21 23:17:22 +02001tables {
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 Cascone16de6db2017-08-22 00:27:57 +020038 id: 16784184
Carmelo Casconefc3776d2017-08-21 23:17:22 +020039 }
40 action_refs {
41 id: 16800567
42 annotations: "@defaultonly()"
43 }
44 direct_resource_ids: 301990488
45 size: 1024
46 with_entry_timeout: true
47}
48tables {
49 preamble {
Carmelo Cascone16de6db2017-08-22 00:27:57 +020050 id: 33560548
51 name: "ingress_pkt"
52 alias: "ingress_pkt"
Carmelo Casconefc3776d2017-08-21 23:17:22 +020053 }
54 action_refs {
Carmelo Cascone16de6db2017-08-22 00:27:57 +020055 id: 16835928
56 }
57 size: 1024
58}
59tables {
60 preamble {
61 id: 33618793
62 name: "egress_port_count_table"
63 alias: "egress_port_count_table"
Carmelo Casconefc3776d2017-08-21 23:17:22 +020064 }
65 action_refs {
Carmelo Cascone16de6db2017-08-22 00:27:57 +020066 id: 16822771
67 }
68 size: 1024
69}
70tables {
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}
81tables {
82 preamble {
83 id: 33608529
84 name: "egress_pkt"
85 alias: "egress_pkt"
86 }
87 action_refs {
88 id: 16835663
Carmelo Casconefc3776d2017-08-21 23:17:22 +020089 }
90 size: 1024
91}
92actions {
93 preamble {
94 id: 16800567
95 name: "NoAction"
96 alias: "NoAction"
97 }
98}
99actions {
100 preamble {
101 id: 16794308
102 name: "set_egress_port"
103 alias: "set_egress_port"
104 }
105 params {
106 id: 1
107 name: "port"
108 bitwidth: 9
109 }
110}
111actions {
112 preamble {
113 id: 16829080
114 name: "send_to_cpu"
115 alias: "send_to_cpu"
116 }
117}
118actions {
119 preamble {
Carmelo Cascone16de6db2017-08-22 00:27:57 +0200120 id: 16784184
121 name: "_drop"
122 alias: "_drop"
Carmelo Casconefc3776d2017-08-21 23:17:22 +0200123 }
124}
125actions {
126 preamble {
Carmelo Cascone16de6db2017-08-22 00:27:57 +0200127 id: 16835928
128 name: "_packet_out"
129 alias: "_packet_out"
130 }
131}
132actions {
133 preamble {
134 id: 16822771
135 name: "count_egress"
136 alias: "count_egress"
137 }
138}
139actions {
140 preamble {
141 id: 16837943
142 name: "count_ingress"
143 alias: "count_ingress"
144 }
145}
146actions {
147 preamble {
148 id: 16835663
149 name: "add_packet_in_hdr"
150 alias: "add_packet_in_hdr"
Carmelo Casconefc3776d2017-08-21 23:17:22 +0200151 }
152}
153counters {
154 preamble {
155 id: 302008596
156 name: "egress_port_counter"
157 alias: "egress_port_counter"
158 annotations: "@min_width(32)"
159 }
160 spec {
161 unit: PACKETS
162 }
163 size: 254
164}
165counters {
166 preamble {
167 id: 301991238
168 name: "ingress_port_counter"
169 alias: "ingress_port_counter"
170 annotations: "@min_width(32)"
171 }
172 spec {
173 unit: PACKETS
174 }
175 size: 254
176}
177direct_counters {
178 preamble {
179 id: 301990488
180 name: "table0_counter"
181 alias: "table0_counter"
182 }
183 spec {
184 unit: PACKETS
185 }
186 direct_table_id: 33617813
187}
Carmelo Cascone16de6db2017-08-22 00:27:57 +0200188# Manually adding controller_packet_metadata for packet I/O since P4_14 doesn't support annotations.
189controller_packet_metadata {
190 preamble {
191 id: 2868941301
192 name: "packet_in"
193 annotations: "@controller_header(\"packet_in\")"
194 }
195 metadata {
196 id: 1
197 name: "ingress_port"
198 bitwidth: 9
199 }
200}
201controller_packet_metadata {
202 preamble {
203 id: 2868916615
204 name: "packet_out"
205 annotations: "@controller_header(\"packet_out\")"
206 }
207 metadata {
208 id: 1
209 name: "egress_port"
210 bitwidth: 9
211 }
212}