4 "name": "Create valid ife encode action with mark and pass control",
10 "requires": "nsPlugin"
14 "$TC actions flush action ife",
20 "cmdUnderTest": "$TC actions add action ife encode allow mark pass index 2",
22 "verifyCmd": "$TC actions get action ife index 2",
23 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*allow mark.*index 2",
26 "$TC actions flush action ife"
31 "name": "Create valid ife encode action with mark and pipe control",
37 "requires": "nsPlugin"
41 "$TC actions flush action ife",
47 "cmdUnderTest": "$TC actions add action ife encode use mark 10 pipe index 2",
49 "verifyCmd": "$TC actions get action ife index 2",
50 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*use mark.*index 2",
53 "$TC actions flush action ife"
58 "name": "Create valid ife encode action with mark and continue control",
64 "requires": "nsPlugin"
68 "$TC actions flush action ife",
74 "cmdUnderTest": "$TC actions add action ife encode allow mark continue index 2",
76 "verifyCmd": "$TC actions get action ife index 2",
77 "matchPattern": "action order [0-9]*: ife encode action continue.*type 0[xX]ED3E.*allow mark.*index 2",
80 "$TC actions flush action ife"
85 "name": "Create valid ife encode action with mark and drop control",
91 "requires": "nsPlugin"
95 "$TC actions flush action ife",
101 "cmdUnderTest": "$TC actions add action ife encode use mark 789 drop index 2",
103 "verifyCmd": "$TC actions get action ife index 2",
104 "matchPattern": "action order [0-9]*: ife encode action drop.*type 0[xX]ED3E.*use mark 789.*index 2",
107 "$TC actions flush action ife"
112 "name": "Create valid ife encode action with mark and reclassify control",
118 "requires": "nsPlugin"
122 "$TC actions flush action ife",
128 "cmdUnderTest": "$TC actions add action ife encode use mark 656768 reclassify index 2",
130 "verifyCmd": "$TC actions get action ife index 2",
131 "matchPattern": "action order [0-9]*: ife encode action reclassify.*type 0[xX]ED3E.*use mark 656768.*index 2",
134 "$TC actions flush action ife"
139 "name": "Create valid ife encode action with mark and jump control",
145 "requires": "nsPlugin"
149 "$TC actions flush action ife",
155 "cmdUnderTest": "$TC actions add action ife encode use mark 65 jump 1 index 2",
157 "verifyCmd": "$TC actions get action ife index 2",
158 "matchPattern": "action order [0-9]*: ife encode action jump 1.*type 0[xX]ED3E.*use mark 65.*index 2",
161 "$TC actions flush action ife"
166 "name": "Create valid ife encode action with mark value at 32-bit maximum",
172 "requires": "nsPlugin"
176 "$TC actions flush action ife",
182 "cmdUnderTest": "$TC actions add action ife encode use mark 4294967295 reclassify index 90",
184 "verifyCmd": "$TC actions get action ife index 90",
185 "matchPattern": "action order [0-9]*: ife encode action reclassify.*type 0[xX]ED3E.*use mark 4294967295.*index 90",
188 "$TC actions flush action ife"
193 "name": "Create ife encode action with mark value exceeding 32-bit maximum",
199 "requires": "nsPlugin"
203 "$TC actions flush action ife",
209 "cmdUnderTest": "$TC actions add action ife encode use mark 4294967295999 pipe index 90",
210 "expExitCode": "255",
211 "verifyCmd": "$TC actions get action ife index 90",
212 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*use mark 4294967295999.*index 90",
218 "name": "Create valid ife encode action with prio and pass control",
224 "requires": "nsPlugin"
228 "$TC actions flush action ife",
234 "cmdUnderTest": "$TC actions add action ife encode allow prio pass index 9",
236 "verifyCmd": "$TC actions get action ife index 9",
237 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*allow prio.*index 9",
240 "$TC actions flush action ife"
245 "name": "Create valid ife encode action with prio and pipe control",
251 "requires": "nsPlugin"
255 "$TC actions flush action ife",
261 "cmdUnderTest": "$TC actions add action ife encode use prio 7 pipe index 9",
263 "verifyCmd": "$TC actions get action ife index 9",
264 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*use prio 7.*index 9",
267 "$TC actions flush action ife"
272 "name": "Create valid ife encode action with prio and continue control",
278 "requires": "nsPlugin"
282 "$TC actions flush action ife",
288 "cmdUnderTest": "$TC actions add action ife encode use prio 3 continue index 9",
290 "verifyCmd": "$TC actions get action ife index 9",
291 "matchPattern": "action order [0-9]*: ife encode action continue.*type 0[xX]ED3E.*use prio 3.*index 9",
294 "$TC actions flush action ife"
299 "name": "Create valid ife encode action with prio and drop control",
305 "requires": "nsPlugin"
309 "$TC actions flush action ife",
315 "cmdUnderTest": "$TC actions add action ife encode allow prio drop index 9",
317 "verifyCmd": "$TC actions get action ife index 9",
318 "matchPattern": "action order [0-9]*: ife encode action drop.*type 0[xX]ED3E.*allow prio.*index 9",
321 "$TC actions flush action ife"
326 "name": "Create valid ife encode action with prio and reclassify control",
332 "requires": "nsPlugin"
336 "$TC actions flush action ife",
342 "cmdUnderTest": "$TC actions add action ife encode use prio 998877 reclassify index 9",
344 "verifyCmd": "$TC actions get action ife index 9",
345 "matchPattern": "action order [0-9]*: ife encode action reclassify.*type 0[xX]ED3E.*use prio 998877.*index 9",
348 "$TC actions flush action ife"
353 "name": "Create valid ife encode action with prio and jump control",
359 "requires": "nsPlugin"
363 "$TC actions flush action ife",
369 "cmdUnderTest": "$TC actions add action ife encode use prio 998877 jump 10 index 9",
371 "verifyCmd": "$TC actions get action ife index 9",
372 "matchPattern": "action order [0-9]*: ife encode action jump 10.*type 0[xX]ED3E.*use prio 998877.*index 9",
375 "$TC actions flush action ife"
380 "name": "Create valid ife encode action with prio value at 32-bit maximum",
386 "requires": "nsPlugin"
390 "$TC actions flush action ife",
396 "cmdUnderTest": "$TC actions add action ife encode use prio 4294967295 reclassify index 99",
398 "verifyCmd": "$TC actions get action ife index 99",
399 "matchPattern": "action order [0-9]*: ife encode action reclassify.*type 0[xX]ED3E.*use prio 4294967295.*index 99",
402 "$TC actions flush action ife"
407 "name": "Create ife encode action with prio value exceeding 32-bit maximum",
413 "requires": "nsPlugin"
417 "$TC actions flush action ife",
423 "cmdUnderTest": "$TC actions add action ife encode use prio 4294967298 pipe index 99",
424 "expExitCode": "255",
425 "verifyCmd": "$TC actions get action ife index 99",
426 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*use prio 4294967298.*index 99",
432 "name": "Create valid ife encode action with tcindex and pass control",
438 "requires": "nsPlugin"
442 "$TC actions flush action ife",
448 "cmdUnderTest": "$TC actions add action ife encode allow tcindex pass index 1",
450 "verifyCmd": "$TC actions get action ife index 1",
451 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*allow tcindex.*index 1",
454 "$TC actions flush action ife"
459 "name": "Create valid ife encode action with tcindex and pipe control",
465 "requires": "nsPlugin"
469 "$TC actions flush action ife",
475 "cmdUnderTest": "$TC actions add action ife encode use tcindex 111 pipe index 1",
477 "verifyCmd": "$TC actions get action ife index 1",
478 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*use tcindex 111.*index 1",
481 "$TC actions flush action ife"
486 "name": "Create valid ife encode action with tcindex and continue control",
492 "requires": "nsPlugin"
496 "$TC actions flush action ife",
502 "cmdUnderTest": "$TC actions add action ife encode use tcindex 1 continue index 1",
504 "verifyCmd": "$TC actions get action ife index 1",
505 "matchPattern": "action order [0-9]*: ife encode action continue.*type 0[xX]ED3E.*use tcindex 1.*index 1",
508 "$TC actions flush action ife"
513 "name": "Create valid ife encode action with tcindex and continue control",
519 "requires": "nsPlugin"
523 "$TC actions flush action ife",
529 "cmdUnderTest": "$TC actions add action ife encode use tcindex 1 continue index 1",
531 "verifyCmd": "$TC actions get action ife index 1",
532 "matchPattern": "action order [0-9]*: ife encode action continue.*type 0[xX]ED3E.*use tcindex 1.*index 1",
535 "$TC actions flush action ife"
540 "name": "Create valid ife encode action with tcindex and drop control",
546 "requires": "nsPlugin"
550 "$TC actions flush action ife",
556 "cmdUnderTest": "$TC actions add action ife encode allow tcindex drop index 77",
558 "verifyCmd": "$TC actions get action ife index 77",
559 "matchPattern": "action order [0-9]*: ife encode action drop.*type 0[xX]ED3E.*allow tcindex.*index 77",
562 "$TC actions flush action ife"
567 "name": "Create valid ife encode action with tcindex and reclassify control",
573 "requires": "nsPlugin"
577 "$TC actions flush action ife",
583 "cmdUnderTest": "$TC actions add action ife encode allow tcindex reclassify index 77",
585 "verifyCmd": "$TC actions get action ife index 77",
586 "matchPattern": "action order [0-9]*: ife encode action reclassify.*type 0[xX]ED3E.*allow tcindex.*index 77",
589 "$TC actions flush action ife"
594 "name": "Create valid ife encode action with tcindex and jump control",
600 "requires": "nsPlugin"
604 "$TC actions flush action ife",
610 "cmdUnderTest": "$TC actions add action ife encode allow tcindex jump 999 index 77",
612 "verifyCmd": "$TC actions get action ife index 77",
613 "matchPattern": "action order [0-9]*: ife encode action jump 999.*type 0[xX]ED3E.*allow tcindex.*index 77",
616 "$TC actions flush action ife"
621 "name": "Create valid ife encode action with tcindex value at 16-bit maximum",
627 "requires": "nsPlugin"
631 "$TC actions flush action ife",
637 "cmdUnderTest": "$TC actions add action ife encode use tcindex 65535 pass index 1",
639 "verifyCmd": "$TC actions get action ife index 1",
640 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*use tcindex 65535.*index 1",
643 "$TC actions flush action ife"
648 "name": "Create ife encode action with tcindex value exceeding 16-bit maximum",
654 "requires": "nsPlugin"
658 "$TC actions flush action ife",
664 "cmdUnderTest": "$TC actions add action ife encode use tcindex 65539 pipe index 1",
665 "expExitCode": "255",
666 "verifyCmd": "$TC actions get action ife index 1",
667 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*use tcindex 65539.*index 1",
673 "name": "Create valid ife encode action with mac src parameter",
679 "requires": "nsPlugin"
683 "$TC actions flush action ife",
689 "cmdUnderTest": "$TC actions add action ife encode allow mark src 00:11:22:33:44:55 pipe index 1",
691 "verifyCmd": "$TC actions get action ife index 1",
692 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*allow mark src 00:11:22:33:44:55.*index 1",
695 "$TC actions flush action ife"
700 "name": "Create valid ife encode action with mac dst parameter",
706 "requires": "nsPlugin"
710 "$TC actions flush action ife",
716 "cmdUnderTest": "$TC actions add action ife encode use prio 9876 dst 00:11:22:33:44:55 reclassify index 1",
718 "verifyCmd": "$TC actions get action ife index 1",
719 "matchPattern": "action order [0-9]*: ife encode action reclassify.*type 0[xX]ED3E.*use prio 9876 dst 00:11:22:33:44:55.*index 1",
722 "$TC actions flush action ife"
727 "name": "Create valid ife encode action with mac src and mac dst parameters",
733 "requires": "nsPlugin"
737 "$TC actions flush action ife",
743 "cmdUnderTest": "$TC actions add action ife encode allow tcindex src 00:aa:bb:cc:dd:ee dst 00:11:22:33:44:55 pass index 11",
745 "verifyCmd": "$TC actions get action ife index 11",
746 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*allow tcindex dst 00:11:22:33:44:55 src 00:aa:bb:cc:dd:ee .*index 11",
749 "$TC actions flush action ife"
754 "name": "Create valid ife encode action with mark and type parameters",
760 "requires": "nsPlugin"
764 "$TC actions flush action ife",
770 "cmdUnderTest": "$TC actions add action ife encode use mark 7 type 0xfefe pass index 1",
772 "verifyCmd": "$TC actions get action ife index 1",
773 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]FEFE.*use mark 7.*index 1",
776 "$TC actions flush action ife"
781 "name": "Create valid ife encode action with prio and type parameters",
787 "requires": "nsPlugin"
791 "$TC actions flush action ife",
797 "cmdUnderTest": "$TC actions add action ife encode use prio 444 type 0xabba pipe index 21",
799 "verifyCmd": "$TC actions get action ife index 21",
800 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ABBA.*use prio 444.*index 21",
803 "$TC actions flush action ife"
808 "name": "Create valid ife encode action with tcindex and type parameters",
814 "requires": "nsPlugin"
818 "$TC actions flush action ife",
824 "cmdUnderTest": "$TC actions add action ife encode use tcindex 5000 type 0xabcd reclassify index 21",
826 "verifyCmd": "$TC actions get action ife index 21",
827 "matchPattern": "action order [0-9]*: ife encode action reclassify.*type 0[xX]ABCD.*use tcindex 5000.*index 21",
830 "$TC actions flush action ife"
835 "name": "Create valid ife encode action with index at 32-bit maximum",
841 "requires": "nsPlugin"
845 "$TC actions flush action ife",
851 "cmdUnderTest": "$TC actions add action ife encode allow mark pass index 4294967295",
853 "verifyCmd": "$TC actions get action ife index 4294967295",
854 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*allow mark.*index 4294967295",
857 "$TC actions flush action ife"
862 "name": "Create valid ife decode action with pass control",
868 "requires": "nsPlugin"
872 "$TC actions flush action ife",
878 "cmdUnderTest": "$TC actions add action ife decode pass index 1",
880 "verifyCmd": "$TC actions get action ife index 1",
881 "matchPattern": "action order [0-9]*: ife decode action pass.*type 0(x0)?.*allow mark allow tcindex allow prio.*index 1",
884 "$TC actions flush action ife"
889 "name": "Create valid ife decode action with pipe control",
895 "requires": "nsPlugin"
899 "$TC actions flush action ife",
905 "cmdUnderTest": "$TC actions add action ife decode pipe index 1",
907 "verifyCmd": "$TC actions get action ife index 1",
908 "matchPattern": "action order [0-9]*: ife decode action pipe.*type 0(x0)?.*allow mark allow tcindex allow prio.*index 1",
911 "$TC actions flush action ife"
916 "name": "Create valid ife decode action with continue control",
922 "requires": "nsPlugin"
926 "$TC actions flush action ife",
932 "cmdUnderTest": "$TC actions add action ife decode continue index 1",
934 "verifyCmd": "$TC actions get action ife index 1",
935 "matchPattern": "action order [0-9]*: ife decode action continue.*type 0(x0)?.*allow mark allow tcindex allow prio.*index 1",
938 "$TC actions flush action ife"
943 "name": "Create valid ife decode action with drop control",
949 "requires": "nsPlugin"
953 "$TC actions flush action ife",
959 "cmdUnderTest": "$TC actions add action ife decode drop index 1",
961 "verifyCmd": "$TC actions get action ife index 1",
962 "matchPattern": "action order [0-9]*: ife decode action drop.*type 0(x0)?.*allow mark allow tcindex allow prio.*index 1",
965 "$TC actions flush action ife"
970 "name": "Create valid ife decode action with reclassify control",
976 "requires": "nsPlugin"
980 "$TC actions flush action ife",
986 "cmdUnderTest": "$TC actions add action ife decode reclassify index 1",
988 "verifyCmd": "$TC actions get action ife index 1",
989 "matchPattern": "action order [0-9]*: ife decode action reclassify.*type 0(x0)?.*allow mark allow tcindex allow prio.*index 1",
992 "$TC actions flush action ife"
997 "name": "Create valid ife decode action with jump control",
1003 "requires": "nsPlugin"
1007 "$TC actions flush action ife",
1013 "cmdUnderTest": "$TC actions add action ife decode jump 10 index 1",
1015 "verifyCmd": "$TC actions get action ife index 1",
1016 "matchPattern": "action order [0-9]*: ife decode action jump 10.*type 0(x0)?.*allow mark allow tcindex allow prio.*index 1",
1019 "$TC actions flush action ife"
1024 "name": "Create ife encode action with index exceeding 32-bit maximum",
1030 "requires": "nsPlugin"
1034 "$TC actions flush action ife",
1040 "cmdUnderTest": "$TC actions add action ife encode allow mark pass index 4294967295999",
1041 "expExitCode": "255",
1042 "verifyCmd": "$TC actions get action ife index 4294967295999",
1043 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*allow mark.*index 4294967295999",
1049 "name": "Create ife encode action with invalid control",
1055 "requires": "nsPlugin"
1059 "$TC actions flush action ife",
1065 "cmdUnderTest": "$TC actions add action ife encode allow mark kuka index 4",
1066 "expExitCode": "255",
1067 "verifyCmd": "$TC actions get action ife index 4",
1068 "matchPattern": "action order [0-9]*: ife encode action kuka.*type 0[xX]ED3E.*allow mark.*index 4",
1074 "name": "Create ife encode action with cookie",
1080 "requires": "nsPlugin"
1084 "$TC actions flush action ife",
1090 "cmdUnderTest": "$TC actions add action ife encode allow prio pipe index 4 cookie aabbccddeeff112233445566778800a1",
1092 "verifyCmd": "$TC actions get action ife index 4",
1093 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*allow prio.*index 4.*cookie aabbccddeeff112233445566778800a1",
1096 "$TC actions flush action ife"
1101 "name": "Create ife encode action with invalid argument",
1107 "requires": "nsPlugin"
1111 "$TC actions flush action ife",
1117 "cmdUnderTest": "$TC actions add action ife encode allow foo pipe index 4",
1118 "expExitCode": "255",
1119 "verifyCmd": "$TC actions get action ife index 4",
1120 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*allow foo.*index 4",
1126 "name": "Create ife encode action with invalid type argument",
1132 "requires": "nsPlugin"
1136 "$TC actions flush action ife",
1142 "cmdUnderTest": "$TC actions add action ife encode allow prio type 70000 pipe index 4",
1143 "expExitCode": "255",
1144 "verifyCmd": "$TC actions get action ife index 4",
1145 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]11170.*allow prio.*index 4",
1151 "name": "Create ife encode action with invalid mac src argument",
1157 "requires": "nsPlugin"
1161 "$TC actions flush action ife",
1167 "cmdUnderTest": "$TC actions add action ife encode allow prio src 00:11:22:33:44:pp pipe index 4",
1168 "expExitCode": "255",
1169 "verifyCmd": "$TC actions get action ife index 4",
1170 "matchPattern": "action order [0-9]*: ife encode action pipe.*allow prio.*index 4",
1176 "name": "Create ife encode action with invalid mac dst argument",
1182 "requires": "nsPlugin"
1186 "$TC actions flush action ife",
1192 "cmdUnderTest": "$TC actions add action ife encode allow prio dst 00.111-22:33:44:aa pipe index 4",
1193 "expExitCode": "255",
1194 "verifyCmd": "$TC actions get action ife index 4",
1195 "matchPattern": "action order [0-9]*: ife encode action pipe.*allow prio.*index 4",
1201 "name": "Replace ife encode action with invalid goto chain control",
1207 "requires": "nsPlugin"
1211 "$TC actions flush action ife",
1216 "$TC actions add action ife encode allow mark pass index 90"
1218 "cmdUnderTest": "$TC actions replace action ife encode allow mark goto chain 42 index 90 cookie c1a0c1a0",
1219 "expExitCode": "255",
1220 "verifyCmd": "$TC actions get action ife index 90",
1221 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E .*allow mark.*index 90 ref",
1224 "$TC actions flush action ife"
1229 "name": "Delete ife encode action with valid index",
1235 "requires": "nsPlugin"
1239 "$TC actions flush action ife",
1244 "$TC actions add action ife encode allow mark pass index 20"
1246 "cmdUnderTest": "$TC actions del action ife index 20",
1248 "verifyCmd": "$TC actions ls action ife index 20",
1249 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*allow mark.*index 20",
1252 "$TC actions flush action ife"
1257 "name": "Delete ife encode action with invalid index",
1263 "requires": "nsPlugin"
1267 "$TC actions flush action ife",
1272 "$TC actions add action ife encode allow mark pass index 20"
1274 "cmdUnderTest": "$TC actions del action ife index 10",
1275 "expExitCode": "255",
1276 "verifyCmd": "$TC actions ls action ife index 20",
1277 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*allow mark.*index 20",
1280 "$TC actions flush action ife"