4 "name": "Add mirred mirror to egress action",
11 "$TC actions flush action mirred",
17 "cmdUnderTest": "$TC actions add action mirred egress mirror index 1 dev lo",
19 "verifyCmd": "$TC actions list action mirred",
20 "matchPattern": "action order [0-9]*: mirred \\(Egress Mirror to device lo\\).*index 1 ref",
23 "$TC actions flush action mirred"
28 "name": "Add mirred redirect to egress action",
35 "$TC actions flush action mirred",
41 "cmdUnderTest": "$TC actions add action mirred egress redirect index 2 dev lo action pipe",
43 "verifyCmd": "$TC actions list action mirred",
44 "matchPattern": "action order [0-9]*: mirred \\(Egress Redirect to device lo\\).*index 2 ref",
47 "$TC actions flush action mirred",
48 "$TC actions flush action gact"
53 "name": "Get mirred actions",
60 "$TC actions flush action mirred",
65 "$TC actions add action mirred egress mirror index 1 dev lo",
66 "$TC actions add action mirred egress redirect index 2 dev lo"
68 "cmdUnderTest": "$TC actions show action mirred",
70 "verifyCmd": "$TC actions list action mirred",
71 "matchPattern": "[Mirror|Redirect] to device lo",
74 "$TC actions flush action mirred"
79 "name": "Add invalid mirred direction",
86 "$TC actions flush action mirred",
92 "cmdUnderTest": "$TC actions add action mirred inbound mirror index 20 dev lo",
94 "verifyCmd": "$TC actions list action mirred",
95 "matchPattern": "action order [0-9]*: mirred \\(.*to device lo\\).*index 20 ref",
98 "$TC actions flush action mirred"
103 "name": "Add invalid mirred action",
110 "$TC actions flush action mirred",
116 "cmdUnderTest": "$TC actions add action mirred egress remirror index 20 dev lo",
117 "expExitCode": "255",
118 "verifyCmd": "$TC actions list action mirred",
119 "matchPattern": "action order [0-9]*: mirred \\(Egress.*to device lo\\).*index 20 ref",
122 "$TC actions flush action mirred"
127 "name": "Add mirred action with invalid device",
134 "$TC actions flush action mirred",
140 "cmdUnderTest": "$TC actions add action mirred egress mirror index 20 dev eltoh",
141 "expExitCode": "255",
142 "verifyCmd": "$TC actions list action mirred",
143 "matchPattern": "action order [0-9]*: mirred \\(.*to device eltoh\\).*index 20 ref",
146 "$TC actions flush action mirred"
151 "name": "Add mirred action with duplicate index",
158 "$TC actions flush action mirred",
163 "$TC actions add action mirred egress redirect index 15 dev lo"
165 "cmdUnderTest": "$TC actions add action mirred egress mirror index 15 dev lo",
166 "expExitCode": "255",
167 "verifyCmd": "$TC actions list action mirred",
168 "matchPattern": "action order [0-9]*: mirred \\(.*to device lo\\).*index 15 ref",
171 "$TC actions flush action mirred"
176 "name": "Add mirred mirror action with control pass",
183 "$TC actions flush action mirred",
189 "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo pass index 1",
191 "verifyCmd": "$TC actions get action mirred index 1",
192 "matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) pass.*index 1 ref",
195 "$TC actions flush action mirred"
200 "name": "Add mirred mirror action with control pipe",
207 "$TC actions flush action mirred",
213 "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo pipe index 15",
215 "verifyCmd": "$TC actions get action mirred index 15",
216 "matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) pipe.*index 15 ref",
219 "$TC actions flush action mirred"
224 "name": "Add mirred mirror action with control continue",
231 "$TC actions flush action mirred",
237 "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo continue index 15",
239 "verifyCmd": "$TC actions get action mirred index 15",
240 "matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) continue.*index 15 ref",
243 "$TC actions flush action mirred"
248 "name": "Add mirred mirror action with control reclassify",
255 "$TC actions flush action mirred",
261 "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo reclassify index 150",
263 "verifyCmd": "$TC actions get action mirred index 150",
264 "matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) reclassify.*index 150 ref",
267 "$TC actions flush action mirred"
272 "name": "Add mirred mirror action with control drop",
279 "$TC actions flush action mirred",
285 "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo drop index 99",
287 "verifyCmd": "$TC actions get action mirred index 99",
288 "matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) drop.*index 99 ref",
291 "$TC actions flush action mirred"
296 "name": "Add mirred mirror action with control jump",
303 "$TC actions flush action mirred",
309 "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo jump 10 index 99",
311 "verifyCmd": "$TC actions get action mirred index 99",
312 "matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) jump 10.*index 99 ref",
315 "$TC actions flush action mirred"
320 "name": "Add mirred mirror action with cookie",
327 "$TC actions flush action mirred",
333 "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo reclassify cookie aa11bb22cc33dd44ee55",
335 "verifyCmd": "$TC actions ls action mirred",
336 "matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) reclassify.*cookie aa11bb22cc33dd44ee55",
339 "$TC actions flush action mirred"
344 "name": "Add mirred mirror action with index at 32-bit maximum",
351 "$TC actions flush action mirred",
357 "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo pipe index 4294967295",
359 "verifyCmd": "$TC actions get action mirred index 4294967295",
360 "matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) pipe.*index 4294967295",
363 "$TC actions flush action mirred"
368 "name": "Add mirred mirror action with index exceeding 32-bit maximum",
375 "$TC actions flush action mirred",
381 "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo pipe index 429496729555",
382 "expExitCode": "255",
383 "verifyCmd": "$TC actions get action mirred index 429496729555",
384 "matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) pipe.*index 429496729555",
390 "name": "Delete mirred mirror action",
397 "$TC actions flush action mirred",
402 "$TC actions add action mirred egress mirror index 5 dev lo"
404 "cmdUnderTest": "$TC actions del action mirred index 5",
406 "verifyCmd": "$TC actions list action mirred",
407 "matchPattern": "action order [0-9]*: mirred \\(Egress Mirror to device lo\\).*index 5 ref",
410 "$TC actions flush action mirred"
415 "name": "Delete mirred redirect action",
422 "$TC actions flush action mirred",
427 "$TC actions add action mirred egress redirect index 5 dev lo"
429 "cmdUnderTest": "$TC actions del action mirred index 5",
431 "verifyCmd": "$TC actions list action mirred",
432 "matchPattern": "action order [0-9]*: mirred \\(Egress Redirect to device lo\\).*index 5 ref",
435 "$TC actions flush action mirred"