0001 [
0002 {
0003 "id": "7682",
0004 "name": "Create valid ife encode action with mark and pass control",
0005 "category": [
0006 "actions",
0007 "ife"
0008 ],
0009 "setup": [
0010 [
0011 "$TC actions flush action ife",
0012 0,
0013 1,
0014 255
0015 ]
0016 ],
0017 "cmdUnderTest": "$TC actions add action ife encode allow mark pass index 2",
0018 "expExitCode": "0",
0019 "verifyCmd": "$TC actions get action ife index 2",
0020 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*allow mark.*index 2",
0021 "matchCount": "1",
0022 "teardown": [
0023 "$TC actions flush action ife"
0024 ]
0025 },
0026 {
0027 "id": "ef47",
0028 "name": "Create valid ife encode action with mark and pipe control",
0029 "category": [
0030 "actions",
0031 "ife"
0032 ],
0033 "setup": [
0034 [
0035 "$TC actions flush action ife",
0036 0,
0037 1,
0038 255
0039 ]
0040 ],
0041 "cmdUnderTest": "$TC actions add action ife encode use mark 10 pipe index 2",
0042 "expExitCode": "0",
0043 "verifyCmd": "$TC actions get action ife index 2",
0044 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*use mark.*index 2",
0045 "matchCount": "1",
0046 "teardown": [
0047 "$TC actions flush action ife"
0048 ]
0049 },
0050 {
0051 "id": "df43",
0052 "name": "Create valid ife encode action with mark and continue control",
0053 "category": [
0054 "actions",
0055 "ife"
0056 ],
0057 "setup": [
0058 [
0059 "$TC actions flush action ife",
0060 0,
0061 1,
0062 255
0063 ]
0064 ],
0065 "cmdUnderTest": "$TC actions add action ife encode allow mark continue index 2",
0066 "expExitCode": "0",
0067 "verifyCmd": "$TC actions get action ife index 2",
0068 "matchPattern": "action order [0-9]*: ife encode action continue.*type 0[xX]ED3E.*allow mark.*index 2",
0069 "matchCount": "1",
0070 "teardown": [
0071 "$TC actions flush action ife"
0072 ]
0073 },
0074 {
0075 "id": "e4cf",
0076 "name": "Create valid ife encode action with mark and drop control",
0077 "category": [
0078 "actions",
0079 "ife"
0080 ],
0081 "setup": [
0082 [
0083 "$TC actions flush action ife",
0084 0,
0085 1,
0086 255
0087 ]
0088 ],
0089 "cmdUnderTest": "$TC actions add action ife encode use mark 789 drop index 2",
0090 "expExitCode": "0",
0091 "verifyCmd": "$TC actions get action ife index 2",
0092 "matchPattern": "action order [0-9]*: ife encode action drop.*type 0[xX]ED3E.*use mark 789.*index 2",
0093 "matchCount": "1",
0094 "teardown": [
0095 "$TC actions flush action ife"
0096 ]
0097 },
0098 {
0099 "id": "ccba",
0100 "name": "Create valid ife encode action with mark and reclassify control",
0101 "category": [
0102 "actions",
0103 "ife"
0104 ],
0105 "setup": [
0106 [
0107 "$TC actions flush action ife",
0108 0,
0109 1,
0110 255
0111 ]
0112 ],
0113 "cmdUnderTest": "$TC actions add action ife encode use mark 656768 reclassify index 2",
0114 "expExitCode": "0",
0115 "verifyCmd": "$TC actions get action ife index 2",
0116 "matchPattern": "action order [0-9]*: ife encode action reclassify.*type 0[xX]ED3E.*use mark 656768.*index 2",
0117 "matchCount": "1",
0118 "teardown": [
0119 "$TC actions flush action ife"
0120 ]
0121 },
0122 {
0123 "id": "a1cf",
0124 "name": "Create valid ife encode action with mark and jump control",
0125 "category": [
0126 "actions",
0127 "ife"
0128 ],
0129 "setup": [
0130 [
0131 "$TC actions flush action ife",
0132 0,
0133 1,
0134 255
0135 ]
0136 ],
0137 "cmdUnderTest": "$TC actions add action ife encode use mark 65 jump 1 index 2",
0138 "expExitCode": "0",
0139 "verifyCmd": "$TC actions get action ife index 2",
0140 "matchPattern": "action order [0-9]*: ife encode action jump 1.*type 0[xX]ED3E.*use mark 65.*index 2",
0141 "matchCount": "1",
0142 "teardown": [
0143 "$TC actions flush action ife"
0144 ]
0145 },
0146 {
0147 "id": "cb3d",
0148 "name": "Create valid ife encode action with mark value at 32-bit maximum",
0149 "category": [
0150 "actions",
0151 "ife"
0152 ],
0153 "setup": [
0154 [
0155 "$TC actions flush action ife",
0156 0,
0157 1,
0158 255
0159 ]
0160 ],
0161 "cmdUnderTest": "$TC actions add action ife encode use mark 4294967295 reclassify index 90",
0162 "expExitCode": "0",
0163 "verifyCmd": "$TC actions get action ife index 90",
0164 "matchPattern": "action order [0-9]*: ife encode action reclassify.*type 0[xX]ED3E.*use mark 4294967295.*index 90",
0165 "matchCount": "1",
0166 "teardown": [
0167 "$TC actions flush action ife"
0168 ]
0169 },
0170 {
0171 "id": "1efb",
0172 "name": "Create ife encode action with mark value exceeding 32-bit maximum",
0173 "category": [
0174 "actions",
0175 "ife"
0176 ],
0177 "setup": [
0178 [
0179 "$TC actions flush action ife",
0180 0,
0181 1,
0182 255
0183 ]
0184 ],
0185 "cmdUnderTest": "$TC actions add action ife encode use mark 4294967295999 pipe index 90",
0186 "expExitCode": "255",
0187 "verifyCmd": "$TC actions get action ife index 90",
0188 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*use mark 4294967295999.*index 90",
0189 "matchCount": "0",
0190 "teardown": []
0191 },
0192 {
0193 "id": "95ed",
0194 "name": "Create valid ife encode action with prio and pass control",
0195 "category": [
0196 "actions",
0197 "ife"
0198 ],
0199 "setup": [
0200 [
0201 "$TC actions flush action ife",
0202 0,
0203 1,
0204 255
0205 ]
0206 ],
0207 "cmdUnderTest": "$TC actions add action ife encode allow prio pass index 9",
0208 "expExitCode": "0",
0209 "verifyCmd": "$TC actions get action ife index 9",
0210 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*allow prio.*index 9",
0211 "matchCount": "1",
0212 "teardown": [
0213 "$TC actions flush action ife"
0214 ]
0215 },
0216 {
0217 "id": "aa17",
0218 "name": "Create valid ife encode action with prio and pipe control",
0219 "category": [
0220 "actions",
0221 "ife"
0222 ],
0223 "setup": [
0224 [
0225 "$TC actions flush action ife",
0226 0,
0227 1,
0228 255
0229 ]
0230 ],
0231 "cmdUnderTest": "$TC actions add action ife encode use prio 7 pipe index 9",
0232 "expExitCode": "0",
0233 "verifyCmd": "$TC actions get action ife index 9",
0234 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*use prio 7.*index 9",
0235 "matchCount": "1",
0236 "teardown": [
0237 "$TC actions flush action ife"
0238 ]
0239 },
0240 {
0241 "id": "74c7",
0242 "name": "Create valid ife encode action with prio and continue control",
0243 "category": [
0244 "actions",
0245 "ife"
0246 ],
0247 "setup": [
0248 [
0249 "$TC actions flush action ife",
0250 0,
0251 1,
0252 255
0253 ]
0254 ],
0255 "cmdUnderTest": "$TC actions add action ife encode use prio 3 continue index 9",
0256 "expExitCode": "0",
0257 "verifyCmd": "$TC actions get action ife index 9",
0258 "matchPattern": "action order [0-9]*: ife encode action continue.*type 0[xX]ED3E.*use prio 3.*index 9",
0259 "matchCount": "1",
0260 "teardown": [
0261 "$TC actions flush action ife"
0262 ]
0263 },
0264 {
0265 "id": "7a97",
0266 "name": "Create valid ife encode action with prio and drop control",
0267 "category": [
0268 "actions",
0269 "ife"
0270 ],
0271 "setup": [
0272 [
0273 "$TC actions flush action ife",
0274 0,
0275 1,
0276 255
0277 ]
0278 ],
0279 "cmdUnderTest": "$TC actions add action ife encode allow prio drop index 9",
0280 "expExitCode": "0",
0281 "verifyCmd": "$TC actions get action ife index 9",
0282 "matchPattern": "action order [0-9]*: ife encode action drop.*type 0[xX]ED3E.*allow prio.*index 9",
0283 "matchCount": "1",
0284 "teardown": [
0285 "$TC actions flush action ife"
0286 ]
0287 },
0288 {
0289 "id": "f66b",
0290 "name": "Create valid ife encode action with prio and reclassify control",
0291 "category": [
0292 "actions",
0293 "ife"
0294 ],
0295 "setup": [
0296 [
0297 "$TC actions flush action ife",
0298 0,
0299 1,
0300 255
0301 ]
0302 ],
0303 "cmdUnderTest": "$TC actions add action ife encode use prio 998877 reclassify index 9",
0304 "expExitCode": "0",
0305 "verifyCmd": "$TC actions get action ife index 9",
0306 "matchPattern": "action order [0-9]*: ife encode action reclassify.*type 0[xX]ED3E.*use prio 998877.*index 9",
0307 "matchCount": "1",
0308 "teardown": [
0309 "$TC actions flush action ife"
0310 ]
0311 },
0312 {
0313 "id": "3056",
0314 "name": "Create valid ife encode action with prio and jump control",
0315 "category": [
0316 "actions",
0317 "ife"
0318 ],
0319 "setup": [
0320 [
0321 "$TC actions flush action ife",
0322 0,
0323 1,
0324 255
0325 ]
0326 ],
0327 "cmdUnderTest": "$TC actions add action ife encode use prio 998877 jump 10 index 9",
0328 "expExitCode": "0",
0329 "verifyCmd": "$TC actions get action ife index 9",
0330 "matchPattern": "action order [0-9]*: ife encode action jump 10.*type 0[xX]ED3E.*use prio 998877.*index 9",
0331 "matchCount": "1",
0332 "teardown": [
0333 "$TC actions flush action ife"
0334 ]
0335 },
0336 {
0337 "id": "7dd3",
0338 "name": "Create valid ife encode action with prio value at 32-bit maximum",
0339 "category": [
0340 "actions",
0341 "ife"
0342 ],
0343 "setup": [
0344 [
0345 "$TC actions flush action ife",
0346 0,
0347 1,
0348 255
0349 ]
0350 ],
0351 "cmdUnderTest": "$TC actions add action ife encode use prio 4294967295 reclassify index 99",
0352 "expExitCode": "0",
0353 "verifyCmd": "$TC actions get action ife index 99",
0354 "matchPattern": "action order [0-9]*: ife encode action reclassify.*type 0[xX]ED3E.*use prio 4294967295.*index 99",
0355 "matchCount": "1",
0356 "teardown": [
0357 "$TC actions flush action ife"
0358 ]
0359 },
0360 {
0361 "id": "2ca1",
0362 "name": "Create ife encode action with prio value exceeding 32-bit maximum",
0363 "category": [
0364 "actions",
0365 "ife"
0366 ],
0367 "setup": [
0368 [
0369 "$TC actions flush action ife",
0370 0,
0371 1,
0372 255
0373 ]
0374 ],
0375 "cmdUnderTest": "$TC actions add action ife encode use prio 4294967298 pipe index 99",
0376 "expExitCode": "255",
0377 "verifyCmd": "$TC actions get action ife index 99",
0378 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*use prio 4294967298.*index 99",
0379 "matchCount": "0",
0380 "teardown": []
0381 },
0382 {
0383 "id": "05bb",
0384 "name": "Create valid ife encode action with tcindex and pass control",
0385 "category": [
0386 "actions",
0387 "ife"
0388 ],
0389 "setup": [
0390 [
0391 "$TC actions flush action ife",
0392 0,
0393 1,
0394 255
0395 ]
0396 ],
0397 "cmdUnderTest": "$TC actions add action ife encode allow tcindex pass index 1",
0398 "expExitCode": "0",
0399 "verifyCmd": "$TC actions get action ife index 1",
0400 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*allow tcindex.*index 1",
0401 "matchCount": "1",
0402 "teardown": [
0403 "$TC actions flush action ife"
0404 ]
0405 },
0406 {
0407 "id": "ce65",
0408 "name": "Create valid ife encode action with tcindex and pipe control",
0409 "category": [
0410 "actions",
0411 "ife"
0412 ],
0413 "setup": [
0414 [
0415 "$TC actions flush action ife",
0416 0,
0417 1,
0418 255
0419 ]
0420 ],
0421 "cmdUnderTest": "$TC actions add action ife encode use tcindex 111 pipe index 1",
0422 "expExitCode": "0",
0423 "verifyCmd": "$TC actions get action ife index 1",
0424 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*use tcindex 111.*index 1",
0425 "matchCount": "1",
0426 "teardown": [
0427 "$TC actions flush action ife"
0428 ]
0429 },
0430 {
0431 "id": "09cd",
0432 "name": "Create valid ife encode action with tcindex and continue control",
0433 "category": [
0434 "actions",
0435 "ife"
0436 ],
0437 "setup": [
0438 [
0439 "$TC actions flush action ife",
0440 0,
0441 1,
0442 255
0443 ]
0444 ],
0445 "cmdUnderTest": "$TC actions add action ife encode use tcindex 1 continue index 1",
0446 "expExitCode": "0",
0447 "verifyCmd": "$TC actions get action ife index 1",
0448 "matchPattern": "action order [0-9]*: ife encode action continue.*type 0[xX]ED3E.*use tcindex 1.*index 1",
0449 "matchCount": "1",
0450 "teardown": [
0451 "$TC actions flush action ife"
0452 ]
0453 },
0454 {
0455 "id": "8eb5",
0456 "name": "Create valid ife encode action with tcindex and continue control",
0457 "category": [
0458 "actions",
0459 "ife"
0460 ],
0461 "setup": [
0462 [
0463 "$TC actions flush action ife",
0464 0,
0465 1,
0466 255
0467 ]
0468 ],
0469 "cmdUnderTest": "$TC actions add action ife encode use tcindex 1 continue index 1",
0470 "expExitCode": "0",
0471 "verifyCmd": "$TC actions get action ife index 1",
0472 "matchPattern": "action order [0-9]*: ife encode action continue.*type 0[xX]ED3E.*use tcindex 1.*index 1",
0473 "matchCount": "1",
0474 "teardown": [
0475 "$TC actions flush action ife"
0476 ]
0477 },
0478 {
0479 "id": "451a",
0480 "name": "Create valid ife encode action with tcindex and drop control",
0481 "category": [
0482 "actions",
0483 "ife"
0484 ],
0485 "setup": [
0486 [
0487 "$TC actions flush action ife",
0488 0,
0489 1,
0490 255
0491 ]
0492 ],
0493 "cmdUnderTest": "$TC actions add action ife encode allow tcindex drop index 77",
0494 "expExitCode": "0",
0495 "verifyCmd": "$TC actions get action ife index 77",
0496 "matchPattern": "action order [0-9]*: ife encode action drop.*type 0[xX]ED3E.*allow tcindex.*index 77",
0497 "matchCount": "1",
0498 "teardown": [
0499 "$TC actions flush action ife"
0500 ]
0501 },
0502 {
0503 "id": "d76c",
0504 "name": "Create valid ife encode action with tcindex and reclassify control",
0505 "category": [
0506 "actions",
0507 "ife"
0508 ],
0509 "setup": [
0510 [
0511 "$TC actions flush action ife",
0512 0,
0513 1,
0514 255
0515 ]
0516 ],
0517 "cmdUnderTest": "$TC actions add action ife encode allow tcindex reclassify index 77",
0518 "expExitCode": "0",
0519 "verifyCmd": "$TC actions get action ife index 77",
0520 "matchPattern": "action order [0-9]*: ife encode action reclassify.*type 0[xX]ED3E.*allow tcindex.*index 77",
0521 "matchCount": "1",
0522 "teardown": [
0523 "$TC actions flush action ife"
0524 ]
0525 },
0526 {
0527 "id": "e731",
0528 "name": "Create valid ife encode action with tcindex and jump control",
0529 "category": [
0530 "actions",
0531 "ife"
0532 ],
0533 "setup": [
0534 [
0535 "$TC actions flush action ife",
0536 0,
0537 1,
0538 255
0539 ]
0540 ],
0541 "cmdUnderTest": "$TC actions add action ife encode allow tcindex jump 999 index 77",
0542 "expExitCode": "0",
0543 "verifyCmd": "$TC actions get action ife index 77",
0544 "matchPattern": "action order [0-9]*: ife encode action jump 999.*type 0[xX]ED3E.*allow tcindex.*index 77",
0545 "matchCount": "1",
0546 "teardown": [
0547 "$TC actions flush action ife"
0548 ]
0549 },
0550 {
0551 "id": "b7b8",
0552 "name": "Create valid ife encode action with tcindex value at 16-bit maximum",
0553 "category": [
0554 "actions",
0555 "ife"
0556 ],
0557 "setup": [
0558 [
0559 "$TC actions flush action ife",
0560 0,
0561 1,
0562 255
0563 ]
0564 ],
0565 "cmdUnderTest": "$TC actions add action ife encode use tcindex 65535 pass index 1",
0566 "expExitCode": "0",
0567 "verifyCmd": "$TC actions get action ife index 1",
0568 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*use tcindex 65535.*index 1",
0569 "matchCount": "1",
0570 "teardown": [
0571 "$TC actions flush action ife"
0572 ]
0573 },
0574 {
0575 "id": "d0d8",
0576 "name": "Create ife encode action with tcindex value exceeding 16-bit maximum",
0577 "category": [
0578 "actions",
0579 "ife"
0580 ],
0581 "setup": [
0582 [
0583 "$TC actions flush action ife",
0584 0,
0585 1,
0586 255
0587 ]
0588 ],
0589 "cmdUnderTest": "$TC actions add action ife encode use tcindex 65539 pipe index 1",
0590 "expExitCode": "255",
0591 "verifyCmd": "$TC actions get action ife index 1",
0592 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*use tcindex 65539.*index 1",
0593 "matchCount": "0",
0594 "teardown": []
0595 },
0596 {
0597 "id": "2a9c",
0598 "name": "Create valid ife encode action with mac src parameter",
0599 "category": [
0600 "actions",
0601 "ife"
0602 ],
0603 "setup": [
0604 [
0605 "$TC actions flush action ife",
0606 0,
0607 1,
0608 255
0609 ]
0610 ],
0611 "cmdUnderTest": "$TC actions add action ife encode allow mark src 00:11:22:33:44:55 pipe index 1",
0612 "expExitCode": "0",
0613 "verifyCmd": "$TC actions get action ife index 1",
0614 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*allow mark src 00:11:22:33:44:55.*index 1",
0615 "matchCount": "1",
0616 "teardown": [
0617 "$TC actions flush action ife"
0618 ]
0619 },
0620 {
0621 "id": "cf5c",
0622 "name": "Create valid ife encode action with mac dst parameter",
0623 "category": [
0624 "actions",
0625 "ife"
0626 ],
0627 "setup": [
0628 [
0629 "$TC actions flush action ife",
0630 0,
0631 1,
0632 255
0633 ]
0634 ],
0635 "cmdUnderTest": "$TC actions add action ife encode use prio 9876 dst 00:11:22:33:44:55 reclassify index 1",
0636 "expExitCode": "0",
0637 "verifyCmd": "$TC actions get action ife index 1",
0638 "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",
0639 "matchCount": "1",
0640 "teardown": [
0641 "$TC actions flush action ife"
0642 ]
0643 },
0644 {
0645 "id": "2353",
0646 "name": "Create valid ife encode action with mac src and mac dst parameters",
0647 "category": [
0648 "actions",
0649 "ife"
0650 ],
0651 "setup": [
0652 [
0653 "$TC actions flush action ife",
0654 0,
0655 1,
0656 255
0657 ]
0658 ],
0659 "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",
0660 "expExitCode": "0",
0661 "verifyCmd": "$TC actions get action ife index 11",
0662 "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",
0663 "matchCount": "1",
0664 "teardown": [
0665 "$TC actions flush action ife"
0666 ]
0667 },
0668 {
0669 "id": "552c",
0670 "name": "Create valid ife encode action with mark and type parameters",
0671 "category": [
0672 "actions",
0673 "ife"
0674 ],
0675 "setup": [
0676 [
0677 "$TC actions flush action ife",
0678 0,
0679 1,
0680 255
0681 ]
0682 ],
0683 "cmdUnderTest": "$TC actions add action ife encode use mark 7 type 0xfefe pass index 1",
0684 "expExitCode": "0",
0685 "verifyCmd": "$TC actions get action ife index 1",
0686 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]FEFE.*use mark 7.*index 1",
0687 "matchCount": "1",
0688 "teardown": [
0689 "$TC actions flush action ife"
0690 ]
0691 },
0692 {
0693 "id": "0421",
0694 "name": "Create valid ife encode action with prio and type parameters",
0695 "category": [
0696 "actions",
0697 "ife"
0698 ],
0699 "setup": [
0700 [
0701 "$TC actions flush action ife",
0702 0,
0703 1,
0704 255
0705 ]
0706 ],
0707 "cmdUnderTest": "$TC actions add action ife encode use prio 444 type 0xabba pipe index 21",
0708 "expExitCode": "0",
0709 "verifyCmd": "$TC actions get action ife index 21",
0710 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ABBA.*use prio 444.*index 21",
0711 "matchCount": "1",
0712 "teardown": [
0713 "$TC actions flush action ife"
0714 ]
0715 },
0716 {
0717 "id": "4017",
0718 "name": "Create valid ife encode action with tcindex and type parameters",
0719 "category": [
0720 "actions",
0721 "ife"
0722 ],
0723 "setup": [
0724 [
0725 "$TC actions flush action ife",
0726 0,
0727 1,
0728 255
0729 ]
0730 ],
0731 "cmdUnderTest": "$TC actions add action ife encode use tcindex 5000 type 0xabcd reclassify index 21",
0732 "expExitCode": "0",
0733 "verifyCmd": "$TC actions get action ife index 21",
0734 "matchPattern": "action order [0-9]*: ife encode action reclassify.*type 0[xX]ABCD.*use tcindex 5000.*index 21",
0735 "matchCount": "1",
0736 "teardown": [
0737 "$TC actions flush action ife"
0738 ]
0739 },
0740 {
0741 "id": "fac3",
0742 "name": "Create valid ife encode action with index at 32-bit maximum",
0743 "category": [
0744 "actions",
0745 "ife"
0746 ],
0747 "setup": [
0748 [
0749 "$TC actions flush action ife",
0750 0,
0751 1,
0752 255
0753 ]
0754 ],
0755 "cmdUnderTest": "$TC actions add action ife encode allow mark pass index 4294967295",
0756 "expExitCode": "0",
0757 "verifyCmd": "$TC actions get action ife index 4294967295",
0758 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*allow mark.*index 4294967295",
0759 "matchCount": "1",
0760 "teardown": [
0761 "$TC actions flush action ife"
0762 ]
0763 },
0764 {
0765 "id": "7c25",
0766 "name": "Create valid ife decode action with pass control",
0767 "category": [
0768 "actions",
0769 "ife"
0770 ],
0771 "setup": [
0772 [
0773 "$TC actions flush action ife",
0774 0,
0775 1,
0776 255
0777 ]
0778 ],
0779 "cmdUnderTest": "$TC actions add action ife decode pass index 1",
0780 "expExitCode": "0",
0781 "verifyCmd": "$TC actions get action ife index 1",
0782 "matchPattern": "action order [0-9]*: ife decode action pass.*type 0(x0)?.*allow mark allow tcindex allow prio.*index 1",
0783 "matchCount": "1",
0784 "teardown": [
0785 "$TC actions flush action ife"
0786 ]
0787 },
0788 {
0789 "id": "dccb",
0790 "name": "Create valid ife decode action with pipe control",
0791 "category": [
0792 "actions",
0793 "ife"
0794 ],
0795 "setup": [
0796 [
0797 "$TC actions flush action ife",
0798 0,
0799 1,
0800 255
0801 ]
0802 ],
0803 "cmdUnderTest": "$TC actions add action ife decode pipe index 1",
0804 "expExitCode": "0",
0805 "verifyCmd": "$TC actions get action ife index 1",
0806 "matchPattern": "action order [0-9]*: ife decode action pipe.*type 0(x0)?.*allow mark allow tcindex allow prio.*index 1",
0807 "matchCount": "1",
0808 "teardown": [
0809 "$TC actions flush action ife"
0810 ]
0811 },
0812 {
0813 "id": "7bb9",
0814 "name": "Create valid ife decode action with continue control",
0815 "category": [
0816 "actions",
0817 "ife"
0818 ],
0819 "setup": [
0820 [
0821 "$TC actions flush action ife",
0822 0,
0823 1,
0824 255
0825 ]
0826 ],
0827 "cmdUnderTest": "$TC actions add action ife decode continue index 1",
0828 "expExitCode": "0",
0829 "verifyCmd": "$TC actions get action ife index 1",
0830 "matchPattern": "action order [0-9]*: ife decode action continue.*type 0(x0)?.*allow mark allow tcindex allow prio.*index 1",
0831 "matchCount": "1",
0832 "teardown": [
0833 "$TC actions flush action ife"
0834 ]
0835 },
0836 {
0837 "id": "d9ad",
0838 "name": "Create valid ife decode action with drop control",
0839 "category": [
0840 "actions",
0841 "ife"
0842 ],
0843 "setup": [
0844 [
0845 "$TC actions flush action ife",
0846 0,
0847 1,
0848 255
0849 ]
0850 ],
0851 "cmdUnderTest": "$TC actions add action ife decode drop index 1",
0852 "expExitCode": "0",
0853 "verifyCmd": "$TC actions get action ife index 1",
0854 "matchPattern": "action order [0-9]*: ife decode action drop.*type 0(x0)?.*allow mark allow tcindex allow prio.*index 1",
0855 "matchCount": "1",
0856 "teardown": [
0857 "$TC actions flush action ife"
0858 ]
0859 },
0860 {
0861 "id": "219f",
0862 "name": "Create valid ife decode action with reclassify control",
0863 "category": [
0864 "actions",
0865 "ife"
0866 ],
0867 "setup": [
0868 [
0869 "$TC actions flush action ife",
0870 0,
0871 1,
0872 255
0873 ]
0874 ],
0875 "cmdUnderTest": "$TC actions add action ife decode reclassify index 1",
0876 "expExitCode": "0",
0877 "verifyCmd": "$TC actions get action ife index 1",
0878 "matchPattern": "action order [0-9]*: ife decode action reclassify.*type 0(x0)?.*allow mark allow tcindex allow prio.*index 1",
0879 "matchCount": "1",
0880 "teardown": [
0881 "$TC actions flush action ife"
0882 ]
0883 },
0884 {
0885 "id": "8f44",
0886 "name": "Create valid ife decode action with jump control",
0887 "category": [
0888 "actions",
0889 "ife"
0890 ],
0891 "setup": [
0892 [
0893 "$TC actions flush action ife",
0894 0,
0895 1,
0896 255
0897 ]
0898 ],
0899 "cmdUnderTest": "$TC actions add action ife decode jump 10 index 1",
0900 "expExitCode": "0",
0901 "verifyCmd": "$TC actions get action ife index 1",
0902 "matchPattern": "action order [0-9]*: ife decode action jump 10.*type 0(x0)?.*allow mark allow tcindex allow prio.*index 1",
0903 "matchCount": "1",
0904 "teardown": [
0905 "$TC actions flush action ife"
0906 ]
0907 },
0908 {
0909 "id": "56cf",
0910 "name": "Create ife encode action with index exceeding 32-bit maximum",
0911 "category": [
0912 "actions",
0913 "ife"
0914 ],
0915 "setup": [
0916 [
0917 "$TC actions flush action ife",
0918 0,
0919 1,
0920 255
0921 ]
0922 ],
0923 "cmdUnderTest": "$TC actions add action ife encode allow mark pass index 4294967295999",
0924 "expExitCode": "255",
0925 "verifyCmd": "$TC actions get action ife index 4294967295999",
0926 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*allow mark.*index 4294967295999",
0927 "matchCount": "0",
0928 "teardown": []
0929 },
0930 {
0931 "id": "ee94",
0932 "name": "Create ife encode action with invalid control",
0933 "category": [
0934 "actions",
0935 "ife"
0936 ],
0937 "setup": [
0938 [
0939 "$TC actions flush action ife",
0940 0,
0941 1,
0942 255
0943 ]
0944 ],
0945 "cmdUnderTest": "$TC actions add action ife encode allow mark kuka index 4",
0946 "expExitCode": "255",
0947 "verifyCmd": "$TC actions get action ife index 4",
0948 "matchPattern": "action order [0-9]*: ife encode action kuka.*type 0[xX]ED3E.*allow mark.*index 4",
0949 "matchCount": "0",
0950 "teardown": []
0951 },
0952 {
0953 "id": "b330",
0954 "name": "Create ife encode action with cookie",
0955 "category": [
0956 "actions",
0957 "ife"
0958 ],
0959 "setup": [
0960 [
0961 "$TC actions flush action ife",
0962 0,
0963 1,
0964 255
0965 ]
0966 ],
0967 "cmdUnderTest": "$TC actions add action ife encode allow prio pipe index 4 cookie aabbccddeeff112233445566778800a1",
0968 "expExitCode": "0",
0969 "verifyCmd": "$TC actions get action ife index 4",
0970 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*allow prio.*index 4.*cookie aabbccddeeff112233445566778800a1",
0971 "matchCount": "1",
0972 "teardown": [
0973 "$TC actions flush action ife"
0974 ]
0975 },
0976 {
0977 "id": "bbc0",
0978 "name": "Create ife encode action with invalid argument",
0979 "category": [
0980 "actions",
0981 "ife"
0982 ],
0983 "setup": [
0984 [
0985 "$TC actions flush action ife",
0986 0,
0987 1,
0988 255
0989 ]
0990 ],
0991 "cmdUnderTest": "$TC actions add action ife encode allow foo pipe index 4",
0992 "expExitCode": "255",
0993 "verifyCmd": "$TC actions get action ife index 4",
0994 "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*allow foo.*index 4",
0995 "matchCount": "0",
0996 "teardown": []
0997 },
0998 {
0999 "id": "d54a",
1000 "name": "Create ife encode action with invalid type argument",
1001 "category": [
1002 "actions",
1003 "ife"
1004 ],
1005 "setup": [
1006 [
1007 "$TC actions flush action ife",
1008 0,
1009 1,
1010 255
1011 ]
1012 ],
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",
1017 "matchCount": "0",
1018 "teardown": []
1019 },
1020 {
1021 "id": "7ee0",
1022 "name": "Create ife encode action with invalid mac src argument",
1023 "category": [
1024 "actions",
1025 "ife"
1026 ],
1027 "setup": [
1028 [
1029 "$TC actions flush action ife",
1030 0,
1031 1,
1032 255
1033 ]
1034 ],
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",
1039 "matchCount": "0",
1040 "teardown": []
1041 },
1042 {
1043 "id": "0a7d",
1044 "name": "Create ife encode action with invalid mac dst argument",
1045 "category": [
1046 "actions",
1047 "ife"
1048 ],
1049 "setup": [
1050 [
1051 "$TC actions flush action ife",
1052 0,
1053 1,
1054 255
1055 ]
1056 ],
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",
1061 "matchCount": "0",
1062 "teardown": []
1063 },
1064 {
1065 "id": "a0e2",
1066 "name": "Replace ife encode action with invalid goto chain control",
1067 "category": [
1068 "actions",
1069 "ife"
1070 ],
1071 "setup": [
1072 [
1073 "$TC actions flush action ife",
1074 0,
1075 1,
1076 255
1077 ],
1078 "$TC actions add action ife encode allow mark pass index 90"
1079 ],
1080 "cmdUnderTest": "$TC actions replace action ife encode allow mark goto chain 42 index 90 cookie c1a0c1a0",
1081 "expExitCode": "255",
1082 "verifyCmd": "$TC actions get action ife index 90",
1083 "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E .*allow mark.*index 90 ref",
1084 "matchCount": "1",
1085 "teardown": [
1086 "$TC actions flush action ife"
1087 ]
1088 }
1089 ]