4 "name": "Create valid ife encode action with mark and pass control",
11 "$TC actions flush action ife",
17 "cmdUnderTest": "$TC actions add action ife encode allow mark pass index 2",
19 "verifyCmd": "$TC actions get action ife index 2",
20 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*allow mark.*index 2",
23 "$TC actions flush action ife"
28 "name": "Create valid ife encode action with mark and pipe control",
35 "$TC actions flush action ife",
41 "cmdUnderTest": "$TC actions add action ife encode use mark 10 pipe index 2",
43 "verifyCmd": "$TC actions get action ife index 2",
44 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*use mark.*index 2",
47 "$TC actions flush action ife"
52 "name": "Create valid ife encode action with mark and continue control",
59 "$TC actions flush action ife",
65 "cmdUnderTest": "$TC actions add action ife encode allow mark continue index 2",
67 "verifyCmd": "$TC actions get action ife index 2",
68 "matchPattern": "action order [0-9]*: ife encode action continue.*type 0[xX]ED3E.*allow mark.*index 2",
71 "$TC actions flush action ife"
76 "name": "Create valid ife encode action with mark and drop control",
83 "$TC actions flush action ife",
89 "cmdUnderTest": "$TC actions add action ife encode use mark 789 drop index 2",
91 "verifyCmd": "$TC actions get action ife index 2",
92 "matchPattern": "action order [0-9]*: ife encode action drop.*type 0[xX]ED3E.*use mark 789.*index 2",
95 "$TC actions flush action ife"
100 "name": "Create valid ife encode action with mark and reclassify control",
107 "$TC actions flush action ife",
113 "cmdUnderTest": "$TC actions add action ife encode use mark 656768 reclassify index 2",
115 "verifyCmd": "$TC actions get action ife index 2",
116 "matchPattern": "action order [0-9]*: ife encode action reclassify.*type 0[xX]ED3E.*use mark 656768.*index 2",
119 "$TC actions flush action ife"
124 "name": "Create valid ife encode action with mark and jump control",
131 "$TC actions flush action ife",
137 "cmdUnderTest": "$TC actions add action ife encode use mark 65 jump 1 index 2",
139 "verifyCmd": "$TC actions get action ife index 2",
140 "matchPattern": "action order [0-9]*: ife encode action jump 1.*type 0[xX]ED3E.*use mark 65.*index 2",
143 "$TC actions flush action ife"
148 "name": "Create valid ife encode action with mark value at 32-bit maximum",
155 "$TC actions flush action ife",
161 "cmdUnderTest": "$TC actions add action ife encode use mark 4294967295 reclassify index 90",
163 "verifyCmd": "$TC actions get action ife index 90",
164 "matchPattern": "action order [0-9]*: ife encode action reclassify.*type 0[xX]ED3E.*use mark 4294967295.*index 90",
167 "$TC actions flush action ife"
172 "name": "Create ife encode action with mark value exceeding 32-bit maximum",
179 "$TC actions flush action ife",
185 "cmdUnderTest": "$TC actions add action ife encode use mark 4294967295999 pipe index 90",
186 "expExitCode": "255",
187 "verifyCmd": "$TC actions get action ife index 90",
188 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*use mark 4294967295999.*index 90",
194 "name": "Create valid ife encode action with prio and pass control",
201 "$TC actions flush action ife",
207 "cmdUnderTest": "$TC actions add action ife encode allow prio pass index 9",
209 "verifyCmd": "$TC actions get action ife index 9",
210 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*allow prio.*index 9",
213 "$TC actions flush action ife"
218 "name": "Create valid ife encode action with prio and pipe control",
225 "$TC actions flush action ife",
231 "cmdUnderTest": "$TC actions add action ife encode use prio 7 pipe index 9",
233 "verifyCmd": "$TC actions get action ife index 9",
234 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*use prio 7.*index 9",
237 "$TC actions flush action ife"
242 "name": "Create valid ife encode action with prio and continue control",
249 "$TC actions flush action ife",
255 "cmdUnderTest": "$TC actions add action ife encode use prio 3 continue index 9",
257 "verifyCmd": "$TC actions get action ife index 9",
258 "matchPattern": "action order [0-9]*: ife encode action continue.*type 0[xX]ED3E.*use prio 3.*index 9",
261 "$TC actions flush action ife"
266 "name": "Create valid ife encode action with prio and drop control",
273 "$TC actions flush action ife",
279 "cmdUnderTest": "$TC actions add action ife encode allow prio drop index 9",
281 "verifyCmd": "$TC actions get action ife index 9",
282 "matchPattern": "action order [0-9]*: ife encode action drop.*type 0[xX]ED3E.*allow prio.*index 9",
285 "$TC actions flush action ife"
290 "name": "Create valid ife encode action with prio and reclassify control",
297 "$TC actions flush action ife",
303 "cmdUnderTest": "$TC actions add action ife encode use prio 998877 reclassify index 9",
305 "verifyCmd": "$TC actions get action ife index 9",
306 "matchPattern": "action order [0-9]*: ife encode action reclassify.*type 0[xX]ED3E.*use prio 998877.*index 9",
309 "$TC actions flush action ife"
314 "name": "Create valid ife encode action with prio and jump control",
321 "$TC actions flush action ife",
327 "cmdUnderTest": "$TC actions add action ife encode use prio 998877 jump 10 index 9",
329 "verifyCmd": "$TC actions get action ife index 9",
330 "matchPattern": "action order [0-9]*: ife encode action jump 10.*type 0[xX]ED3E.*use prio 998877.*index 9",
333 "$TC actions flush action ife"
338 "name": "Create valid ife encode action with prio value at 32-bit maximum",
345 "$TC actions flush action ife",
351 "cmdUnderTest": "$TC actions add action ife encode use prio 4294967295 reclassify index 99",
353 "verifyCmd": "$TC actions get action ife index 99",
354 "matchPattern": "action order [0-9]*: ife encode action reclassify.*type 0[xX]ED3E.*use prio 4294967295.*index 99",
357 "$TC actions flush action ife"
362 "name": "Create ife encode action with prio value exceeding 32-bit maximum",
369 "$TC actions flush action ife",
375 "cmdUnderTest": "$TC actions add action ife encode use prio 4294967298 pipe index 99",
376 "expExitCode": "255",
377 "verifyCmd": "$TC actions get action ife index 99",
378 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*use prio 4294967298.*index 99",
384 "name": "Create valid ife encode action with tcindex and pass control",
391 "$TC actions flush action ife",
397 "cmdUnderTest": "$TC actions add action ife encode allow tcindex pass index 1",
399 "verifyCmd": "$TC actions get action ife index 1",
400 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*allow tcindex.*index 1",
403 "$TC actions flush action ife"
408 "name": "Create valid ife encode action with tcindex and pipe control",
415 "$TC actions flush action ife",
421 "cmdUnderTest": "$TC actions add action ife encode use tcindex 111 pipe index 1",
423 "verifyCmd": "$TC actions get action ife index 1",
424 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*use tcindex 111.*index 1",
427 "$TC actions flush action ife"
432 "name": "Create valid ife encode action with tcindex and continue control",
439 "$TC actions flush action ife",
445 "cmdUnderTest": "$TC actions add action ife encode use tcindex 1 continue index 1",
447 "verifyCmd": "$TC actions get action ife index 1",
448 "matchPattern": "action order [0-9]*: ife encode action continue.*type 0[xX]ED3E.*use tcindex 1.*index 1",
451 "$TC actions flush action ife"
456 "name": "Create valid ife encode action with tcindex and continue control",
463 "$TC actions flush action ife",
469 "cmdUnderTest": "$TC actions add action ife encode use tcindex 1 continue index 1",
471 "verifyCmd": "$TC actions get action ife index 1",
472 "matchPattern": "action order [0-9]*: ife encode action continue.*type 0[xX]ED3E.*use tcindex 1.*index 1",
475 "$TC actions flush action ife"
480 "name": "Create valid ife encode action with tcindex and drop control",
487 "$TC actions flush action ife",
493 "cmdUnderTest": "$TC actions add action ife encode allow tcindex drop index 77",
495 "verifyCmd": "$TC actions get action ife index 77",
496 "matchPattern": "action order [0-9]*: ife encode action drop.*type 0[xX]ED3E.*allow tcindex.*index 77",
499 "$TC actions flush action ife"
504 "name": "Create valid ife encode action with tcindex and reclassify control",
511 "$TC actions flush action ife",
517 "cmdUnderTest": "$TC actions add action ife encode allow tcindex reclassify index 77",
519 "verifyCmd": "$TC actions get action ife index 77",
520 "matchPattern": "action order [0-9]*: ife encode action reclassify.*type 0[xX]ED3E.*allow tcindex.*index 77",
523 "$TC actions flush action ife"
528 "name": "Create valid ife encode action with tcindex and jump control",
535 "$TC actions flush action ife",
541 "cmdUnderTest": "$TC actions add action ife encode allow tcindex jump 999 index 77",
543 "verifyCmd": "$TC actions get action ife index 77",
544 "matchPattern": "action order [0-9]*: ife encode action jump 999.*type 0[xX]ED3E.*allow tcindex.*index 77",
547 "$TC actions flush action ife"
552 "name": "Create valid ife encode action with tcindex value at 16-bit maximum",
559 "$TC actions flush action ife",
565 "cmdUnderTest": "$TC actions add action ife encode use tcindex 65535 pass index 1",
567 "verifyCmd": "$TC actions get action ife index 1",
568 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*use tcindex 65535.*index 1",
571 "$TC actions flush action ife"
576 "name": "Create ife encode action with tcindex value exceeding 16-bit maximum",
583 "$TC actions flush action ife",
589 "cmdUnderTest": "$TC actions add action ife encode use tcindex 65539 pipe index 1",
590 "expExitCode": "255",
591 "verifyCmd": "$TC actions get action ife index 1",
592 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*use tcindex 65539.*index 1",
598 "name": "Create valid ife encode action with mac src parameter",
605 "$TC actions flush action ife",
611 "cmdUnderTest": "$TC actions add action ife encode allow mark src 00:11:22:33:44:55 pipe index 1",
613 "verifyCmd": "$TC actions get action ife index 1",
614 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*allow mark src 00:11:22:33:44:55.*index 1",
617 "$TC actions flush action ife"
622 "name": "Create valid ife encode action with mac dst parameter",
629 "$TC actions flush action ife",
635 "cmdUnderTest": "$TC actions add action ife encode use prio 9876 dst 00:11:22:33:44:55 reclassify index 1",
637 "verifyCmd": "$TC actions get action ife index 1",
638 "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",
641 "$TC actions flush action ife"
646 "name": "Create valid ife encode action with mac src and mac dst parameters",
653 "$TC actions flush action ife",
659 "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",
661 "verifyCmd": "$TC actions get action ife index 11",
662 "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",
665 "$TC actions flush action ife"
670 "name": "Create valid ife encode action with mark and type parameters",
677 "$TC actions flush action ife",
683 "cmdUnderTest": "$TC actions add action ife encode use mark 7 type 0xfefe pass index 1",
685 "verifyCmd": "$TC actions get action ife index 1",
686 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]FEFE.*use mark 7.*index 1",
689 "$TC actions flush action ife"
694 "name": "Create valid ife encode action with prio and type parameters",
701 "$TC actions flush action ife",
707 "cmdUnderTest": "$TC actions add action ife encode use prio 444 type 0xabba pipe index 21",
709 "verifyCmd": "$TC actions get action ife index 21",
710 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ABBA.*use prio 444.*index 21",
713 "$TC actions flush action ife"
718 "name": "Create valid ife encode action with tcindex and type parameters",
725 "$TC actions flush action ife",
731 "cmdUnderTest": "$TC actions add action ife encode use tcindex 5000 type 0xabcd reclassify index 21",
733 "verifyCmd": "$TC actions get action ife index 21",
734 "matchPattern": "action order [0-9]*: ife encode action reclassify.*type 0[xX]ABCD.*use tcindex 5000.*index 21",
737 "$TC actions flush action ife"
742 "name": "Create valid ife encode action with index at 32-bit maximum",
749 "$TC actions flush action ife",
755 "cmdUnderTest": "$TC actions add action ife encode allow mark pass index 4294967295",
757 "verifyCmd": "$TC actions get action ife index 4294967295",
758 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*allow mark.*index 4294967295",
761 "$TC actions flush action ife"
766 "name": "Create valid ife decode action with pass control",
773 "$TC actions flush action ife",
779 "cmdUnderTest": "$TC actions add action ife decode pass index 1",
781 "verifyCmd": "$TC actions get action ife index 1",
782 "matchPattern": "action order [0-9]*: ife decode action pass.*type 0(x0)?.*allow mark allow tcindex allow prio.*index 1",
785 "$TC actions flush action ife"
790 "name": "Create valid ife decode action with pipe control",
797 "$TC actions flush action ife",
803 "cmdUnderTest": "$TC actions add action ife decode pipe index 1",
805 "verifyCmd": "$TC actions get action ife index 1",
806 "matchPattern": "action order [0-9]*: ife decode action pipe.*type 0(x0)?.*allow mark allow tcindex allow prio.*index 1",
809 "$TC actions flush action ife"
814 "name": "Create valid ife decode action with continue control",
821 "$TC actions flush action ife",
827 "cmdUnderTest": "$TC actions add action ife decode continue index 1",
829 "verifyCmd": "$TC actions get action ife index 1",
830 "matchPattern": "action order [0-9]*: ife decode action continue.*type 0(x0)?.*allow mark allow tcindex allow prio.*index 1",
833 "$TC actions flush action ife"
838 "name": "Create valid ife decode action with drop control",
845 "$TC actions flush action ife",
851 "cmdUnderTest": "$TC actions add action ife decode drop index 1",
853 "verifyCmd": "$TC actions get action ife index 1",
854 "matchPattern": "action order [0-9]*: ife decode action drop.*type 0(x0)?.*allow mark allow tcindex allow prio.*index 1",
857 "$TC actions flush action ife"
862 "name": "Create valid ife decode action with reclassify control",
869 "$TC actions flush action ife",
875 "cmdUnderTest": "$TC actions add action ife decode reclassify index 1",
877 "verifyCmd": "$TC actions get action ife index 1",
878 "matchPattern": "action order [0-9]*: ife decode action reclassify.*type 0(x0)?.*allow mark allow tcindex allow prio.*index 1",
881 "$TC actions flush action ife"
886 "name": "Create valid ife decode action with jump control",
893 "$TC actions flush action ife",
899 "cmdUnderTest": "$TC actions add action ife decode jump 10 index 1",
901 "verifyCmd": "$TC actions get action ife index 1",
902 "matchPattern": "action order [0-9]*: ife decode action jump 10.*type 0(x0)?.*allow mark allow tcindex allow prio.*index 1",
905 "$TC actions flush action ife"
910 "name": "Create ife encode action with index exceeding 32-bit maximum",
917 "$TC actions flush action ife",
923 "cmdUnderTest": "$TC actions add action ife encode allow mark pass index 4294967295999",
924 "expExitCode": "255",
925 "verifyCmd": "$TC actions get action ife index 4294967295999",
926 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*allow mark.*index 4294967295999",
932 "name": "Create ife encode action with invalid control",
939 "$TC actions flush action ife",
945 "cmdUnderTest": "$TC actions add action ife encode allow mark kuka index 4",
946 "expExitCode": "255",
947 "verifyCmd": "$TC actions get action ife index 4",
948 "matchPattern": "action order [0-9]*: ife encode action kuka.*type 0[xX]ED3E.*allow mark.*index 4",
954 "name": "Create ife encode action with cookie",
961 "$TC actions flush action ife",
967 "cmdUnderTest": "$TC actions add action ife encode allow prio pipe index 4 cookie aabbccddeeff112233445566778800a1",
969 "verifyCmd": "$TC actions get action ife index 4",
970 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*allow prio.*index 4.*cookie aabbccddeeff112233445566778800a1",
973 "$TC actions flush action ife"
978 "name": "Create ife encode action with invalid argument",
985 "$TC actions flush action ife",
991 "cmdUnderTest": "$TC actions add action ife encode allow foo pipe index 4",
992 "expExitCode": "255",
993 "verifyCmd": "$TC actions get action ife index 4",
994 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*allow foo.*index 4",
1000 "name": "Create ife encode action with invalid type argument",
1007 "$TC actions flush action ife",
1013 "cmdUnderTest": "$TC actions add action ife encode allow prio type 70000 pipe index 4",
1014 "expExitCode": "255",
1015 "verifyCmd": "$TC actions get action ife index 4",
1016 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]11170.*allow prio.*index 4",
1022 "name": "Create ife encode action with invalid mac src argument",
1029 "$TC actions flush action ife",
1035 "cmdUnderTest": "$TC actions add action ife encode allow prio src 00:11:22:33:44:pp pipe index 4",
1036 "expExitCode": "255",
1037 "verifyCmd": "$TC actions get action ife index 4",
1038 "matchPattern": "action order [0-9]*: ife encode action pipe.*allow prio.*index 4",
1044 "name": "Create ife encode action with invalid mac dst argument",
1051 "$TC actions flush action ife",
1057 "cmdUnderTest": "$TC actions add action ife encode allow prio dst 00.111-22:33:44:aa pipe index 4",
1058 "expExitCode": "255",
1059 "verifyCmd": "$TC actions get action ife index 4",
1060 "matchPattern": "action order [0-9]*: ife encode action pipe.*allow prio.*index 4",