0001 [
0002 {
0003 "id": "a933",
0004 "name": "Add MPLS dec_ttl action with pipe opcode",
0005 "category": [
0006 "actions",
0007 "mpls"
0008 ],
0009 "setup": [
0010 [
0011 "$TC actions flush action mpls",
0012 0,
0013 1,
0014 255
0015 ]
0016 ],
0017 "cmdUnderTest": "$TC actions add action mpls dec_ttl pipe index 8",
0018 "expExitCode": "0",
0019 "verifyCmd": "$TC actions list action mpls",
0020 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*pipe.*index 8 ref",
0021 "matchCount": "1",
0022 "teardown": [
0023 "$TC actions flush action mpls"
0024 ]
0025 },
0026 {
0027 "id": "08d1",
0028 "name": "Add mpls dec_ttl action with pass opcode",
0029 "category": [
0030 "actions",
0031 "mpls"
0032 ],
0033 "setup": [
0034 [
0035 "$TC actions flush action mpls",
0036 0,
0037 1,
0038 255
0039 ]
0040 ],
0041 "cmdUnderTest": "$TC actions add action mpls dec_ttl pass index 8",
0042 "expExitCode": "0",
0043 "verifyCmd": "$TC actions get action mpls index 8",
0044 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*pass.*index 8 ref",
0045 "matchCount": "1",
0046 "teardown": [
0047 "$TC actions flush action mpls"
0048 ]
0049 },
0050 {
0051 "id": "d786",
0052 "name": "Add mpls dec_ttl action with drop opcode",
0053 "category": [
0054 "actions",
0055 "mpls"
0056 ],
0057 "setup": [
0058 [
0059 "$TC actions flush action mpls",
0060 0,
0061 1,
0062 255
0063 ]
0064 ],
0065 "cmdUnderTest": "$TC actions add action mpls dec_ttl drop index 8",
0066 "expExitCode": "0",
0067 "verifyCmd": "$TC actions get action mpls index 8",
0068 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*drop.*index 8 ref",
0069 "matchCount": "1",
0070 "teardown": [
0071 "$TC actions flush action mpls"
0072 ]
0073 },
0074 {
0075 "id": "f334",
0076 "name": "Add mpls dec_ttl action with reclassify opcode",
0077 "category": [
0078 "actions",
0079 "mpls"
0080 ],
0081 "setup": [
0082 [
0083 "$TC actions flush action mpls",
0084 0,
0085 1,
0086 255
0087 ]
0088 ],
0089 "cmdUnderTest": "$TC actions add action mpls dec_ttl reclassify index 8",
0090 "expExitCode": "0",
0091 "verifyCmd": "$TC actions get action mpls index 8",
0092 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*reclassify.*index 8 ref",
0093 "matchCount": "1",
0094 "teardown": [
0095 "$TC actions flush action mpls"
0096 ]
0097 },
0098 {
0099 "id": "29bd",
0100 "name": "Add mpls dec_ttl action with continue opcode",
0101 "category": [
0102 "actions",
0103 "mpls"
0104 ],
0105 "setup": [
0106 [
0107 "$TC actions flush action mpls",
0108 0,
0109 1,
0110 255
0111 ]
0112 ],
0113 "cmdUnderTest": "$TC actions add action mpls dec_ttl continue index 8",
0114 "expExitCode": "0",
0115 "verifyCmd": "$TC actions get action mpls index 8",
0116 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*continue.*index 8 ref",
0117 "matchCount": "1",
0118 "teardown": [
0119 "$TC actions flush action mpls"
0120 ]
0121 },
0122 {
0123 "id": "48df",
0124 "name": "Add mpls dec_ttl action with jump opcode",
0125 "category": [
0126 "actions",
0127 "mpls"
0128 ],
0129 "setup": [
0130 [
0131 "$TC actions flush action mpls",
0132 0,
0133 1,
0134 255
0135 ]
0136 ],
0137 "cmdUnderTest": "$TC actions add action mpls dec_ttl jump 10 index 8",
0138 "expExitCode": "0",
0139 "verifyCmd": "$TC actions list action mpls",
0140 "matchPattern": "action order [0-9]+: mpls.*jump 10.*index 8 ref",
0141 "matchCount": "1",
0142 "teardown": [
0143 "$TC actions flush action mpls"
0144 ]
0145 },
0146 {
0147 "id": "62eb",
0148 "name": "Add mpls dec_ttl action with trap opcode",
0149 "category": [
0150 "actions",
0151 "mpls"
0152 ],
0153 "setup": [
0154 [
0155 "$TC actions flush action mpls",
0156 0,
0157 1,
0158 255
0159 ]
0160 ],
0161 "cmdUnderTest": "$TC actions add action mpls dec_ttl trap index 8",
0162 "expExitCode": "0",
0163 "verifyCmd": "$TC actions list action mpls",
0164 "matchPattern": "action order [0-9]+: mpls.*dec_ttl trap.*index 8 ref",
0165 "matchCount": "1",
0166 "teardown": [
0167 "$TC actions flush action mpls"
0168 ]
0169 },
0170 {
0171 "id": "09d2",
0172 "name": "Add mpls dec_ttl action with opcode and cookie",
0173 "category": [
0174 "actions",
0175 "mpls"
0176 ],
0177 "setup": [
0178 [
0179 "$TC actions flush action mpls",
0180 0,
0181 1,
0182 255
0183 ]
0184 ],
0185 "cmdUnderTest": "$TC actions add action mpls dec_ttl pipe index 8 cookie aabbccddeeff",
0186 "expExitCode": "0",
0187 "verifyCmd": "$TC actions list action mpls",
0188 "matchPattern": "action order [0-9]+: mpls.*dec_ttl pipe.*index 8 ref.*cookie aabbccddeeff",
0189 "matchCount": "1",
0190 "teardown": [
0191 "$TC actions flush action mpls"
0192 ]
0193 },
0194 {
0195 "id": "c170",
0196 "name": "Add mpls dec_ttl action with opcode and cookie of max length",
0197 "category": [
0198 "actions",
0199 "mpls"
0200 ],
0201 "setup": [
0202 [
0203 "$TC actions flush action mpls",
0204 0,
0205 1,
0206 255
0207 ]
0208 ],
0209 "cmdUnderTest": "$TC actions add action mpls dec_ttl continue index 8 cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
0210 "expExitCode": "0",
0211 "verifyCmd": "$TC actions list action mpls",
0212 "matchPattern": "action order [0-9]+: mpls.*dec_ttl continue.*index 8 ref.*cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
0213 "matchCount": "1",
0214 "teardown": [
0215 "$TC actions flush action mpls"
0216 ]
0217 },
0218 {
0219 "id": "9118",
0220 "name": "Add mpls dec_ttl action with invalid opcode",
0221 "category": [
0222 "actions",
0223 "mpls"
0224 ],
0225 "setup": [
0226 [
0227 "$TC actions flush action mpls",
0228 0,
0229 1,
0230 255
0231 ]
0232 ],
0233 "cmdUnderTest": "$TC actions add action mpls dec_ttl foo index 8",
0234 "expExitCode": "255",
0235 "verifyCmd": "$TC actions list action mpls",
0236 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*foo.*index 8 ref",
0237 "matchCount": "0",
0238 "teardown": []
0239 },
0240 {
0241 "id": "6ce1",
0242 "name": "Add mpls dec_ttl action with label (invalid)",
0243 "category": [
0244 "actions",
0245 "mpls"
0246 ],
0247 "setup": [
0248 [
0249 "$TC actions flush action mpls",
0250 0,
0251 1,
0252 255
0253 ]
0254 ],
0255 "cmdUnderTest": "$TC actions add action mpls dec_ttl label 20",
0256 "expExitCode": "255",
0257 "verifyCmd": "$TC actions list action mpls",
0258 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*label.*20.*pipe",
0259 "matchCount": "0",
0260 "teardown": []
0261 },
0262 {
0263 "id": "352f",
0264 "name": "Add mpls dec_ttl action with tc (invalid)",
0265 "category": [
0266 "actions",
0267 "mpls"
0268 ],
0269 "setup": [
0270 [
0271 "$TC actions flush action mpls",
0272 0,
0273 1,
0274 255
0275 ]
0276 ],
0277 "cmdUnderTest": "$TC actions add action mpls dec_ttl tc 3",
0278 "expExitCode": "255",
0279 "verifyCmd": "$TC actions list action mpls",
0280 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*tc.*3.*pipe",
0281 "matchCount": "0",
0282 "teardown": []
0283 },
0284 {
0285 "id": "fa1c",
0286 "name": "Add mpls dec_ttl action with ttl (invalid)",
0287 "category": [
0288 "actions",
0289 "mpls"
0290 ],
0291 "setup": [
0292 [
0293 "$TC actions flush action mpls",
0294 0,
0295 1,
0296 255
0297 ]
0298 ],
0299 "cmdUnderTest": "$TC actions add action mpls dec_ttl ttl 20",
0300 "expExitCode": "255",
0301 "verifyCmd": "$TC actions list action mpls",
0302 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*ttl.*20.*pipe",
0303 "matchCount": "0",
0304 "teardown": []
0305 },
0306 {
0307 "id": "6b79",
0308 "name": "Add mpls dec_ttl action with bos (invalid)",
0309 "category": [
0310 "actions",
0311 "mpls"
0312 ],
0313 "setup": [
0314 [
0315 "$TC actions flush action mpls",
0316 0,
0317 1,
0318 255
0319 ]
0320 ],
0321 "cmdUnderTest": "$TC actions add action mpls dec_ttl bos 1",
0322 "expExitCode": "255",
0323 "verifyCmd": "$TC actions list action mpls",
0324 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*bos.*1.*pipe",
0325 "matchCount": "0",
0326 "teardown": []
0327 },
0328 {
0329 "id": "d4c4",
0330 "name": "Add mpls pop action with ip proto",
0331 "category": [
0332 "actions",
0333 "mpls"
0334 ],
0335 "setup": [
0336 [
0337 "$TC actions flush action mpls",
0338 0,
0339 1,
0340 255
0341 ]
0342 ],
0343 "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4",
0344 "expExitCode": "0",
0345 "verifyCmd": "$TC actions list action mpls",
0346 "matchPattern": "action order [0-9]+: mpls.*pop.*protocol.*ip.*pipe",
0347 "matchCount": "1",
0348 "teardown": [
0349 "$TC actions flush action mpls"
0350 ]
0351 },
0352 {
0353 "id": "91fb",
0354 "name": "Add mpls pop action with ip proto and cookie",
0355 "category": [
0356 "actions",
0357 "mpls"
0358 ],
0359 "setup": [
0360 [
0361 "$TC actions flush action mpls",
0362 0,
0363 1,
0364 255
0365 ]
0366 ],
0367 "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4 cookie 12345678",
0368 "expExitCode": "0",
0369 "verifyCmd": "$TC actions list action mpls",
0370 "matchPattern": "action order [0-9]+: mpls.*pop.*protocol.*ip.*pipe.*ref 1.*cookie 12345678",
0371 "matchCount": "1",
0372 "teardown": [
0373 "$TC actions flush action mpls"
0374 ]
0375 },
0376 {
0377 "id": "92fe",
0378 "name": "Add mpls pop action with mpls proto",
0379 "category": [
0380 "actions",
0381 "mpls"
0382 ],
0383 "setup": [
0384 [
0385 "$TC actions flush action mpls",
0386 0,
0387 1,
0388 255
0389 ]
0390 ],
0391 "cmdUnderTest": "$TC actions add action mpls pop protocol mpls_mc",
0392 "expExitCode": "0",
0393 "verifyCmd": "$TC actions list action mpls",
0394 "matchPattern": "action order [0-9]+: mpls.*pop.*protocol.*mpls_mc.*pipe",
0395 "matchCount": "1",
0396 "teardown": [
0397 "$TC actions flush action mpls"
0398 ]
0399 },
0400 {
0401 "id": "7e23",
0402 "name": "Add mpls pop action with no protocol (invalid)",
0403 "category": [
0404 "actions",
0405 "mpls"
0406 ],
0407 "setup": [
0408 [
0409 "$TC actions flush action mpls",
0410 0,
0411 1,
0412 255
0413 ]
0414 ],
0415 "cmdUnderTest": "$TC actions add action mpls pop",
0416 "expExitCode": "255",
0417 "verifyCmd": "$TC actions list action mpls",
0418 "matchPattern": "action order [0-9]+: mpls.*pop.*pipe",
0419 "matchCount": "0",
0420 "teardown": []
0421 },
0422 {
0423 "id": "6182",
0424 "name": "Add mpls pop action with label (invalid)",
0425 "category": [
0426 "actions",
0427 "mpls"
0428 ],
0429 "setup": [
0430 [
0431 "$TC actions flush action mpls",
0432 0,
0433 1,
0434 255
0435 ]
0436 ],
0437 "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4 label 20",
0438 "expExitCode": "255",
0439 "verifyCmd": "$TC actions list action mpls",
0440 "matchPattern": "action order [0-9]+: mpls.*pop.*label.*20.*pipe",
0441 "matchCount": "0",
0442 "teardown": []
0443 },
0444 {
0445 "id": "6475",
0446 "name": "Add mpls pop action with tc (invalid)",
0447 "category": [
0448 "actions",
0449 "mpls"
0450 ],
0451 "setup": [
0452 [
0453 "$TC actions flush action mpls",
0454 0,
0455 1,
0456 255
0457 ]
0458 ],
0459 "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4 tc 3",
0460 "expExitCode": "255",
0461 "verifyCmd": "$TC actions list action mpls",
0462 "matchPattern": "action order [0-9]+: mpls.*pop.*tc.*3.*pipe",
0463 "matchCount": "0",
0464 "teardown": []
0465 },
0466 {
0467 "id": "067b",
0468 "name": "Add mpls pop action with ttl (invalid)",
0469 "category": [
0470 "actions",
0471 "mpls"
0472 ],
0473 "setup": [
0474 [
0475 "$TC actions flush action mpls",
0476 0,
0477 1,
0478 255
0479 ]
0480 ],
0481 "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4 ttl 20",
0482 "expExitCode": "255",
0483 "verifyCmd": "$TC actions list action mpls",
0484 "matchPattern": "action order [0-9]+: mpls.*pop.*ttl.*20.*pipe",
0485 "matchCount": "0",
0486 "teardown": []
0487 },
0488 {
0489 "id": "7316",
0490 "name": "Add mpls pop action with bos (invalid)",
0491 "category": [
0492 "actions",
0493 "mpls"
0494 ],
0495 "setup": [
0496 [
0497 "$TC actions flush action mpls",
0498 0,
0499 1,
0500 255
0501 ]
0502 ],
0503 "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4 bos 1",
0504 "expExitCode": "255",
0505 "verifyCmd": "$TC actions list action mpls",
0506 "matchPattern": "action order [0-9]+: mpls.*pop.*bos.*1.*pipe",
0507 "matchCount": "0",
0508 "teardown": []
0509 },
0510 {
0511 "id": "38cc",
0512 "name": "Add mpls push action with label",
0513 "category": [
0514 "actions",
0515 "mpls"
0516 ],
0517 "setup": [
0518 [
0519 "$TC actions flush action mpls",
0520 0,
0521 1,
0522 255
0523 ]
0524 ],
0525 "cmdUnderTest": "$TC actions add action mpls push label 20",
0526 "expExitCode": "0",
0527 "verifyCmd": "$TC actions list action mpls",
0528 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*ttl.*[0-9]+.*pipe",
0529 "matchCount": "1",
0530 "teardown": [
0531 "$TC actions flush action mpls"
0532 ]
0533 },
0534 {
0535 "id": "c281",
0536 "name": "Add mpls push action with mpls_mc protocol",
0537 "category": [
0538 "actions",
0539 "mpls"
0540 ],
0541 "setup": [
0542 [
0543 "$TC actions flush action mpls",
0544 0,
0545 1,
0546 255
0547 ]
0548 ],
0549 "cmdUnderTest": "$TC actions add action mpls push protocol mpls_mc label 20",
0550 "expExitCode": "0",
0551 "verifyCmd": "$TC actions list action mpls",
0552 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_mc.*label.*20.*ttl.*[0-9]+.*pipe",
0553 "matchCount": "1",
0554 "teardown": [
0555 "$TC actions flush action mpls"
0556 ]
0557 },
0558 {
0559 "id": "5db4",
0560 "name": "Add mpls push action with label, tc and ttl",
0561 "category": [
0562 "actions",
0563 "mpls"
0564 ],
0565 "setup": [
0566 [
0567 "$TC actions flush action mpls",
0568 0,
0569 1,
0570 255
0571 ]
0572 ],
0573 "cmdUnderTest": "$TC actions add action mpls push label 20 tc 3 ttl 128",
0574 "expExitCode": "0",
0575 "verifyCmd": "$TC actions list action mpls",
0576 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*tc.*3.*ttl.*128.*pipe",
0577 "matchCount": "1",
0578 "teardown": [
0579 "$TC actions flush action mpls"
0580 ]
0581 },
0582 {
0583 "id": "7c34",
0584 "name": "Add mpls push action with label, tc ttl and cookie of max length",
0585 "category": [
0586 "actions",
0587 "mpls"
0588 ],
0589 "setup": [
0590 [
0591 "$TC actions flush action mpls",
0592 0,
0593 1,
0594 255
0595 ]
0596 ],
0597 "cmdUnderTest": "$TC actions add action mpls push label 20 tc 3 ttl 128 cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
0598 "expExitCode": "0",
0599 "verifyCmd": "$TC actions list action mpls",
0600 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*tc.*3.*ttl.*128.*pipe.*ref 1.*cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
0601 "matchCount": "1",
0602 "teardown": [
0603 "$TC actions flush action mpls"
0604 ]
0605 },
0606 {
0607 "id": "16eb",
0608 "name": "Add mpls push action with label and bos",
0609 "category": [
0610 "actions",
0611 "mpls"
0612 ],
0613 "setup": [
0614 [
0615 "$TC actions flush action mpls",
0616 0,
0617 1,
0618 255
0619 ]
0620 ],
0621 "cmdUnderTest": "$TC actions add action mpls push label 20 bos 1",
0622 "expExitCode": "0",
0623 "verifyCmd": "$TC actions list action mpls",
0624 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*bos.*1.*pipe",
0625 "matchCount": "1",
0626 "teardown": [
0627 "$TC actions flush action mpls"
0628 ]
0629 },
0630 {
0631 "id": "d69d",
0632 "name": "Add mpls push action with no label (invalid)",
0633 "category": [
0634 "actions",
0635 "mpls"
0636 ],
0637 "setup": [
0638 [
0639 "$TC actions flush action mpls",
0640 0,
0641 1,
0642 255
0643 ]
0644 ],
0645 "cmdUnderTest": "$TC actions add action mpls push",
0646 "expExitCode": "255",
0647 "verifyCmd": "$TC actions list action mpls",
0648 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*pipe",
0649 "matchCount": "0",
0650 "teardown": []
0651 },
0652 {
0653 "id": "e8e4",
0654 "name": "Add mpls push action with ipv4 protocol (invalid)",
0655 "category": [
0656 "actions",
0657 "mpls"
0658 ],
0659 "setup": [
0660 [
0661 "$TC actions flush action mpls",
0662 0,
0663 1,
0664 255
0665 ]
0666 ],
0667 "cmdUnderTest": "$TC actions add action mpls push protocol ipv4 label 20",
0668 "expExitCode": "255",
0669 "verifyCmd": "$TC actions list action mpls",
0670 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*ttl.*[0-9]+.*pipe",
0671 "matchCount": "0",
0672 "teardown": []
0673 },
0674 {
0675 "id": "ecd0",
0676 "name": "Add mpls push action with out of range label (invalid)",
0677 "category": [
0678 "actions",
0679 "mpls"
0680 ],
0681 "setup": [
0682 [
0683 "$TC actions flush action mpls",
0684 0,
0685 1,
0686 255
0687 ]
0688 ],
0689 "cmdUnderTest": "$TC actions add action mpls push label 1048576",
0690 "expExitCode": "255",
0691 "verifyCmd": "$TC actions list action mpls",
0692 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*1048576.*pipe",
0693 "matchCount": "0",
0694 "teardown": []
0695 },
0696 {
0697 "id": "d303",
0698 "name": "Add mpls push action with out of range tc (invalid)",
0699 "category": [
0700 "actions",
0701 "mpls"
0702 ],
0703 "setup": [
0704 [
0705 "$TC actions flush action mpls",
0706 0,
0707 1,
0708 255
0709 ]
0710 ],
0711 "cmdUnderTest": "$TC actions add action mpls push label 20 tc 8",
0712 "expExitCode": "255",
0713 "verifyCmd": "$TC actions list action mpls",
0714 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*tc.*8.*pipe",
0715 "matchCount": "0",
0716 "teardown": []
0717 },
0718 {
0719 "id": "fd6e",
0720 "name": "Add mpls push action with ttl of 0 (invalid)",
0721 "category": [
0722 "actions",
0723 "mpls"
0724 ],
0725 "setup": [
0726 [
0727 "$TC actions flush action mpls",
0728 0,
0729 1,
0730 255
0731 ]
0732 ],
0733 "cmdUnderTest": "$TC actions add action mpls push label 20 ttl 0",
0734 "expExitCode": "255",
0735 "verifyCmd": "$TC actions list action mpls",
0736 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*ttl.*0.*pipe",
0737 "matchCount": "0",
0738 "teardown": []
0739 },
0740 {
0741 "id": "19e9",
0742 "name": "Add mpls mod action with mpls label",
0743 "category": [
0744 "actions",
0745 "mpls"
0746 ],
0747 "setup": [
0748 [
0749 "$TC actions flush action mpls",
0750 0,
0751 1,
0752 255
0753 ]
0754 ],
0755 "cmdUnderTest": "$TC actions add action mpls mod label 20",
0756 "expExitCode": "0",
0757 "verifyCmd": "$TC actions list action mpls",
0758 "matchPattern": "action order [0-9]+: mpls.*modify.*label.*20.*pipe",
0759 "matchCount": "1",
0760 "teardown": [
0761 "$TC actions flush action mpls"
0762 ]
0763 },
0764 {
0765 "id": "1fde",
0766 "name": "Add mpls mod action with max mpls label",
0767 "category": [
0768 "actions",
0769 "mpls"
0770 ],
0771 "setup": [
0772 [
0773 "$TC actions flush action mpls",
0774 0,
0775 1,
0776 255
0777 ]
0778 ],
0779 "cmdUnderTest": "$TC actions add action mpls mod label 0xfffff",
0780 "expExitCode": "0",
0781 "verifyCmd": "$TC actions list action mpls",
0782 "matchPattern": "action order [0-9]+: mpls.*modify.*label.*1048575.*pipe",
0783 "matchCount": "1",
0784 "teardown": [
0785 "$TC actions flush action mpls"
0786 ]
0787 },
0788 {
0789 "id": "0c50",
0790 "name": "Add mpls mod action with mpls label exceeding max (invalid)",
0791 "category": [
0792 "actions",
0793 "mpls"
0794 ],
0795 "setup": [
0796 [
0797 "$TC actions flush action mpls",
0798 0,
0799 1,
0800 255
0801 ]
0802 ],
0803 "cmdUnderTest": "$TC actions add action mpls mod label 0x100000",
0804 "expExitCode": "255",
0805 "verifyCmd": "$TC actions list action mpls",
0806 "matchPattern": "action order [0-9]+: mpls.*modify.*label.*1048576.*pipe",
0807 "matchCount": "0",
0808 "teardown": []
0809 },
0810 {
0811 "id": "10b6",
0812 "name": "Add mpls mod action with mpls label of MPLS_LABEL_IMPLNULL (invalid)",
0813 "category": [
0814 "actions",
0815 "mpls"
0816 ],
0817 "setup": [
0818 [
0819 "$TC actions flush action mpls",
0820 0,
0821 1,
0822 255
0823 ]
0824 ],
0825 "cmdUnderTest": "$TC actions add action mpls mod label 3",
0826 "expExitCode": "255",
0827 "verifyCmd": "$TC actions list action mpls",
0828 "matchPattern": "action order [0-9]+: mpls.*modify.*label.*3.*pipe",
0829 "matchCount": "0",
0830 "teardown": []
0831 },
0832 {
0833 "id": "57c9",
0834 "name": "Add mpls mod action with mpls min tc",
0835 "category": [
0836 "actions",
0837 "mpls"
0838 ],
0839 "setup": [
0840 [
0841 "$TC actions flush action mpls",
0842 0,
0843 1,
0844 255
0845 ]
0846 ],
0847 "cmdUnderTest": "$TC actions add action mpls mod tc 0",
0848 "expExitCode": "0",
0849 "verifyCmd": "$TC actions list action mpls",
0850 "matchPattern": "action order [0-9]+: mpls.*modify.*tc.*0.*pipe",
0851 "matchCount": "1",
0852 "teardown": [
0853 "$TC actions flush action mpls"
0854 ]
0855 },
0856 {
0857 "id": "6872",
0858 "name": "Add mpls mod action with mpls max tc",
0859 "category": [
0860 "actions",
0861 "mpls"
0862 ],
0863 "setup": [
0864 [
0865 "$TC actions flush action mpls",
0866 0,
0867 1,
0868 255
0869 ]
0870 ],
0871 "cmdUnderTest": "$TC actions add action mpls mod tc 7",
0872 "expExitCode": "0",
0873 "verifyCmd": "$TC actions list action mpls",
0874 "matchPattern": "action order [0-9]+: mpls.*modify.*tc.*7.*pipe",
0875 "matchCount": "1",
0876 "teardown": [
0877 "$TC actions flush action mpls"
0878 ]
0879 },
0880 {
0881 "id": "a70a",
0882 "name": "Add mpls mod action with mpls tc exceeding max (invalid)",
0883 "category": [
0884 "actions",
0885 "mpls"
0886 ],
0887 "setup": [
0888 [
0889 "$TC actions flush action mpls",
0890 0,
0891 1,
0892 255
0893 ]
0894 ],
0895 "cmdUnderTest": "$TC actions add action mpls mod tc 8",
0896 "expExitCode": "255",
0897 "verifyCmd": "$TC actions list action mpls",
0898 "matchPattern": "action order [0-9]+: mpls.*modify.*tc.*4.*pipe",
0899 "matchCount": "0",
0900 "teardown": []
0901 },
0902 {
0903 "id": "6ed5",
0904 "name": "Add mpls mod action with mpls ttl",
0905 "category": [
0906 "actions",
0907 "mpls"
0908 ],
0909 "setup": [
0910 [
0911 "$TC actions flush action mpls",
0912 0,
0913 1,
0914 255
0915 ]
0916 ],
0917 "cmdUnderTest": "$TC actions add action mpls mod ttl 128",
0918 "expExitCode": "0",
0919 "verifyCmd": "$TC actions list action mpls",
0920 "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*128.*pipe",
0921 "matchCount": "1",
0922 "teardown": [
0923 "$TC actions flush action mpls"
0924 ]
0925 },
0926 {
0927 "id": "77c1",
0928 "name": "Add mpls mod action with mpls ttl and cookie",
0929 "category": [
0930 "actions",
0931 "mpls"
0932 ],
0933 "setup": [
0934 [
0935 "$TC actions flush action mpls",
0936 0,
0937 1,
0938 255
0939 ]
0940 ],
0941 "cmdUnderTest": "$TC actions add action mpls mod ttl 128 cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
0942 "expExitCode": "0",
0943 "verifyCmd": "$TC actions list action mpls",
0944 "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*128.*pipe.*ref 1.*cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
0945 "matchCount": "1",
0946 "teardown": [
0947 "$TC actions flush action mpls"
0948 ]
0949 },
0950 {
0951 "id": "b80f",
0952 "name": "Add mpls mod action with mpls max ttl",
0953 "category": [
0954 "actions",
0955 "mpls"
0956 ],
0957 "setup": [
0958 [
0959 "$TC actions flush action mpls",
0960 0,
0961 1,
0962 255
0963 ]
0964 ],
0965 "cmdUnderTest": "$TC actions add action mpls mod ttl 255",
0966 "expExitCode": "0",
0967 "verifyCmd": "$TC actions list action mpls",
0968 "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*255.*pipe",
0969 "matchCount": "1",
0970 "teardown": [
0971 "$TC actions flush action mpls"
0972 ]
0973 },
0974 {
0975 "id": "8864",
0976 "name": "Add mpls mod action with mpls min ttl",
0977 "category": [
0978 "actions",
0979 "mpls"
0980 ],
0981 "setup": [
0982 [
0983 "$TC actions flush action mpls",
0984 0,
0985 1,
0986 255
0987 ]
0988 ],
0989 "cmdUnderTest": "$TC actions add action mpls mod ttl 1",
0990 "expExitCode": "0",
0991 "verifyCmd": "$TC actions list action mpls",
0992 "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*1.*pipe",
0993 "matchCount": "1",
0994 "teardown": [
0995 "$TC actions flush action mpls"
0996 ]
0997 },
0998 {
0999 "id": "6c06",
1000 "name": "Add mpls mod action with mpls ttl of 0 (invalid)",
1001 "category": [
1002 "actions",
1003 "mpls"
1004 ],
1005 "setup": [
1006 [
1007 "$TC actions flush action mpls",
1008 0,
1009 1,
1010 255
1011 ]
1012 ],
1013 "cmdUnderTest": "$TC actions add action mpls mod ttl 0",
1014 "expExitCode": "255",
1015 "verifyCmd": "$TC actions list action mpls",
1016 "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*0.*pipe",
1017 "matchCount": "0",
1018 "teardown": []
1019 },
1020 {
1021 "id": "b5d8",
1022 "name": "Add mpls mod action with mpls ttl exceeding max (invalid)",
1023 "category": [
1024 "actions",
1025 "mpls"
1026 ],
1027 "setup": [
1028 [
1029 "$TC actions flush action mpls",
1030 0,
1031 1,
1032 255
1033 ]
1034 ],
1035 "cmdUnderTest": "$TC actions add action mpls mod ttl 256",
1036 "expExitCode": "255",
1037 "verifyCmd": "$TC actions list action mpls",
1038 "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*256.*pipe",
1039 "matchCount": "0",
1040 "teardown": []
1041 },
1042 {
1043 "id": "451f",
1044 "name": "Add mpls mod action with mpls max bos",
1045 "category": [
1046 "actions",
1047 "mpls"
1048 ],
1049 "setup": [
1050 [
1051 "$TC actions flush action mpls",
1052 0,
1053 1,
1054 255
1055 ]
1056 ],
1057 "cmdUnderTest": "$TC actions add action mpls mod bos 1",
1058 "expExitCode": "0",
1059 "verifyCmd": "$TC actions list action mpls",
1060 "matchPattern": "action order [0-9]+: mpls.*modify.*bos.*1.*pipe",
1061 "matchCount": "1",
1062 "teardown": [
1063 "$TC actions flush action mpls"
1064 ]
1065 },
1066 {
1067 "id": "a1ed",
1068 "name": "Add mpls mod action with mpls min bos",
1069 "category": [
1070 "actions",
1071 "mpls"
1072 ],
1073 "setup": [
1074 [
1075 "$TC actions flush action mpls",
1076 0,
1077 1,
1078 255
1079 ]
1080 ],
1081 "cmdUnderTest": "$TC actions add action mpls mod bos 0",
1082 "expExitCode": "0",
1083 "verifyCmd": "$TC actions list action mpls",
1084 "matchPattern": "action order [0-9]+: mpls.*modify.*bos.*0.*pipe",
1085 "matchCount": "1",
1086 "teardown": [
1087 "$TC actions flush action mpls"
1088 ]
1089 },
1090 {
1091 "id": "3dcf",
1092 "name": "Add mpls mod action with mpls bos exceeding max (invalid)",
1093 "category": [
1094 "actions",
1095 "mpls"
1096 ],
1097 "setup": [
1098 [
1099 "$TC actions flush action mpls",
1100 0,
1101 1,
1102 255
1103 ]
1104 ],
1105 "cmdUnderTest": "$TC actions add action mpls mod bos 2",
1106 "expExitCode": "255",
1107 "verifyCmd": "$TC actions list action mpls",
1108 "matchPattern": "action order [0-9]+: mpls.*modify.*bos.*2.*pipe",
1109 "matchCount": "0",
1110 "teardown": []
1111 },
1112 {
1113 "id": "db7c",
1114 "name": "Add mpls mod action with protocol (invalid)",
1115 "category": [
1116 "actions",
1117 "mpls"
1118 ],
1119 "setup": [
1120 [
1121 "$TC actions flush action mpls",
1122 0,
1123 1,
1124 255
1125 ]
1126 ],
1127 "cmdUnderTest": "$TC actions add action mpls mod protocol ipv4",
1128 "expExitCode": "255",
1129 "verifyCmd": "$TC actions list action mpls",
1130 "matchPattern": "action order [0-9]+: mpls.*modify.*protocol.*ip.*pipe",
1131 "matchCount": "0",
1132 "teardown": []
1133 },
1134 {
1135 "id": "b070",
1136 "name": "Replace existing mpls push action with new ID",
1137 "category": [
1138 "actions",
1139 "mpls"
1140 ],
1141 "setup": [
1142 [
1143 "$TC actions flush action mpls",
1144 0,
1145 1,
1146 255
1147 ],
1148 "$TC actions add action mpls push label 20 pipe index 12"
1149 ],
1150 "cmdUnderTest": "$TC actions replace action mpls push label 30 pipe index 12",
1151 "expExitCode": "0",
1152 "verifyCmd": "$TC actions get action mpls index 12",
1153 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*30.*pipe.*index 12 ref",
1154 "matchCount": "1",
1155 "teardown": [
1156 "$TC actions flush action mpls"
1157 ]
1158 },
1159 {
1160 "id": "95a9",
1161 "name": "Replace existing mpls push action with new label, tc, ttl and cookie",
1162 "category": [
1163 "actions",
1164 "mpls"
1165 ],
1166 "setup": [
1167 [
1168 "$TC actions flush action mpls",
1169 0,
1170 1,
1171 255
1172 ],
1173 "$TC actions add action mpls push label 20 tc 3 ttl 128 index 1 cookie aa11bb22cc33dd44ee55ff66aa11b1b2"
1174 ],
1175 "cmdUnderTest": "$TC actions replace action mpls push label 30 tc 2 ttl 125 pipe index 1 cookie aa11bb22cc33",
1176 "expExitCode": "0",
1177 "verifyCmd": "$TC actions get action mpls index 1",
1178 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*30 tc 2 ttl 125 pipe.*index 1.*cookie aa11bb22cc33",
1179 "matchCount": "1",
1180 "teardown": [
1181 "$TC actions flush action mpls"
1182 ]
1183 },
1184 {
1185 "id": "6cce",
1186 "name": "Delete mpls pop action",
1187 "category": [
1188 "actions",
1189 "mpls"
1190 ],
1191 "setup": [
1192 [
1193 "$TC actions flush action mpls",
1194 0,
1195 1,
1196 255
1197 ],
1198 "$TC actions add action mpls pop protocol ipv4 index 44"
1199 ],
1200 "cmdUnderTest": "$TC actions del action mpls index 44",
1201 "expExitCode": "0",
1202 "verifyCmd": "$TC actions list action mpls",
1203 "matchPattern": "action order [0-9]+: mpls.*pop.*index 44 ref",
1204 "matchCount": "0",
1205 "teardown": []
1206 },
1207 {
1208 "id": "d138",
1209 "name": "Flush mpls actions",
1210 "category": [
1211 "actions",
1212 "mpls"
1213 ],
1214 "setup": [
1215 [
1216 "$TC actions flush action mpls",
1217 0,
1218 1,
1219 255
1220 ],
1221 "$TC actions add action mpls push label 10 index 10",
1222 "$TC actions add action mpls push label 20 index 20",
1223 "$TC actions add action mpls push label 30 index 30",
1224 "$TC actions add action mpls push label 40 index 40"
1225 ],
1226 "cmdUnderTest": "$TC actions flush action mpls",
1227 "expExitCode": "0",
1228 "verifyCmd": "$TC actions list action mpls",
1229 "matchPattern": "action order [0-9]+: mpls.*push.*",
1230 "matchCount": "0",
1231 "teardown": []
1232 }
1233 ]