GNU Linux-libre 4.14.303-gnu1
[releases.git] / tools / testing / selftests / tc-testing / tc-tests / actions / tests.json
1 [
2     {
3         "id": "e89a",
4         "name": "Add valid pass action",
5         "category": [
6             "actions",
7             "gact"
8         ],
9         "setup": [
10             [
11                 "$TC actions flush action gact",
12                 0,
13                 1,
14                 255
15             ]
16         ],
17         "cmdUnderTest": "$TC actions add action pass index 8",
18         "expExitCode": "0",
19         "verifyCmd": "$TC actions list action gact",
20         "matchPattern": "action order [0-9]*: gact action pass.*index 8 ref",
21         "matchCount": "1",
22         "teardown": [
23             "$TC actions flush action gact"
24         ]
25     },
26     {
27         "id": "a02c",
28         "name": "Add valid pipe action",
29         "category": [
30             "actions",
31             "gact"
32         ],
33         "setup": [
34             [
35                 "$TC actions flush action gact",
36                 0,
37                 1,
38                 255
39             ]
40         ],
41         "cmdUnderTest": "$TC actions add action pipe index 6",
42         "expExitCode": "0",
43         "verifyCmd": "$TC actions list action gact",
44         "matchPattern": "action order [0-9]*: gact action pipe.*index 6 ref",
45         "matchCount": "1",
46         "teardown": [
47             "$TC actions flush action gact"
48         ]
49     },
50     {
51         "id": "feef",
52         "name": "Add valid reclassify action",
53         "category": [
54             "actions",
55             "gact"
56         ],
57         "setup": [
58             [
59                 "$TC actions flush action gact",
60                 0,
61                 1,
62                 255
63             ]
64         ],
65         "cmdUnderTest": "$TC actions add action reclassify index 5",
66         "expExitCode": "0",
67         "verifyCmd": "$TC actions list action gact",
68         "matchPattern": "action order [0-9]*: gact action reclassify.*index 5 ref",
69         "matchCount": "1",
70         "teardown": [
71             "$TC actions flush action gact"
72         ]
73     },
74     {
75         "id": "8a7a",
76         "name": "Add valid drop action",
77         "category": [
78             "actions",
79             "gact"
80         ],
81         "setup": [
82             [
83                 "$TC actions flush action gact",
84                 0,
85                 1,
86                 255
87             ]
88         ],
89         "cmdUnderTest": "$TC actions add action drop index 30",
90         "expExitCode": "0",
91         "verifyCmd": "$TC actions list action gact",
92         "matchPattern": "action order [0-9]*: gact action drop.*index 30 ref",
93         "matchCount": "1",
94         "teardown": [
95             "$TC actions flush action gact"
96         ]
97     },
98     {
99         "id": "9a52",
100         "name": "Add valid continue action",
101         "category": [
102             "actions",
103             "gact"
104         ],
105         "setup": [
106             [
107                 "$TC actions flush action gact",
108                 0,
109                 1,
110                 255
111             ]
112         ],
113         "cmdUnderTest": "$TC actions add action continue index 432",
114         "expExitCode": "0",
115         "verifyCmd": "$TC actions list action gact",
116         "matchPattern": "action order [0-9]*: gact action continue.*index 432 ref",
117         "matchCount": "1",
118         "teardown": [
119             "$TC actions flush action gact"
120         ]
121     },
122     {
123         "id": "d700",
124         "name": "Add invalid action",
125         "category": [
126             "actions",
127             "gact"
128         ],
129         "setup": [
130             [
131                 "$TC actions flush action gact",
132                 0,
133                 1,
134                 255
135             ]
136         ],
137         "cmdUnderTest": "$TC actions add action pump index 386",
138         "expExitCode": "255",
139         "verifyCmd": "$TC actions list action gact",
140         "matchPattern": "action order [0-9]*: gact action.*index 386 ref",
141         "matchCount": "0",
142         "teardown": [
143             "$TC actions flush action gact"
144         ]
145     },
146     {
147         "id": "9215",
148         "name": "Add action with duplicate index",
149         "category": [
150             "actions",
151             "gact"
152         ],
153         "setup": [
154             [
155                 "$TC actions flush action gact",
156                 0,
157                 1,
158                 255
159             ],
160             "$TC actions add action pipe index 15"
161         ],
162         "cmdUnderTest": "$TC actions add action drop index 15",
163         "expExitCode": "255",
164         "verifyCmd": "$TC actions list action gact",
165         "matchPattern": "action order [0-9]*: gact action drop.*index 15 ref",
166         "matchCount": "0",
167         "teardown": [
168             "$TC actions flush action gact"
169         ]
170     },
171     {
172         "id": "798e",
173         "name": "Add action with index exceeding 32-bit maximum",
174         "category": [
175             "actions",
176             "gact"
177         ],
178         "setup": [
179             [
180                 "$TC actions flush action gact",
181                 0,
182                 1,
183                 255
184             ]
185         ],
186         "cmdUnderTest": "$TC actions add action drop index 4294967296",
187         "expExitCode": "255",
188         "verifyCmd": "actions list action gact",
189         "matchPattern": "action order [0-9]*: gact action drop.*index 4294967296 ref",
190         "matchCount": "0",
191         "teardown": [
192             "$TC actions flush action gact"
193         ]
194     },
195     {
196         "id": "22be",
197         "name": "Add action with index at 32-bit maximum",
198         "category": [
199             "actions",
200             "gact"
201         ],
202         "setup": [
203             [
204                 "$TC actions flush action gact",
205                 0,
206                 1,
207                 255
208             ]
209         ],
210         "cmdUnderTest": "$TC actions add action drop index 4294967295",
211         "expExitCode": "0",
212         "verifyCmd": "$TC actions list action gact",
213         "matchPattern": "action order [0-9]*: gact action drop.*index 4294967295 ref",
214         "matchCount": "1",
215         "teardown": [
216             "$TC actions flush action gact"
217         ]
218     },
219     {
220         "id": "ac2a",
221         "name": "List actions",
222         "category": [
223             "actions",
224             "gact"
225         ],
226         "setup": [
227             [
228                 "$TC actions flush action gact",
229                 0,
230                 1,
231                 255
232             ],
233             "$TC actions add action reclassify index 101",
234             "$TC actions add action reclassify index 102",
235             "$TC actions add action reclassify index 103",
236             "$TC actions add action reclassify index 104",
237             "$TC actions add action reclassify index 105"
238         ],
239         "cmdUnderTest": "$TC actions list action gact",
240         "expExitCode": "0",
241         "verifyCmd": "$TC actions list action gact",
242         "matchPattern": "action order [0-9]*: gact action reclassify",
243         "matchCount": "5",
244         "teardown": [
245             "$TC actions flush action gact"
246         ]
247     },
248     {
249         "id": "63ec",
250         "name": "Delete pass action",
251         "category": [
252             "actions",
253             "gact"
254         ],
255         "setup": [
256             [
257                 "$TC actions flush action gact",
258                 0,
259                 1,
260                 255
261             ],
262             "$TC actions add action pass index 1"
263         ],
264         "cmdUnderTest": "$TC actions del action gact index 1",
265         "expExitCode": "0",
266         "verifyCmd": "$TC actions list action gact",
267         "matchPattern": "action order [0-9]*: gact action pass.*index 1 ref",
268         "matchCount": "0",
269         "teardown": [
270             "$TC actions flush action gact"
271         ]
272     },
273     {
274         "id": "46be",
275         "name": "Delete pipe action",
276         "category": [
277             "actions",
278             "gact"
279         ],
280         "setup": [
281             [
282                 "$TC actions flush action gact",
283                 0,
284                 1,
285                 255
286             ],
287             "$TC actions add action pipe index 9"
288         ],
289         "cmdUnderTest": "$TC actions del action gact index 9",
290         "expExitCode": "0",
291         "verifyCmd": "$TC actions list action gact",
292         "matchPattern": "action order [0-9]*: gact action pipe.*index 9 ref",
293         "matchCount": "0",
294         "teardown": [
295             "$TC actions flush action gact"
296         ]
297     },
298     {
299         "id": "2e08",
300         "name": "Delete reclassify action",
301         "category": [
302             "actions",
303             "gact"
304         ],
305         "setup": [
306             [
307                 "$TC actions flush action gact",
308                 0,
309                 1,
310                 255
311             ],
312             "$TC actions add action reclassify index 65536"
313         ],
314         "cmdUnderTest": "$TC actions del action gact index 65536",
315         "expExitCode": "0",
316         "verifyCmd": "$TC actions list action gact",
317         "matchPattern": "action order [0-9]*: gact action reclassify.*index 65536 ref",
318         "matchCount": "0",
319         "teardown": [
320             "$TC actions flush action gact"
321         ]
322     },
323     {
324         "id": "99c4",
325         "name": "Delete drop action",
326         "category": [
327             "actions",
328             "gact"
329         ],
330         "setup": [
331             [
332                 "$TC actions flush action gact",
333                 0,
334                 1,
335                 255
336             ],
337             "$TC actions add action drop index 16"
338         ],
339         "cmdUnderTest": "$TC actions del action gact index 16",
340         "expExitCode": "0",
341         "verifyCmd": "$TC actions list action gact",
342         "matchPattern": "action order [0-9]*: gact action drop.*index 16 ref",
343         "matchCount": "0",
344         "teardown": [
345             "$TC actions flush action gact"
346         ]
347     },
348     {
349         "id": "fb6b",
350         "name": "Delete continue action",
351         "category": [
352             "actions",
353             "gact"
354         ],
355         "setup": [
356             [
357                 "$TC actions flush action gact",
358                 0,
359                 1,
360                 255
361             ],
362             "$TC actions add action continue index 32"
363         ],
364         "cmdUnderTest": "$TC actions del action gact index 32",
365         "expExitCode": "0",
366         "verifyCmd": "actions list action gact",
367         "matchPattern": "action order [0-9]*: gact action continue.*index 32 ref",
368         "matchCount": "0",
369         "teardown": [
370             "$TC actions flush action gact"
371         ]
372     },
373     {
374         "id": "0eb3",
375         "name": "Delete non-existent action",
376         "category": [
377             "actions",
378             "gact"
379         ],
380         "setup": [
381             [
382                 "$TC actions flush action gact",
383                 0,
384                 1,
385                 255
386             ]
387         ],
388         "cmdUnderTest": "$TC actions del action gact index 2",
389         "expExitCode": "255",
390         "verifyCmd": "$TC actions list action gact",
391         "matchPattern": "action order [0-9]*: gact action",
392         "matchCount": "0",
393         "teardown": [
394             "$TC actions flush action gact"
395         ]
396     },
397     {
398         "id": "5124",
399         "name": "Add mirred mirror to egress action",
400         "category": [
401             "actions",
402             "mirred"
403         ],
404         "setup": [
405             [
406                 "$TC actions flush action mirred",
407                 0,
408                 1,
409                 255
410             ]
411         ],
412         "cmdUnderTest": "$TC actions add action mirred egress mirror index 1 dev lo",
413         "expExitCode": "0",
414         "verifyCmd": "$TC actions list action mirred",
415         "matchPattern": "action order [0-9]*: mirred \\(Egress Mirror to device lo\\).*index 1 ref",
416         "matchCount": "1",
417         "teardown": [
418             "$TC actions flush action mirred"
419         ]
420     },
421     {
422         "id": "6fb4",
423         "name": "Add mirred redirect to egress action",
424         "category": [
425             "actions",
426             "mirred"
427         ],
428         "setup": [
429             [
430                 "$TC actions flush action mirred",
431                 0,
432                 1,
433                 255
434             ]
435         ],
436         "cmdUnderTest": "$TC actions add action mirred egress redirect index 2 dev lo action pipe",
437         "expExitCode": "0",
438         "verifyCmd": "$TC actions list action mirred",
439         "matchPattern": "action order [0-9]*: mirred \\(Egress Redirect to device lo\\).*index 2 ref",
440         "matchCount": "1",
441         "teardown": [
442             "$TC actions flush action mirred"
443         ]
444     },
445     {
446         "id": "ba38",
447         "name": "Get mirred actions",
448         "category": [
449             "actions",
450             "mirred"
451         ],
452         "setup": [
453             [
454                 "$TC actions flush action mirred",
455                 0,
456                 1,
457                 255
458             ],
459             "$TC actions add action mirred egress mirror index 1 dev lo",
460             "$TC actions add action mirred egress redirect index 2 dev lo"
461         ],
462         "cmdUnderTest": "$TC actions show action mirred",
463         "expExitCode": "0",
464         "verifyCmd": "$TC actions list action mirred",
465         "matchPattern": "[Mirror|Redirect] to device lo",
466         "matchCount": "2",
467         "teardown": [
468             "$TC actions flush action mirred"
469         ]
470     },
471     {
472         "id": "d7c0",
473         "name": "Add invalid mirred direction",
474         "category": [
475             "actions",
476             "mirred"
477         ],
478         "setup": [
479             [
480                 "$TC actions flush action mirred",
481                 0,
482                 1,
483                 255
484             ]
485         ],
486         "cmdUnderTest": "$TC actions add action mirred inbound mirror index 20 dev lo",
487         "expExitCode": "255",
488         "verifyCmd": "$TC actions list action mirred",
489         "matchPattern": "action order [0-9]*: mirred \\(.*to device lo\\).*index 20 ref",
490         "matchCount": "0",
491         "teardown": [
492             "$TC actions flush action mirred"
493         ]
494     },
495     {
496         "id": "e213",
497         "name": "Add invalid mirred action",
498         "category": [
499             "actions",
500             "mirred"
501         ],
502         "setup": [
503             [
504                 "$TC actions flush action mirred",
505                 0,
506                 1,
507                 255
508             ]
509         ],
510         "cmdUnderTest": "$TC actions add action mirred egress remirror index 20 dev lo",
511         "expExitCode": "255",
512         "verifyCmd": "$TC actions list action mirred",
513         "matchPattern": "action order [0-9]*: mirred \\(Egress.*to device lo\\).*index 20 ref",
514         "matchCount": "0",
515         "teardown": [
516             "$TC actions flush action mirred"
517         ]
518     },
519     {
520         "id": "2d89",
521         "name": "Add mirred action with invalid device",
522         "category": [
523             "actions",
524             "mirred"
525         ],
526         "setup": [
527             [
528                 "$TC actions flush action mirred",
529                 0,
530                 1,
531                 255
532             ]
533         ],
534         "cmdUnderTest": "$TC actions add action mirred egress mirror index 20 dev eltoh",
535         "expExitCode": "255",
536         "verifyCmd": "$TC actions list action mirred",
537         "matchPattern": "action order [0-9]*: mirred \\(.*to device eltoh\\).*index 20 ref",
538         "matchCount": "0",
539         "teardown": [
540             "$TC actions flush action mirred"
541         ]
542     },
543     {
544         "id": "300b",
545         "name": "Add mirred action with duplicate index",
546         "category": [
547             "actions",
548             "mirred"
549         ],
550         "setup": [
551             [
552                 "$TC actions flush action mirred",
553                 0,
554                 1,
555                 255
556             ],
557             "$TC actions add action mirred egress redirect index 15 dev lo"
558         ],
559         "cmdUnderTest": "$TC actions add action mirred egress mirror index 15 dev lo",
560         "expExitCode": "255",
561         "verifyCmd": "$TC actions list action mirred",
562         "matchPattern": "action order [0-9]*: mirred \\(.*to device lo\\).*index 15 ref",
563         "matchCount": "1",
564         "teardown": [
565             "$TC actions flush action mirred"
566         ]
567     },
568     {
569         "id": "a70e",
570         "name": "Delete mirred mirror action",
571         "category": [
572             "actions",
573             "mirred"
574         ],
575         "setup": [
576             [
577                 "$TC actions flush action mirred",
578                 0,
579                 1,
580                 255
581             ],
582             "$TC actions add action mirred egress mirror index 5 dev lo"
583         ],
584         "cmdUnderTest": "$TC actions del action mirred index 5",
585         "expExitCode": "0",
586         "verifyCmd": "$TC actions list action mirred",
587         "matchPattern": "action order [0-9]*: mirred \\(Egress Mirror to device lo\\).*index 5 ref",
588         "matchCount": "0",
589         "teardown": [
590             "$TC actions flush action mirred"
591         ]
592     },
593     {
594         "id": "3fb3",
595         "name": "Delete mirred redirect action",
596         "category": [
597             "actions",
598             "mirred"
599         ],
600         "setup": [
601             [
602                 "$TC actions flush action mirred",
603                 0,
604                 1,
605                 255
606             ],
607             "$TC actions add action mirred egress redirect index 5 dev lo"
608         ],
609         "cmdUnderTest": "$TC actions del action mirred index 5",
610         "expExitCode": "0",
611         "verifyCmd": "$TC actions list action mirred",
612         "matchPattern": "action order [0-9]*: mirred \\(Egress Redirect to device lo\\).*index 5 ref",
613         "matchCount": "0",
614         "teardown": [
615             "$TC actions flush action mirred"
616         ]
617     },
618     {
619         "id": "b078",
620         "name": "Add simple action",
621         "category": [
622             "actions",
623             "simple"
624         ],
625         "setup": [
626             [
627                 "$TC actions flush action simple",
628                 0,
629                 1,
630                 255
631             ]
632         ],
633         "cmdUnderTest": "$TC actions add action simple sdata \"A triumph\" index 60",
634         "expExitCode": "0",
635         "verifyCmd": "$TC actions list action simple",
636         "matchPattern": "action order [0-9]*: Simple <A triumph>.*index 60 ref",
637         "matchCount": "1",
638         "teardown": [
639             "$TC actions flush action simple"
640         ]
641     },
642     {
643         "id": "6d4c",
644         "name": "Add simple action with duplicate index",
645         "category": [
646             "actions",
647             "simple"
648         ],
649         "setup": [
650             [
651                 "$TC actions flush action simple",
652                 0,
653                 1,
654                 255
655             ],
656             "$TC actions add action simple sdata \"Aruba\" index 4"
657         ],
658         "cmdUnderTest": "$TC actions add action simple sdata \"Jamaica\" index 4",
659         "expExitCode": "255",
660         "verifyCmd": "$TC actions list action simple",
661         "matchPattern": "action order [0-9]*: Simple <Jamaica>.*ref",
662         "matchCount": "0",
663         "teardown": [
664             "$TC actions flush action simple"
665         ]
666     },
667     {
668         "id": "2542",
669         "name": "List simple actions",
670         "category": [
671             "actions",
672             "simple"
673         ],
674         "setup": [
675             [
676                 "$TC actions flush action simple",
677                 0,
678                 1,
679                 255
680             ],
681             "$TC actions add action simple sdata \"Rock\"",
682             "$TC actions add action simple sdata \"Paper\"",
683             "$TC actions add action simple sdata \"Scissors\" index 98"
684         ],
685         "cmdUnderTest": "$TC actions list action simple",
686         "expExitCode": "0",
687         "verifyCmd": "$TC actions list action simple",
688         "matchPattern": "action order [0-9]*: Simple <[A-Z][a-z]*>",
689         "matchCount": "3",
690         "teardown": [
691             "$TC actions flush action simple"
692         ]
693     },
694     {
695         "id": "ea67",
696         "name": "Delete simple action",
697         "category": [
698             "actions",
699             "simple"
700         ],
701         "setup": [
702             [
703                 "$TC actions flush action simple",
704                 0,
705                 1,
706                 255
707             ],
708             "$TC actions add action simple sdata \"Blinkenlights\" index 1"
709         ],
710         "cmdUnderTest": "$TC actions delete action simple index 1",
711         "expExitCode": "0",
712         "verifyCmd": "$TC actions list action simple",
713         "matchPattern": "action order [0-9]*: Simple <Blinkenlights>.*index 1 ref",
714         "matchCount": "0",
715         "teardown": [
716             "$TC actions flush action simple"
717         ]
718     },
719     {
720         "id": "8ff1",
721         "name": "Flush simple actions",
722         "category": [
723             "actions",
724             "simple"
725         ],
726         "setup": [
727             [
728                 "$TC actions flush action simple",
729                 0,
730                 1,
731                 255
732             ],
733             "$TC actions add action simple sdata \"Kirk\"",
734             "$TC actions add action simple sdata \"Spock\" index 50",
735             "$TC actions add action simple sdata \"McCoy\" index 9"
736         ],
737         "cmdUnderTest": "$TC actions flush action simple",
738         "expExitCode": "0",
739         "verifyCmd": "$TC actions list action simple",
740         "matchPattern": "action order [0-9]*: Simple <[A-Z][a-z]*>",
741         "matchCount": "0",
742         "teardown": [
743             ""
744         ]
745     },
746     {
747         "id": "6236",
748         "name": "Add skbedit action with valid mark",
749         "category": [
750             "actions",
751             "skbedit"
752         ],
753         "setup": [
754             [
755                 "$TC actions flush action skbedit",
756                 0,
757                 1,
758                 255
759             ]
760         ],
761         "cmdUnderTest": "$TC actions add action skbedit mark 1",
762         "expExitCode": "0",
763         "verifyCmd": "$TC actions list action skbedit",
764         "matchPattern": "action order [0-9]*:  skbedit mark 1",
765         "matchCount": "1",
766         "teardown": [
767             "$TC actions flush action skbedit"
768         ]
769     },
770     {
771         "id": "407b",
772         "name": "Add skbedit action with invalid mark",
773         "category": [
774             "actions",
775             "skbedit"
776         ],
777         "setup": [
778             [
779                 "$TC actions flush action skbedit",
780                 0,
781                 1,
782                 255
783             ]
784         ],
785         "cmdUnderTest": "$TC actions add action skbedit mark 666777888999",
786         "expExitCode": "255",
787         "verifyCmd": "$TC actions list action skbedit",
788         "matchPattern": "action order [0-9]*:  skbedit mark",
789         "matchCount": "0",
790         "teardown": [
791             "$TC actions flush action skbedit"
792         ]
793     },
794     {
795         "id": "081d",
796         "name": "Add skbedit action with priority",
797         "category": [
798             "actions",
799             "skbedit"
800         ],
801         "setup": [
802             [
803                 "$TC actions flush action skbedit",
804                 0,
805                 1,
806                 255
807             ]
808         ],
809         "cmdUnderTest": "$TC actions add action skbedit prio 99",
810         "expExitCode": "0",
811         "verifyCmd": "$TC actions list action skbedit",
812         "matchPattern": "action order [0-9]*:  skbedit priority :99",
813         "matchCount": "1",
814         "teardown": [
815             "$TC actions flush action skbedit"
816         ]
817     },
818     {
819         "id": "cc37",
820         "name": "Add skbedit action with invalid priority",
821         "category": [
822             "actions",
823             "skbedit"
824         ],
825         "setup": [
826             [
827                 "$TC actions flush action skbedit",
828                 0,
829                 1,
830                 255
831             ]
832         ],
833         "cmdUnderTest": "$TC actions add action skbedit prio foo",
834         "expExitCode": "255",
835         "verifyCmd": "$TC actions list action skbedit",
836         "matchPattern": "action order [0-9]*:  skbedit priority",
837         "matchCount": "0",
838         "teardown": [
839             "$TC actions flush action skbedit"
840         ]
841     },
842     {
843         "id": "3c95",
844         "name": "Add skbedit action with queue_mapping",
845         "category": [
846             "actions",
847             "skbedit"
848         ],
849         "setup": [
850             [
851                 "$TC actions flush action skbedit",
852                 0,
853                 1,
854                 255
855             ]
856         ],
857         "cmdUnderTest": "$TC actions add action skbedit queue_mapping 909",
858         "expExitCode": "0",
859         "verifyCmd": "$TC actions list action skbedit",
860         "matchPattern": "action order [0-9]*:  skbedit queue_mapping 909",
861         "matchCount": "1",
862         "teardown": [
863             "$TC actions flush action skbedit"
864         ]
865     },
866     {
867         "id": "985c",
868         "name": "Add skbedit action with invalid queue_mapping",
869         "category": [
870             "actions",
871             "skbedit"
872         ],
873         "setup": [
874             [
875                 "$TC actions flush action skbedit",
876                 0,
877                 1,
878                 255
879             ]
880         ],
881         "cmdUnderTest": "$TC actions add action skbedit queue_mapping 67000",
882         "expExitCode": "255",
883         "verifyCmd": "$TC actions list action skbedit",
884         "matchPattern": "action order [0-9]*:  skbedit queue_mapping",
885         "matchCount": "0",
886         "teardown": [
887             "$TC actions flush action skbedit"
888         ]
889     },
890     {
891         "id": "224f",
892         "name": "Add skbedit action with ptype host",
893         "category": [
894             "actions",
895             "skbedit"
896         ],
897         "setup": [
898             [
899                 "$TC actions flush action skbedit",
900                 0,
901                 1,
902                 255
903             ]
904         ],
905         "cmdUnderTest": "$TC actions add action skbedit ptype host",
906         "expExitCode": "0",
907         "verifyCmd": "$TC actions list action skbedit",
908         "matchPattern": "action order [0-9]*:  skbedit ptype host",
909         "matchCount": "1",
910         "teardown": [
911             "$TC actions flush action skbedit"
912         ]
913     },
914     {
915         "id": "d1a3",
916         "name": "Add skbedit action with ptype otherhost",
917         "category": [
918             "actions",
919             "skbedit"
920         ],
921         "setup": [
922             [
923                 "$TC actions flush action skbedit",
924                 0,
925                 1,
926                 255
927             ]
928         ],
929         "cmdUnderTest": "$TC actions add action skbedit ptype otherhost",
930         "expExitCode": "0",
931         "verifyCmd": "$TC actions list action skbedit",
932         "matchPattern": "action order [0-9]*:  skbedit ptype otherhost",
933         "matchCount": "1",
934         "teardown": [
935             "$TC actions flush action skbedit"
936         ]
937     },
938     {
939         "id": "b9c6",
940         "name": "Add skbedit action with invalid ptype",
941         "category": [
942             "actions",
943             "skbedit"
944         ],
945         "setup": [
946             [
947                 "$TC actions flush action skbedit",
948                 0,
949                 1,
950                 255
951             ]
952         ],
953         "cmdUnderTest": "$TC actions add action skbedit ptype openair",
954         "expExitCode": "255",
955         "verifyCmd": "$TC actions list action skbedit",
956         "matchPattern": "action order [0-9]*:  skbedit ptype openair",
957         "matchCount": "0",
958         "teardown": [
959             "$TC actions flush action skbedit"
960         ]
961     },
962     {
963         "id": "5172",
964         "name": "List skbedit actions",
965         "category": [
966             "actions",
967             "skbedit"
968         ],
969         "setup": [
970             [
971                 "$TC actions flush action skbedit",
972                 0,
973                 1,
974                 255
975             ],
976             "$TC actions add action skbedit ptype otherhost",
977             "$TC actions add action skbedit ptype broadcast",
978             "$TC actions add action skbedit mark 59",
979             "$TC actions add action skbedit mark 409"
980         ],
981         "cmdUnderTest": "$TC actions list action skbedit",
982         "expExitCode": "0",
983         "verifyCmd": "$TC actions list action skbedit",
984         "matchPattern": "action order [0-9]*:  skbedit",
985         "matchCount": "4",
986         "teardown": [
987             "$TC actions flush action skbedit"
988         ]
989     },
990     {
991         "id": "a6d6",
992         "name": "Add skbedit action with index",
993         "category": [
994             "actions",
995             "skbedit"
996         ],
997         "setup": [
998             [
999                 "$TC actions flush action skbedit",
1000                 0,
1001                 1,
1002                 255
1003             ]
1004         ],
1005         "cmdUnderTest": "$TC actions add action skbedit mark 808 index 4040404040",
1006         "expExitCode": "0",
1007         "verifyCmd": "$TC actions list action skbedit",
1008         "matchPattern": "index 4040404040",
1009         "matchCount": "1",
1010         "teardown": [
1011             "$TC actions flush action skbedit"
1012         ]
1013     },
1014     {
1015         "id": "38f3",
1016         "name": "Delete skbedit action",
1017         "category": [
1018             "actions",
1019             "skbedit"
1020         ],
1021         "setup": [
1022             [
1023                 "$TC actions flush action skbedit",
1024                 0,
1025                 1,
1026                 255
1027             ],
1028             "$TC actions add action skbedit mark 42 index 9009"
1029         ],
1030         "cmdUnderTest": "$TC actions del action skbedit index 9009",
1031         "expExitCode": "0",
1032         "verifyCmd": "$TC actions list action skbedit",
1033         "matchPattern": "action order [0-9]*:  skbedit mark 42",
1034         "matchCount": "0",
1035         "teardown": [
1036             "$TC actions flush action skbedit"
1037         ]
1038     },
1039     {
1040         "id": "ce97",
1041         "name": "Flush skbedit actions",
1042         "category": [
1043             "actions",
1044             "skbedit"
1045         ],
1046         "setup": [
1047             "$TC actions add action skbedit mark 500",
1048             "$TC actions add action skbedit mark 501",
1049             "$TC actions add action skbedit mark 502",
1050             "$TC actions add action skbedit mark 503",
1051             "$TC actions add action skbedit mark 504",
1052             "$TC actions add action skbedit mark 505",
1053             "$TC actions add action skbedit mark 506"
1054         ],
1055         "cmdUnderTest": "$TC actions flush action skbedit",
1056         "expExitCode": "0",
1057         "verifyCmd": "$TC actions list action skbedit",
1058         "matchPattern": "action order [0-9]*:  skbedit",
1059         "matchCount": "0",
1060         "teardown": [
1061             "$TC actions flush action skbedit"
1062         ]
1063     },
1064     {
1065         "id": "f02c",
1066         "name": "Replace gact action",
1067         "category": [
1068             "actions",
1069             "gact"
1070         ],
1071         "setup": [
1072             [
1073                 "$TC actions flush action gact",
1074                 0,
1075                 1,
1076                 255
1077             ],
1078             "$TC actions add action drop index 10",
1079             "$TC actions add action drop index 12"
1080         ],
1081         "cmdUnderTest": "$TC actions replace action ok index 12",
1082         "expExitCode": "0",
1083         "verifyCmd": "$TC actions ls action gact",
1084         "matchPattern": "action order [0-9]*: gact action pass",
1085         "matchCount": "1",
1086         "teardown": [
1087             "$TC actions flush action gact"
1088         ]
1089     },
1090     {
1091         "id": "525f",
1092         "name": "Get gact action by index",
1093         "category": [
1094             "actions",
1095             "gact"
1096         ],
1097         "setup": [
1098             [
1099                 "$TC actions flush action gact",
1100                 0,
1101                 1,
1102                 255
1103             ],
1104             "$TC actions add action drop index 3900800700"
1105         ],
1106         "cmdUnderTest": "$TC actions get action gact index 3900800700",
1107         "expExitCode": "0",
1108         "verifyCmd": "$TC actions get action gact index 3900800700",
1109         "matchPattern": "index 3900800700",
1110         "matchCount": "1",
1111         "teardown": [
1112             "$TC actions flush action gact"
1113         ]
1114     },
1115     {
1116         "id": "a568",
1117         "name": "Add action with ife type",
1118         "category": [
1119             "actions",
1120             "ife"
1121         ],
1122         "setup": [
1123             [
1124                 "$TC actions flush action ife",
1125                 0,
1126                 1,
1127                 255
1128             ],
1129             "$TC actions add action ife encode type 0xDEAD index 1"
1130         ],
1131         "cmdUnderTest": "$TC actions get action ife index 1",
1132         "expExitCode": "0",
1133         "verifyCmd": "$TC actions get action ife index 1",
1134         "matchPattern": "type 0xDEAD",
1135         "matchCount": "1",
1136         "teardown": [
1137             "$TC actions flush action ife"
1138         ]
1139     },
1140     {
1141         "id": "b983",
1142         "name": "Add action without ife type",
1143         "category": [
1144             "actions",
1145             "ife"
1146         ],
1147         "setup": [
1148             [
1149                 "$TC actions flush action ife",
1150                 0,
1151                 1,
1152                 255
1153             ],
1154             "$TC actions add action ife encode index 1"
1155         ],
1156         "cmdUnderTest": "$TC actions get action ife index 1",
1157         "expExitCode": "0",
1158         "verifyCmd": "$TC actions get action ife index 1",
1159         "matchPattern": "type 0xED3E",
1160         "matchCount": "1",
1161         "teardown": [
1162             "$TC actions flush action ife"
1163         ]
1164     }
1165 ]