1284 lines · json
1[2 {3 "id": "7682",4 "name": "Create valid ife encode action with mark and pass control",5 "category": [6 "actions",7 "ife"8 ],9 "plugins": {10 "requires": "nsPlugin"11 },12 "setup": [13 [14 "$TC actions flush action ife",15 0,16 1,17 25518 ]19 ],20 "cmdUnderTest": "$TC actions add action ife encode allow mark pass index 2",21 "expExitCode": "0",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",24 "matchCount": "1",25 "teardown": [26 "$TC actions flush action ife"27 ]28 },29 {30 "id": "ef47",31 "name": "Create valid ife encode action with mark and pipe control",32 "category": [33 "actions",34 "ife"35 ],36 "plugins": {37 "requires": "nsPlugin"38 },39 "setup": [40 [41 "$TC actions flush action ife",42 0,43 1,44 25545 ]46 ],47 "cmdUnderTest": "$TC actions add action ife encode use mark 10 pipe index 2",48 "expExitCode": "0",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",51 "matchCount": "1",52 "teardown": [53 "$TC actions flush action ife"54 ]55 },56 {57 "id": "df43",58 "name": "Create valid ife encode action with mark and continue control",59 "category": [60 "actions",61 "ife"62 ],63 "plugins": {64 "requires": "nsPlugin"65 },66 "setup": [67 [68 "$TC actions flush action ife",69 0,70 1,71 25572 ]73 ],74 "cmdUnderTest": "$TC actions add action ife encode allow mark continue index 2",75 "expExitCode": "0",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",78 "matchCount": "1",79 "teardown": [80 "$TC actions flush action ife"81 ]82 },83 {84 "id": "e4cf",85 "name": "Create valid ife encode action with mark and drop control",86 "category": [87 "actions",88 "ife"89 ],90 "plugins": {91 "requires": "nsPlugin"92 },93 "setup": [94 [95 "$TC actions flush action ife",96 0,97 1,98 25599 ]100 ],101 "cmdUnderTest": "$TC actions add action ife encode use mark 789 drop index 2",102 "expExitCode": "0",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",105 "matchCount": "1",106 "teardown": [107 "$TC actions flush action ife"108 ]109 },110 {111 "id": "ccba",112 "name": "Create valid ife encode action with mark and reclassify control",113 "category": [114 "actions",115 "ife"116 ],117 "plugins": {118 "requires": "nsPlugin"119 },120 "setup": [121 [122 "$TC actions flush action ife",123 0,124 1,125 255126 ]127 ],128 "cmdUnderTest": "$TC actions add action ife encode use mark 656768 reclassify index 2",129 "expExitCode": "0",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",132 "matchCount": "1",133 "teardown": [134 "$TC actions flush action ife"135 ]136 },137 {138 "id": "a1cf",139 "name": "Create valid ife encode action with mark and jump control",140 "category": [141 "actions",142 "ife"143 ],144 "plugins": {145 "requires": "nsPlugin"146 },147 "setup": [148 [149 "$TC actions flush action ife",150 0,151 1,152 255153 ]154 ],155 "cmdUnderTest": "$TC actions add action ife encode use mark 65 jump 1 index 2",156 "expExitCode": "0",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",159 "matchCount": "1",160 "teardown": [161 "$TC actions flush action ife"162 ]163 },164 {165 "id": "cb3d",166 "name": "Create valid ife encode action with mark value at 32-bit maximum",167 "category": [168 "actions",169 "ife"170 ],171 "plugins": {172 "requires": "nsPlugin"173 },174 "setup": [175 [176 "$TC actions flush action ife",177 0,178 1,179 255180 ]181 ],182 "cmdUnderTest": "$TC actions add action ife encode use mark 4294967295 reclassify index 90",183 "expExitCode": "0",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",186 "matchCount": "1",187 "teardown": [188 "$TC actions flush action ife"189 ]190 },191 {192 "id": "1efb",193 "name": "Create ife encode action with mark value exceeding 32-bit maximum",194 "category": [195 "actions",196 "ife"197 ],198 "plugins": {199 "requires": "nsPlugin"200 },201 "setup": [202 [203 "$TC actions flush action ife",204 0,205 1,206 255207 ]208 ],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",213 "matchCount": "0",214 "teardown": []215 },216 {217 "id": "95ed",218 "name": "Create valid ife encode action with prio and pass control",219 "category": [220 "actions",221 "ife"222 ],223 "plugins": {224 "requires": "nsPlugin"225 },226 "setup": [227 [228 "$TC actions flush action ife",229 0,230 1,231 255232 ]233 ],234 "cmdUnderTest": "$TC actions add action ife encode allow prio pass index 9",235 "expExitCode": "0",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",238 "matchCount": "1",239 "teardown": [240 "$TC actions flush action ife"241 ]242 },243 {244 "id": "aa17",245 "name": "Create valid ife encode action with prio and pipe control",246 "category": [247 "actions",248 "ife"249 ],250 "plugins": {251 "requires": "nsPlugin"252 },253 "setup": [254 [255 "$TC actions flush action ife",256 0,257 1,258 255259 ]260 ],261 "cmdUnderTest": "$TC actions add action ife encode use prio 7 pipe index 9",262 "expExitCode": "0",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",265 "matchCount": "1",266 "teardown": [267 "$TC actions flush action ife"268 ]269 },270 {271 "id": "74c7",272 "name": "Create valid ife encode action with prio and continue control",273 "category": [274 "actions",275 "ife"276 ],277 "plugins": {278 "requires": "nsPlugin"279 },280 "setup": [281 [282 "$TC actions flush action ife",283 0,284 1,285 255286 ]287 ],288 "cmdUnderTest": "$TC actions add action ife encode use prio 3 continue index 9",289 "expExitCode": "0",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",292 "matchCount": "1",293 "teardown": [294 "$TC actions flush action ife"295 ]296 },297 {298 "id": "7a97",299 "name": "Create valid ife encode action with prio and drop control",300 "category": [301 "actions",302 "ife"303 ],304 "plugins": {305 "requires": "nsPlugin"306 },307 "setup": [308 [309 "$TC actions flush action ife",310 0,311 1,312 255313 ]314 ],315 "cmdUnderTest": "$TC actions add action ife encode allow prio drop index 9",316 "expExitCode": "0",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",319 "matchCount": "1",320 "teardown": [321 "$TC actions flush action ife"322 ]323 },324 {325 "id": "f66b",326 "name": "Create valid ife encode action with prio and reclassify control",327 "category": [328 "actions",329 "ife"330 ],331 "plugins": {332 "requires": "nsPlugin"333 },334 "setup": [335 [336 "$TC actions flush action ife",337 0,338 1,339 255340 ]341 ],342 "cmdUnderTest": "$TC actions add action ife encode use prio 998877 reclassify index 9",343 "expExitCode": "0",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",346 "matchCount": "1",347 "teardown": [348 "$TC actions flush action ife"349 ]350 },351 {352 "id": "3056",353 "name": "Create valid ife encode action with prio and jump control",354 "category": [355 "actions",356 "ife"357 ],358 "plugins": {359 "requires": "nsPlugin"360 },361 "setup": [362 [363 "$TC actions flush action ife",364 0,365 1,366 255367 ]368 ],369 "cmdUnderTest": "$TC actions add action ife encode use prio 998877 jump 10 index 9",370 "expExitCode": "0",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",373 "matchCount": "1",374 "teardown": [375 "$TC actions flush action ife"376 ]377 },378 {379 "id": "7dd3",380 "name": "Create valid ife encode action with prio value at 32-bit maximum",381 "category": [382 "actions",383 "ife"384 ],385 "plugins": {386 "requires": "nsPlugin"387 },388 "setup": [389 [390 "$TC actions flush action ife",391 0,392 1,393 255394 ]395 ],396 "cmdUnderTest": "$TC actions add action ife encode use prio 4294967295 reclassify index 99",397 "expExitCode": "0",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",400 "matchCount": "1",401 "teardown": [402 "$TC actions flush action ife"403 ]404 },405 {406 "id": "2ca1",407 "name": "Create ife encode action with prio value exceeding 32-bit maximum",408 "category": [409 "actions",410 "ife"411 ],412 "plugins": {413 "requires": "nsPlugin"414 },415 "setup": [416 [417 "$TC actions flush action ife",418 0,419 1,420 255421 ]422 ],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",427 "matchCount": "0",428 "teardown": []429 },430 {431 "id": "05bb",432 "name": "Create valid ife encode action with tcindex and pass control",433 "category": [434 "actions",435 "ife"436 ],437 "plugins": {438 "requires": "nsPlugin"439 },440 "setup": [441 [442 "$TC actions flush action ife",443 0,444 1,445 255446 ]447 ],448 "cmdUnderTest": "$TC actions add action ife encode allow tcindex pass index 1",449 "expExitCode": "0",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",452 "matchCount": "1",453 "teardown": [454 "$TC actions flush action ife"455 ]456 },457 {458 "id": "ce65",459 "name": "Create valid ife encode action with tcindex and pipe control",460 "category": [461 "actions",462 "ife"463 ],464 "plugins": {465 "requires": "nsPlugin"466 },467 "setup": [468 [469 "$TC actions flush action ife",470 0,471 1,472 255473 ]474 ],475 "cmdUnderTest": "$TC actions add action ife encode use tcindex 111 pipe index 1",476 "expExitCode": "0",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",479 "matchCount": "1",480 "teardown": [481 "$TC actions flush action ife"482 ]483 },484 {485 "id": "09cd",486 "name": "Create valid ife encode action with tcindex and continue control",487 "category": [488 "actions",489 "ife"490 ],491 "plugins": {492 "requires": "nsPlugin"493 },494 "setup": [495 [496 "$TC actions flush action ife",497 0,498 1,499 255500 ]501 ],502 "cmdUnderTest": "$TC actions add action ife encode use tcindex 1 continue index 1",503 "expExitCode": "0",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",506 "matchCount": "1",507 "teardown": [508 "$TC actions flush action ife"509 ]510 },511 {512 "id": "8eb5",513 "name": "Create valid ife encode action with tcindex and continue control",514 "category": [515 "actions",516 "ife"517 ],518 "plugins": {519 "requires": "nsPlugin"520 },521 "setup": [522 [523 "$TC actions flush action ife",524 0,525 1,526 255527 ]528 ],529 "cmdUnderTest": "$TC actions add action ife encode use tcindex 1 continue index 1",530 "expExitCode": "0",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",533 "matchCount": "1",534 "teardown": [535 "$TC actions flush action ife"536 ]537 },538 {539 "id": "451a",540 "name": "Create valid ife encode action with tcindex and drop control",541 "category": [542 "actions",543 "ife"544 ],545 "plugins": {546 "requires": "nsPlugin"547 },548 "setup": [549 [550 "$TC actions flush action ife",551 0,552 1,553 255554 ]555 ],556 "cmdUnderTest": "$TC actions add action ife encode allow tcindex drop index 77",557 "expExitCode": "0",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",560 "matchCount": "1",561 "teardown": [562 "$TC actions flush action ife"563 ]564 },565 {566 "id": "d76c",567 "name": "Create valid ife encode action with tcindex and reclassify control",568 "category": [569 "actions",570 "ife"571 ],572 "plugins": {573 "requires": "nsPlugin"574 },575 "setup": [576 [577 "$TC actions flush action ife",578 0,579 1,580 255581 ]582 ],583 "cmdUnderTest": "$TC actions add action ife encode allow tcindex reclassify index 77",584 "expExitCode": "0",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",587 "matchCount": "1",588 "teardown": [589 "$TC actions flush action ife"590 ]591 },592 {593 "id": "e731",594 "name": "Create valid ife encode action with tcindex and jump control",595 "category": [596 "actions",597 "ife"598 ],599 "plugins": {600 "requires": "nsPlugin"601 },602 "setup": [603 [604 "$TC actions flush action ife",605 0,606 1,607 255608 ]609 ],610 "cmdUnderTest": "$TC actions add action ife encode allow tcindex jump 999 index 77",611 "expExitCode": "0",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",614 "matchCount": "1",615 "teardown": [616 "$TC actions flush action ife"617 ]618 },619 {620 "id": "b7b8",621 "name": "Create valid ife encode action with tcindex value at 16-bit maximum",622 "category": [623 "actions",624 "ife"625 ],626 "plugins": {627 "requires": "nsPlugin"628 },629 "setup": [630 [631 "$TC actions flush action ife",632 0,633 1,634 255635 ]636 ],637 "cmdUnderTest": "$TC actions add action ife encode use tcindex 65535 pass index 1",638 "expExitCode": "0",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",641 "matchCount": "1",642 "teardown": [643 "$TC actions flush action ife"644 ]645 },646 {647 "id": "d0d8",648 "name": "Create ife encode action with tcindex value exceeding 16-bit maximum",649 "category": [650 "actions",651 "ife"652 ],653 "plugins": {654 "requires": "nsPlugin"655 },656 "setup": [657 [658 "$TC actions flush action ife",659 0,660 1,661 255662 ]663 ],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",668 "matchCount": "0",669 "teardown": []670 },671 {672 "id": "2a9c",673 "name": "Create valid ife encode action with mac src parameter",674 "category": [675 "actions",676 "ife"677 ],678 "plugins": {679 "requires": "nsPlugin"680 },681 "setup": [682 [683 "$TC actions flush action ife",684 0,685 1,686 255687 ]688 ],689 "cmdUnderTest": "$TC actions add action ife encode allow mark src 00:11:22:33:44:55 pipe index 1",690 "expExitCode": "0",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",693 "matchCount": "1",694 "teardown": [695 "$TC actions flush action ife"696 ]697 },698 {699 "id": "cf5c",700 "name": "Create valid ife encode action with mac dst parameter",701 "category": [702 "actions",703 "ife"704 ],705 "plugins": {706 "requires": "nsPlugin"707 },708 "setup": [709 [710 "$TC actions flush action ife",711 0,712 1,713 255714 ]715 ],716 "cmdUnderTest": "$TC actions add action ife encode use prio 9876 dst 00:11:22:33:44:55 reclassify index 1",717 "expExitCode": "0",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",720 "matchCount": "1",721 "teardown": [722 "$TC actions flush action ife"723 ]724 },725 {726 "id": "2353",727 "name": "Create valid ife encode action with mac src and mac dst parameters",728 "category": [729 "actions",730 "ife"731 ],732 "plugins": {733 "requires": "nsPlugin"734 },735 "setup": [736 [737 "$TC actions flush action ife",738 0,739 1,740 255741 ]742 ],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",744 "expExitCode": "0",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",747 "matchCount": "1",748 "teardown": [749 "$TC actions flush action ife"750 ]751 },752 {753 "id": "552c",754 "name": "Create valid ife encode action with mark and type parameters",755 "category": [756 "actions",757 "ife"758 ],759 "plugins": {760 "requires": "nsPlugin"761 },762 "setup": [763 [764 "$TC actions flush action ife",765 0,766 1,767 255768 ]769 ],770 "cmdUnderTest": "$TC actions add action ife encode use mark 7 type 0xfefe pass index 1",771 "expExitCode": "0",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",774 "matchCount": "1",775 "teardown": [776 "$TC actions flush action ife"777 ]778 },779 {780 "id": "0421",781 "name": "Create valid ife encode action with prio and type parameters",782 "category": [783 "actions",784 "ife"785 ],786 "plugins": {787 "requires": "nsPlugin"788 },789 "setup": [790 [791 "$TC actions flush action ife",792 0,793 1,794 255795 ]796 ],797 "cmdUnderTest": "$TC actions add action ife encode use prio 444 type 0xabba pipe index 21",798 "expExitCode": "0",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",801 "matchCount": "1",802 "teardown": [803 "$TC actions flush action ife"804 ]805 },806 {807 "id": "4017",808 "name": "Create valid ife encode action with tcindex and type parameters",809 "category": [810 "actions",811 "ife"812 ],813 "plugins": {814 "requires": "nsPlugin"815 },816 "setup": [817 [818 "$TC actions flush action ife",819 0,820 1,821 255822 ]823 ],824 "cmdUnderTest": "$TC actions add action ife encode use tcindex 5000 type 0xabcd reclassify index 21",825 "expExitCode": "0",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",828 "matchCount": "1",829 "teardown": [830 "$TC actions flush action ife"831 ]832 },833 {834 "id": "fac3",835 "name": "Create valid ife encode action with index at 32-bit maximum",836 "category": [837 "actions",838 "ife"839 ],840 "plugins": {841 "requires": "nsPlugin"842 },843 "setup": [844 [845 "$TC actions flush action ife",846 0,847 1,848 255849 ]850 ],851 "cmdUnderTest": "$TC actions add action ife encode allow mark pass index 4294967295",852 "expExitCode": "0",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",855 "matchCount": "1",856 "teardown": [857 "$TC actions flush action ife"858 ]859 },860 {861 "id": "7c25",862 "name": "Create valid ife decode action with pass control",863 "category": [864 "actions",865 "ife"866 ],867 "plugins": {868 "requires": "nsPlugin"869 },870 "setup": [871 [872 "$TC actions flush action ife",873 0,874 1,875 255876 ]877 ],878 "cmdUnderTest": "$TC actions add action ife decode pass index 1",879 "expExitCode": "0",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",882 "matchCount": "1",883 "teardown": [884 "$TC actions flush action ife"885 ]886 },887 {888 "id": "dccb",889 "name": "Create valid ife decode action with pipe control",890 "category": [891 "actions",892 "ife"893 ],894 "plugins": {895 "requires": "nsPlugin"896 },897 "setup": [898 [899 "$TC actions flush action ife",900 0,901 1,902 255903 ]904 ],905 "cmdUnderTest": "$TC actions add action ife decode pipe index 1",906 "expExitCode": "0",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",909 "matchCount": "1",910 "teardown": [911 "$TC actions flush action ife"912 ]913 },914 {915 "id": "7bb9",916 "name": "Create valid ife decode action with continue control",917 "category": [918 "actions",919 "ife"920 ],921 "plugins": {922 "requires": "nsPlugin"923 },924 "setup": [925 [926 "$TC actions flush action ife",927 0,928 1,929 255930 ]931 ],932 "cmdUnderTest": "$TC actions add action ife decode continue index 1",933 "expExitCode": "0",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",936 "matchCount": "1",937 "teardown": [938 "$TC actions flush action ife"939 ]940 },941 {942 "id": "d9ad",943 "name": "Create valid ife decode action with drop control",944 "category": [945 "actions",946 "ife"947 ],948 "plugins": {949 "requires": "nsPlugin"950 },951 "setup": [952 [953 "$TC actions flush action ife",954 0,955 1,956 255957 ]958 ],959 "cmdUnderTest": "$TC actions add action ife decode drop index 1",960 "expExitCode": "0",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",963 "matchCount": "1",964 "teardown": [965 "$TC actions flush action ife"966 ]967 },968 {969 "id": "219f",970 "name": "Create valid ife decode action with reclassify control",971 "category": [972 "actions",973 "ife"974 ],975 "plugins": {976 "requires": "nsPlugin"977 },978 "setup": [979 [980 "$TC actions flush action ife",981 0,982 1,983 255984 ]985 ],986 "cmdUnderTest": "$TC actions add action ife decode reclassify index 1",987 "expExitCode": "0",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",990 "matchCount": "1",991 "teardown": [992 "$TC actions flush action ife"993 ]994 },995 {996 "id": "8f44",997 "name": "Create valid ife decode action with jump control",998 "category": [999 "actions",1000 "ife"1001 ],1002 "plugins": {1003 "requires": "nsPlugin"1004 },1005 "setup": [1006 [1007 "$TC actions flush action ife",1008 0,1009 1,1010 2551011 ]1012 ],1013 "cmdUnderTest": "$TC actions add action ife decode jump 10 index 1",1014 "expExitCode": "0",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",1017 "matchCount": "1",1018 "teardown": [1019 "$TC actions flush action ife"1020 ]1021 },1022 {1023 "id": "56cf",1024 "name": "Create ife encode action with index exceeding 32-bit maximum",1025 "category": [1026 "actions",1027 "ife"1028 ],1029 "plugins": {1030 "requires": "nsPlugin"1031 },1032 "setup": [1033 [1034 "$TC actions flush action ife",1035 0,1036 1,1037 2551038 ]1039 ],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",1044 "matchCount": "0",1045 "teardown": []1046 },1047 {1048 "id": "ee94",1049 "name": "Create ife encode action with invalid control",1050 "category": [1051 "actions",1052 "ife"1053 ],1054 "plugins": {1055 "requires": "nsPlugin"1056 },1057 "setup": [1058 [1059 "$TC actions flush action ife",1060 0,1061 1,1062 2551063 ]1064 ],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",1069 "matchCount": "0",1070 "teardown": []1071 },1072 {1073 "id": "b330",1074 "name": "Create ife encode action with cookie",1075 "category": [1076 "actions",1077 "ife"1078 ],1079 "plugins": {1080 "requires": "nsPlugin"1081 },1082 "setup": [1083 [1084 "$TC actions flush action ife",1085 0,1086 1,1087 2551088 ]1089 ],1090 "cmdUnderTest": "$TC actions add action ife encode allow prio pipe index 4 cookie aabbccddeeff112233445566778800a1",1091 "expExitCode": "0",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",1094 "matchCount": "1",1095 "teardown": [1096 "$TC actions flush action ife"1097 ]1098 },1099 {1100 "id": "bbc0",1101 "name": "Create ife encode action with invalid argument",1102 "category": [1103 "actions",1104 "ife"1105 ],1106 "plugins": {1107 "requires": "nsPlugin"1108 },1109 "setup": [1110 [1111 "$TC actions flush action ife",1112 0,1113 1,1114 2551115 ]1116 ],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",1121 "matchCount": "0",1122 "teardown": []1123 },1124 {1125 "id": "d54a",1126 "name": "Create ife encode action with invalid type argument",1127 "category": [1128 "actions",1129 "ife"1130 ],1131 "plugins": {1132 "requires": "nsPlugin"1133 },1134 "setup": [1135 [1136 "$TC actions flush action ife",1137 0,1138 1,1139 2551140 ]1141 ],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",1146 "matchCount": "0",1147 "teardown": []1148 },1149 {1150 "id": "7ee0",1151 "name": "Create ife encode action with invalid mac src argument",1152 "category": [1153 "actions",1154 "ife"1155 ],1156 "plugins": {1157 "requires": "nsPlugin"1158 },1159 "setup": [1160 [1161 "$TC actions flush action ife",1162 0,1163 1,1164 2551165 ]1166 ],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",1171 "matchCount": "0",1172 "teardown": []1173 },1174 {1175 "id": "0a7d",1176 "name": "Create ife encode action with invalid mac dst argument",1177 "category": [1178 "actions",1179 "ife"1180 ],1181 "plugins": {1182 "requires": "nsPlugin"1183 },1184 "setup": [1185 [1186 "$TC actions flush action ife",1187 0,1188 1,1189 2551190 ]1191 ],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",1196 "matchCount": "0",1197 "teardown": []1198 },1199 {1200 "id": "a0e2",1201 "name": "Replace ife encode action with invalid goto chain control",1202 "category": [1203 "actions",1204 "ife"1205 ],1206 "plugins": {1207 "requires": "nsPlugin"1208 },1209 "setup": [1210 [1211 "$TC actions flush action ife",1212 0,1213 1,1214 2551215 ],1216 "$TC actions add action ife encode allow mark pass index 90"1217 ],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",1222 "matchCount": "1",1223 "teardown": [1224 "$TC actions flush action ife"1225 ]1226 },1227 {1228 "id": "a972",1229 "name": "Delete ife encode action with valid index",1230 "category": [1231 "actions",1232 "ife"1233 ],1234 "plugins": {1235 "requires": "nsPlugin"1236 },1237 "setup": [1238 [1239 "$TC actions flush action ife",1240 0,1241 1,1242 2551243 ],1244 "$TC actions add action ife encode allow mark pass index 20"1245 ],1246 "cmdUnderTest": "$TC actions del action ife index 20",1247 "expExitCode": "0",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",1250 "matchCount": "0",1251 "teardown": [1252 "$TC actions flush action ife"1253 ]1254 },1255 {1256 "id": "1272",1257 "name": "Delete ife encode action with invalid index",1258 "category": [1259 "actions",1260 "ife"1261 ],1262 "plugins": {1263 "requires": "nsPlugin"1264 },1265 "setup": [1266 [1267 "$TC actions flush action ife",1268 0,1269 1,1270 2551271 ],1272 "$TC actions add action ife encode allow mark pass index 20"1273 ],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",1278 "matchCount": "1",1279 "teardown": [1280 "$TC actions flush action ife"1281 ]1282 }1283]1284