4 "name": "Add valid pass action",
11 "$TC actions flush action gact",
17 "cmdUnderTest": "$TC actions add action pass index 8",
19 "verifyCmd": "$TC actions list action gact",
20 "matchPattern": "action order [0-9]*: gact action pass.*index 8 ref",
23 "$TC actions flush action gact"
28 "name": "Add valid pipe action",
35 "$TC actions flush action gact",
41 "cmdUnderTest": "$TC actions add action pipe index 6",
43 "verifyCmd": "$TC actions list action gact",
44 "matchPattern": "action order [0-9]*: gact action pipe.*index 6 ref",
47 "$TC actions flush action gact"
52 "name": "Add valid reclassify action",
59 "$TC actions flush action gact",
65 "cmdUnderTest": "$TC actions add action reclassify index 5",
67 "verifyCmd": "$TC actions list action gact",
68 "matchPattern": "action order [0-9]*: gact action reclassify.*index 5 ref",
71 "$TC actions flush action gact"
76 "name": "Add valid drop action",
83 "$TC actions flush action gact",
89 "cmdUnderTest": "$TC actions add action drop index 30",
91 "verifyCmd": "$TC actions list action gact",
92 "matchPattern": "action order [0-9]*: gact action drop.*index 30 ref",
95 "$TC actions flush action gact"
100 "name": "Add valid continue action",
107 "$TC actions flush action gact",
113 "cmdUnderTest": "$TC actions add action continue index 432",
115 "verifyCmd": "$TC actions list action gact",
116 "matchPattern": "action order [0-9]*: gact action continue.*index 432 ref",
119 "$TC actions flush action gact"
124 "name": "Add invalid action",
131 "$TC actions flush action gact",
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",
143 "$TC actions flush action gact"
148 "name": "Add action with duplicate index",
155 "$TC actions flush action gact",
160 "$TC actions add action pipe index 15"
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",
168 "$TC actions flush action gact"
173 "name": "Add action with index exceeding 32-bit maximum",
180 "$TC actions flush action gact",
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",
192 "$TC actions flush action gact"
197 "name": "Add action with index at 32-bit maximum",
204 "$TC actions flush action gact",
210 "cmdUnderTest": "$TC actions add action drop index 4294967295",
212 "verifyCmd": "$TC actions list action gact",
213 "matchPattern": "action order [0-9]*: gact action drop.*index 4294967295 ref",
216 "$TC actions flush action gact"
221 "name": "List actions",
228 "$TC actions flush action gact",
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"
239 "cmdUnderTest": "$TC actions list action gact",
241 "verifyCmd": "$TC actions list action gact",
242 "matchPattern": "action order [0-9]*: gact action reclassify",
245 "$TC actions flush action gact"
250 "name": "Delete pass action",
257 "$TC actions flush action gact",
262 "$TC actions add action pass index 1"
264 "cmdUnderTest": "$TC actions del action gact index 1",
266 "verifyCmd": "$TC actions list action gact",
267 "matchPattern": "action order [0-9]*: gact action pass.*index 1 ref",
270 "$TC actions flush action gact"
275 "name": "Delete pipe action",
282 "$TC actions flush action gact",
287 "$TC actions add action pipe index 9"
289 "cmdUnderTest": "$TC actions del action gact index 9",
291 "verifyCmd": "$TC actions list action gact",
292 "matchPattern": "action order [0-9]*: gact action pipe.*index 9 ref",
295 "$TC actions flush action gact"
300 "name": "Delete reclassify action",
307 "$TC actions flush action gact",
312 "$TC actions add action reclassify index 65536"
314 "cmdUnderTest": "$TC actions del action gact index 65536",
316 "verifyCmd": "$TC actions list action gact",
317 "matchPattern": "action order [0-9]*: gact action reclassify.*index 65536 ref",
320 "$TC actions flush action gact"
325 "name": "Delete drop action",
332 "$TC actions flush action gact",
337 "$TC actions add action drop index 16"
339 "cmdUnderTest": "$TC actions del action gact index 16",
341 "verifyCmd": "$TC actions list action gact",
342 "matchPattern": "action order [0-9]*: gact action drop.*index 16 ref",
345 "$TC actions flush action gact"
350 "name": "Delete continue action",
357 "$TC actions flush action gact",
362 "$TC actions add action continue index 32"
364 "cmdUnderTest": "$TC actions del action gact index 32",
366 "verifyCmd": "actions list action gact",
367 "matchPattern": "action order [0-9]*: gact action continue.*index 32 ref",
370 "$TC actions flush action gact"
375 "name": "Delete non-existent action",
382 "$TC actions flush action gact",
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",
394 "$TC actions flush action gact"
399 "name": "Add mirred mirror to egress action",
406 "$TC actions flush action mirred",
412 "cmdUnderTest": "$TC actions add action mirred egress mirror index 1 dev lo",
414 "verifyCmd": "$TC actions list action mirred",
415 "matchPattern": "action order [0-9]*: mirred \\(Egress Mirror to device lo\\).*index 1 ref",
418 "$TC actions flush action mirred"
423 "name": "Add mirred redirect to egress action",
430 "$TC actions flush action mirred",
436 "cmdUnderTest": "$TC actions add action mirred egress redirect index 2 dev lo action pipe",
438 "verifyCmd": "$TC actions list action mirred",
439 "matchPattern": "action order [0-9]*: mirred \\(Egress Redirect to device lo\\).*index 2 ref",
442 "$TC actions flush action mirred"
447 "name": "Get mirred actions",
454 "$TC actions flush action mirred",
459 "$TC actions add action mirred egress mirror index 1 dev lo",
460 "$TC actions add action mirred egress redirect index 2 dev lo"
462 "cmdUnderTest": "$TC actions show action mirred",
464 "verifyCmd": "$TC actions list action mirred",
465 "matchPattern": "[Mirror|Redirect] to device lo",
468 "$TC actions flush action mirred"
473 "name": "Add invalid mirred direction",
480 "$TC actions flush action mirred",
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",
492 "$TC actions flush action mirred"
497 "name": "Add invalid mirred action",
504 "$TC actions flush action mirred",
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",
516 "$TC actions flush action mirred"
521 "name": "Add mirred action with invalid device",
528 "$TC actions flush action mirred",
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",
540 "$TC actions flush action mirred"
545 "name": "Add mirred action with duplicate index",
552 "$TC actions flush action mirred",
557 "$TC actions add action mirred egress redirect index 15 dev lo"
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",
565 "$TC actions flush action mirred"
570 "name": "Delete mirred mirror action",
577 "$TC actions flush action mirred",
582 "$TC actions add action mirred egress mirror index 5 dev lo"
584 "cmdUnderTest": "$TC actions del action mirred index 5",
586 "verifyCmd": "$TC actions list action mirred",
587 "matchPattern": "action order [0-9]*: mirred \\(Egress Mirror to device lo\\).*index 5 ref",
590 "$TC actions flush action mirred"
595 "name": "Delete mirred redirect action",
602 "$TC actions flush action mirred",
607 "$TC actions add action mirred egress redirect index 5 dev lo"
609 "cmdUnderTest": "$TC actions del action mirred index 5",
611 "verifyCmd": "$TC actions list action mirred",
612 "matchPattern": "action order [0-9]*: mirred \\(Egress Redirect to device lo\\).*index 5 ref",
615 "$TC actions flush action mirred"
620 "name": "Add simple action",
627 "$TC actions flush action simple",
633 "cmdUnderTest": "$TC actions add action simple sdata \"A triumph\" index 60",
635 "verifyCmd": "$TC actions list action simple",
636 "matchPattern": "action order [0-9]*: Simple <A triumph>.*index 60 ref",
639 "$TC actions flush action simple"
644 "name": "Add simple action with duplicate index",
651 "$TC actions flush action simple",
656 "$TC actions add action simple sdata \"Aruba\" index 4"
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",
664 "$TC actions flush action simple"
669 "name": "List simple actions",
676 "$TC actions flush action simple",
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"
685 "cmdUnderTest": "$TC actions list action simple",
687 "verifyCmd": "$TC actions list action simple",
688 "matchPattern": "action order [0-9]*: Simple <[A-Z][a-z]*>",
691 "$TC actions flush action simple"
696 "name": "Delete simple action",
703 "$TC actions flush action simple",
708 "$TC actions add action simple sdata \"Blinkenlights\" index 1"
710 "cmdUnderTest": "$TC actions delete action simple index 1",
712 "verifyCmd": "$TC actions list action simple",
713 "matchPattern": "action order [0-9]*: Simple <Blinkenlights>.*index 1 ref",
716 "$TC actions flush action simple"
721 "name": "Flush simple actions",
728 "$TC actions flush action simple",
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"
737 "cmdUnderTest": "$TC actions flush action simple",
739 "verifyCmd": "$TC actions list action simple",
740 "matchPattern": "action order [0-9]*: Simple <[A-Z][a-z]*>",
748 "name": "Add skbedit action with valid mark",
755 "$TC actions flush action skbedit",
761 "cmdUnderTest": "$TC actions add action skbedit mark 1",
763 "verifyCmd": "$TC actions list action skbedit",
764 "matchPattern": "action order [0-9]*: skbedit mark 1",
767 "$TC actions flush action skbedit"
772 "name": "Add skbedit action with invalid mark",
779 "$TC actions flush action skbedit",
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",
791 "$TC actions flush action skbedit"
796 "name": "Add skbedit action with priority",
803 "$TC actions flush action skbedit",
809 "cmdUnderTest": "$TC actions add action skbedit prio 99",
811 "verifyCmd": "$TC actions list action skbedit",
812 "matchPattern": "action order [0-9]*: skbedit priority :99",
815 "$TC actions flush action skbedit"
820 "name": "Add skbedit action with invalid priority",
827 "$TC actions flush action skbedit",
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",
839 "$TC actions flush action skbedit"
844 "name": "Add skbedit action with queue_mapping",
851 "$TC actions flush action skbedit",
857 "cmdUnderTest": "$TC actions add action skbedit queue_mapping 909",
859 "verifyCmd": "$TC actions list action skbedit",
860 "matchPattern": "action order [0-9]*: skbedit queue_mapping 909",
863 "$TC actions flush action skbedit"
868 "name": "Add skbedit action with invalid queue_mapping",
875 "$TC actions flush action skbedit",
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",
887 "$TC actions flush action skbedit"
892 "name": "Add skbedit action with ptype host",
899 "$TC actions flush action skbedit",
905 "cmdUnderTest": "$TC actions add action skbedit ptype host",
907 "verifyCmd": "$TC actions list action skbedit",
908 "matchPattern": "action order [0-9]*: skbedit ptype host",
911 "$TC actions flush action skbedit"
916 "name": "Add skbedit action with ptype otherhost",
923 "$TC actions flush action skbedit",
929 "cmdUnderTest": "$TC actions add action skbedit ptype otherhost",
931 "verifyCmd": "$TC actions list action skbedit",
932 "matchPattern": "action order [0-9]*: skbedit ptype otherhost",
935 "$TC actions flush action skbedit"
940 "name": "Add skbedit action with invalid ptype",
947 "$TC actions flush action skbedit",
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",
959 "$TC actions flush action skbedit"
964 "name": "List skbedit actions",
971 "$TC actions flush action skbedit",
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"
981 "cmdUnderTest": "$TC actions list action skbedit",
983 "verifyCmd": "$TC actions list action skbedit",
984 "matchPattern": "action order [0-9]*: skbedit",
987 "$TC actions flush action skbedit"
992 "name": "Add skbedit action with index",
999 "$TC actions flush action skbedit",
1005 "cmdUnderTest": "$TC actions add action skbedit mark 808 index 4040404040",
1007 "verifyCmd": "$TC actions list action skbedit",
1008 "matchPattern": "index 4040404040",
1011 "$TC actions flush action skbedit"
1016 "name": "Delete skbedit action",
1023 "$TC actions flush action skbedit",
1028 "$TC actions add action skbedit mark 42 index 9009"
1030 "cmdUnderTest": "$TC actions del action skbedit index 9009",
1032 "verifyCmd": "$TC actions list action skbedit",
1033 "matchPattern": "action order [0-9]*: skbedit mark 42",
1036 "$TC actions flush action skbedit"
1041 "name": "Flush skbedit actions",
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"
1055 "cmdUnderTest": "$TC actions flush action skbedit",
1057 "verifyCmd": "$TC actions list action skbedit",
1058 "matchPattern": "action order [0-9]*: skbedit",
1061 "$TC actions flush action skbedit"
1066 "name": "Replace gact action",
1073 "$TC actions flush action gact",
1078 "$TC actions add action drop index 10",
1079 "$TC actions add action drop index 12"
1081 "cmdUnderTest": "$TC actions replace action ok index 12",
1083 "verifyCmd": "$TC actions ls action gact",
1084 "matchPattern": "action order [0-9]*: gact action pass",
1087 "$TC actions flush action gact"
1092 "name": "Get gact action by index",
1099 "$TC actions flush action gact",
1104 "$TC actions add action drop index 3900800700"
1106 "cmdUnderTest": "$TC actions get action gact index 3900800700",
1108 "verifyCmd": "$TC actions get action gact index 3900800700",
1109 "matchPattern": "index 3900800700",
1112 "$TC actions flush action gact"
1117 "name": "Add action with ife type",
1124 "$TC actions flush action ife",
1129 "$TC actions add action ife encode type 0xDEAD index 1"
1131 "cmdUnderTest": "$TC actions get action ife index 1",
1133 "verifyCmd": "$TC actions get action ife index 1",
1134 "matchPattern": "type 0xDEAD",
1137 "$TC actions flush action ife"
1142 "name": "Add action without ife type",
1149 "$TC actions flush action ife",
1154 "$TC actions add action ife encode index 1"
1156 "cmdUnderTest": "$TC actions get action ife index 1",
1158 "verifyCmd": "$TC actions get action ife index 1",
1159 "matchPattern": "type 0xED3E",
1162 "$TC actions flush action ife"