0001 [
0002 {
0003 "id": "2b11",
0004 "name": "Add tunnel_key set action with mandatory parameters",
0005 "category": [
0006 "actions",
0007 "tunnel_key"
0008 ],
0009 "setup": [
0010 [
0011 "$TC actions flush action tunnel_key",
0012 0,
0013 1,
0014 255
0015 ]
0016 ],
0017 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 20.20.20.2 id 1",
0018 "expExitCode": "0",
0019 "verifyCmd": "$TC actions list action tunnel_key",
0020 "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 10.10.10.1.*dst_ip 20.20.20.2.*key_id 1",
0021 "matchCount": "1",
0022 "teardown": [
0023 "$TC actions flush action tunnel_key"
0024 ]
0025 },
0026 {
0027 "id": "dc6b",
0028 "name": "Add tunnel_key set action with missing mandatory src_ip parameter",
0029 "category": [
0030 "actions",
0031 "tunnel_key"
0032 ],
0033 "setup": [
0034 [
0035 "$TC actions flush action tunnel_key",
0036 0,
0037 1,
0038 255
0039 ]
0040 ],
0041 "cmdUnderTest": "$TC actions add action tunnel_key set dst_ip 20.20.20.2 id 100",
0042 "expExitCode": "255",
0043 "verifyCmd": "$TC actions list action tunnel_key",
0044 "matchPattern": "action order [0-9]+: tunnel_key set.*dst_ip 20.20.20.2.*key_id 100",
0045 "matchCount": "0",
0046 "teardown": [
0047 [
0048 "$TC actions flush action tunnel_key",
0049 0,
0050 1,
0051 255
0052 ]
0053 ]
0054 },
0055 {
0056 "id": "7f25",
0057 "name": "Add tunnel_key set action with missing mandatory dst_ip parameter",
0058 "category": [
0059 "actions",
0060 "tunnel_key"
0061 ],
0062 "setup": [
0063 [
0064 "$TC actions flush action tunnel_key",
0065 0,
0066 1,
0067 255
0068 ]
0069 ],
0070 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 10.10.10.1 id 100",
0071 "expExitCode": "255",
0072 "verifyCmd": "$TC actions list action tunnel_key",
0073 "matchPattern": "action order [0-9]+: tunnel_key set.*src_ip 10.10.10.1.*key_id 100",
0074 "matchCount": "0",
0075 "teardown": [
0076 [
0077 "$TC actions flush action tunnel_key",
0078 0,
0079 1,
0080 255
0081 ]
0082 ]
0083 },
0084 {
0085 "id": "a5e0",
0086 "name": "Add tunnel_key set action with invalid src_ip parameter",
0087 "category": [
0088 "actions",
0089 "tunnel_key"
0090 ],
0091 "setup": [
0092 [
0093 "$TC actions flush action tunnel_key",
0094 0,
0095 1,
0096 255
0097 ]
0098 ],
0099 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 300.168.100.1 dst_ip 192.168.200.1 id 7 index 1",
0100 "expExitCode": "1",
0101 "verifyCmd": "$TC actions get action tunnel_key index 1",
0102 "matchPattern": "action order [0-9]+: tunnel_key set.*src_ip 300.168.100.1.*dst_ip 192.168.200.1.*key_id 7.*index 1 ref",
0103 "matchCount": "0",
0104 "teardown": [
0105 [
0106 "$TC actions flush action tunnel_key",
0107 0,
0108 1,
0109 255
0110 ]
0111 ]
0112 },
0113 {
0114 "id": "eaa8",
0115 "name": "Add tunnel_key set action with invalid dst_ip parameter",
0116 "category": [
0117 "actions",
0118 "tunnel_key"
0119 ],
0120 "setup": [
0121 [
0122 "$TC actions flush action tunnel_key",
0123 0,
0124 1,
0125 255
0126 ]
0127 ],
0128 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 192.168.100.1 dst_ip 192.168.800.1 id 10 index 11",
0129 "expExitCode": "1",
0130 "verifyCmd": "$TC actions get action tunnel_key index 11",
0131 "matchPattern": "action order [0-9]+: tunnel_key set.*src_ip 192.168.100.1.*dst_ip 192.168.800.1.*key_id 10.*index 11 ref",
0132 "matchCount": "0",
0133 "teardown": [
0134 [
0135 "$TC actions flush action tunnel_key",
0136 0,
0137 1,
0138 255
0139 ]
0140 ]
0141 },
0142 {
0143 "id": "3b09",
0144 "name": "Add tunnel_key set action with invalid id parameter",
0145 "category": [
0146 "actions",
0147 "tunnel_key"
0148 ],
0149 "setup": [
0150 [
0151 "$TC actions flush action tunnel_key",
0152 0,
0153 1,
0154 255
0155 ]
0156 ],
0157 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 112233445566778899 index 1",
0158 "expExitCode": "255",
0159 "verifyCmd": "$TC actions get action tunnel_key index 1",
0160 "matchPattern": "action order [0-9]+: tunnel_key set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 112233445566778899.*index 1 ref",
0161 "matchCount": "0",
0162 "teardown": [
0163 [
0164 "$TC actions flush action tunnel_key",
0165 0,
0166 1,
0167 255
0168 ]
0169 ]
0170 },
0171 {
0172 "id": "9625",
0173 "name": "Add tunnel_key set action with invalid dst_port parameter",
0174 "category": [
0175 "actions",
0176 "tunnel_key"
0177 ],
0178 "setup": [
0179 [
0180 "$TC actions flush action tunnel_key",
0181 0,
0182 1,
0183 255
0184 ]
0185 ],
0186 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 11 dst_port 998877 index 1",
0187 "expExitCode": "255",
0188 "verifyCmd": "$TC actions get action tunnel_key index 1",
0189 "matchPattern": "action order [0-9]+: tunnel_key set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 11.*dst_port 998877.*index 1 ref",
0190 "matchCount": "0",
0191 "teardown": [
0192 [
0193 "$TC actions flush action tunnel_key",
0194 0,
0195 1,
0196 255
0197 ]
0198 ]
0199 },
0200 {
0201 "id": "05af",
0202 "name": "Add tunnel_key set action with optional dst_port parameter",
0203 "category": [
0204 "actions",
0205 "tunnel_key"
0206 ],
0207 "setup": [
0208 [
0209 "$TC actions flush action tunnel_key",
0210 0,
0211 1,
0212 255
0213 ]
0214 ],
0215 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 192.168.100.1 dst_ip 192.168.200.1 id 789 dst_port 4000 index 10",
0216 "expExitCode": "0",
0217 "verifyCmd": "$TC actions get action tunnel_key index 10",
0218 "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 192.168.100.1.*dst_ip 192.168.200.1.*key_id 789.*dst_port 4000.*index 10 ref",
0219 "matchCount": "1",
0220 "teardown": [
0221 "$TC actions flush action tunnel_key"
0222 ]
0223 },
0224 {
0225 "id": "da80",
0226 "name": "Add tunnel_key set action with index at 32-bit maximum",
0227 "category": [
0228 "actions",
0229 "tunnel_key"
0230 ],
0231 "setup": [
0232 [
0233 "$TC actions flush action tunnel_key",
0234 0,
0235 1,
0236 255
0237 ]
0238 ],
0239 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 11 index 4294967295",
0240 "expExitCode": "0",
0241 "verifyCmd": "$TC actions get action tunnel_key index 4294967295",
0242 "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*id 11.*index 4294967295 ref",
0243 "matchCount": "1",
0244 "teardown": [
0245 "$TC actions flush action tunnel_key"
0246 ]
0247 },
0248 {
0249 "id": "d407",
0250 "name": "Add tunnel_key set action with index exceeding 32-bit maximum",
0251 "category": [
0252 "actions",
0253 "tunnel_key"
0254 ],
0255 "setup": [
0256 [
0257 "$TC actions flush action tunnel_key",
0258 0,
0259 1,
0260 255
0261 ]
0262 ],
0263 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 11 index 4294967295678",
0264 "expExitCode": "255",
0265 "verifyCmd": "$TC actions get action tunnel_key index 4294967295678",
0266 "matchPattern": "action order [0-9]+: tunnel_key set.*index 4294967295678 ref",
0267 "matchCount": "0",
0268 "teardown": [
0269 [
0270 "$TC actions flush action tunnel_key",
0271 0,
0272 1,
0273 255
0274 ]
0275 ]
0276 },
0277 {
0278 "id": "5cba",
0279 "name": "Add tunnel_key set action with id value at 32-bit maximum",
0280 "category": [
0281 "actions",
0282 "tunnel_key"
0283 ],
0284 "setup": [
0285 [
0286 "$TC actions flush action tunnel_key",
0287 0,
0288 1,
0289 255
0290 ]
0291 ],
0292 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 4294967295 index 1",
0293 "expExitCode": "0",
0294 "verifyCmd": "$TC actions get action tunnel_key index 1",
0295 "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 4294967295.*index 1",
0296 "matchCount": "1",
0297 "teardown": [
0298 "$TC actions flush action tunnel_key"
0299 ]
0300 },
0301 {
0302 "id": "e84a",
0303 "name": "Add tunnel_key set action with id value exceeding 32-bit maximum",
0304 "category": [
0305 "actions",
0306 "tunnel_key"
0307 ],
0308 "setup": [
0309 [
0310 "$TC actions flush action tunnel_key",
0311 0,
0312 1,
0313 255
0314 ]
0315 ],
0316 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 42949672955 index 1",
0317 "expExitCode": "255",
0318 "verifyCmd": "$TC actions get action tunnel_key index 4294967295",
0319 "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 42949672955.*index 1",
0320 "matchCount": "0",
0321 "teardown": [
0322 [
0323 "$TC actions flush action tunnel_key",
0324 0,
0325 1,
0326 255
0327 ]
0328 ]
0329 },
0330 {
0331 "id": "9c19",
0332 "name": "Add tunnel_key set action with dst_port value at 16-bit maximum",
0333 "category": [
0334 "actions",
0335 "tunnel_key"
0336 ],
0337 "setup": [
0338 [
0339 "$TC actions flush action tunnel_key",
0340 0,
0341 1,
0342 255
0343 ]
0344 ],
0345 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 429 dst_port 65535 index 1",
0346 "expExitCode": "0",
0347 "verifyCmd": "$TC actions get action tunnel_key index 1",
0348 "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 429.*dst_port 65535.*index 1",
0349 "matchCount": "1",
0350 "teardown": [
0351 "$TC actions flush action tunnel_key"
0352 ]
0353 },
0354 {
0355 "id": "3bd9",
0356 "name": "Add tunnel_key set action with dst_port value exceeding 16-bit maximum",
0357 "category": [
0358 "actions",
0359 "tunnel_key"
0360 ],
0361 "setup": [
0362 [
0363 "$TC actions flush action tunnel_key",
0364 0,
0365 1,
0366 255
0367 ]
0368 ],
0369 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 429 dst_port 65535789 index 1",
0370 "expExitCode": "255",
0371 "verifyCmd": "$TC actions get action tunnel_key index 1",
0372 "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 429.*dst_port 65535789.*index 1",
0373 "matchCount": "0",
0374 "teardown": [
0375 [
0376 "$TC actions flush action tunnel_key",
0377 0,
0378 1,
0379 255
0380 ]
0381 ]
0382 },
0383 {
0384 "id": "68e2",
0385 "name": "Add tunnel_key unset action",
0386 "category": [
0387 "actions",
0388 "tunnel_key"
0389 ],
0390 "setup": [
0391 [
0392 "$TC actions flush action tunnel_key",
0393 0,
0394 1,
0395 255
0396 ]
0397 ],
0398 "cmdUnderTest": "$TC actions add action tunnel_key unset index 1",
0399 "expExitCode": "0",
0400 "verifyCmd": "$TC actions get action tunnel_key index 1",
0401 "matchPattern": "action order [0-9]+: tunnel_key.*unset.*index 1 ref",
0402 "matchCount": "1",
0403 "teardown": [
0404 "$TC actions flush action tunnel_key"
0405 ]
0406 },
0407 {
0408 "id": "6192",
0409 "name": "Add tunnel_key unset continue action",
0410 "category": [
0411 "actions",
0412 "tunnel_key"
0413 ],
0414 "setup": [
0415 [
0416 "$TC actions flush action tunnel_key",
0417 0,
0418 1,
0419 255
0420 ]
0421 ],
0422 "cmdUnderTest": "$TC actions add action tunnel_key unset continue index 1",
0423 "expExitCode": "0",
0424 "verifyCmd": "$TC actions get action tunnel_key index 1",
0425 "matchPattern": "action order [0-9]+: tunnel_key.*unset continue.*index 1 ref",
0426 "matchCount": "1",
0427 "teardown": [
0428 "$TC actions flush action tunnel_key"
0429 ]
0430 },
0431 {
0432 "id": "061d",
0433 "name": "Add tunnel_key set continue action with cookie",
0434 "category": [
0435 "actions",
0436 "tunnel_key"
0437 ],
0438 "setup": [
0439 [
0440 "$TC actions flush action tunnel_key",
0441 0,
0442 1,
0443 255
0444 ]
0445 ],
0446 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 192.168.10.1 dst_ip 192.168.20.2 id 123 continue index 1 cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
0447 "expExitCode": "0",
0448 "verifyCmd": "$TC actions get action tunnel_key index 1",
0449 "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 192.168.10.1.*dst_ip 192.168.20.2.*key_id 123.*csum continue.*index 1.*cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
0450 "matchCount": "1",
0451 "teardown": [
0452 "$TC actions flush action tunnel_key"
0453 ]
0454 },
0455 {
0456 "id": "8acb",
0457 "name": "Add tunnel_key set continue action with invalid cookie",
0458 "category": [
0459 "actions",
0460 "tunnel_key"
0461 ],
0462 "setup": [
0463 [
0464 "$TC actions flush action tunnel_key",
0465 0,
0466 1,
0467 255
0468 ]
0469 ],
0470 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 192.168.10.1 dst_ip 192.168.20.2 id 123 continue index 1 cookie aa11bb22cc33dd44ee55ff66aa11b1b2777888",
0471 "expExitCode": "255",
0472 "verifyCmd": "$TC actions get action tunnel_key index 1",
0473 "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 192.168.10.1.*dst_ip 192.168.20.2.*key_id 123.*csum continue.*index 1.*cookie aa11bb22cc33dd44ee55ff66aa11b1b2777888",
0474 "matchCount": "0",
0475 "teardown": [
0476 [
0477 "$TC actions flush action tunnel_key",
0478 0,
0479 1,
0480 255
0481 ]
0482 ]
0483 },
0484 {
0485 "id": "a07e",
0486 "name": "Add tunnel_key action with no set/unset command specified",
0487 "category": [
0488 "actions",
0489 "tunnel_key"
0490 ],
0491 "setup": [
0492 [
0493 "$TC actions flush action tunnel_key",
0494 0,
0495 1,
0496 255
0497 ]
0498 ],
0499 "cmdUnderTest": "$TC actions add action tunnel_key src_ip 10.10.10.1 dst_ip 20.20.20.2 id 1",
0500 "expExitCode": "255",
0501 "verifyCmd": "$TC actions get action tunnel_key index 1",
0502 "matchPattern": "action order [0-9]+: tunnel_key.*src_ip 10.10.10.1.*dst_ip 20.20.20.2.*key_id 1",
0503 "matchCount": "0",
0504 "teardown": [
0505 [
0506 "$TC actions flush action tunnel_key",
0507 0,
0508 1,
0509 255
0510 ]
0511 ]
0512 },
0513 {
0514 "id": "b227",
0515 "name": "Add tunnel_key action with csum option",
0516 "category": [
0517 "actions",
0518 "tunnel_key"
0519 ],
0520 "setup": [
0521 [
0522 "$TC actions flush action tunnel_key",
0523 0,
0524 1,
0525 255
0526 ]
0527 ],
0528 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 20.20.20.2 id 1 csum index 99",
0529 "expExitCode": "0",
0530 "verifyCmd": "$TC actions get action tunnel_key index 99",
0531 "matchPattern": "action order [0-9]+: tunnel_key.*src_ip 10.10.10.1.*dst_ip 20.20.20.2.*key_id 1.*csum pipe.*index 99",
0532 "matchCount": "1",
0533 "teardown": [
0534 "$TC actions flush action tunnel_key"
0535 ]
0536 },
0537 {
0538 "id": "58a7",
0539 "name": "Add tunnel_key action with nocsum option",
0540 "category": [
0541 "actions",
0542 "tunnel_key"
0543 ],
0544 "setup": [
0545 [
0546 "$TC actions flush action tunnel_key",
0547 0,
0548 1,
0549 255
0550 ]
0551 ],
0552 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 10.10.10.2 id 7823 nocsum index 234",
0553 "expExitCode": "0",
0554 "verifyCmd": "$TC actions get action tunnel_key index 234",
0555 "matchPattern": "action order [0-9]+: tunnel_key.*src_ip 10.10.10.1.*dst_ip 10.10.10.2.*key_id 7823.*nocsum pipe.*index 234",
0556 "matchCount": "1",
0557 "teardown": [
0558 "$TC actions flush action tunnel_key"
0559 ]
0560 },
0561 {
0562 "id": "2575",
0563 "name": "Add tunnel_key action with not-supported parameter",
0564 "category": [
0565 "actions",
0566 "tunnel_key"
0567 ],
0568 "setup": [
0569 [
0570 "$TC actions flush action tunnel_key",
0571 0,
0572 1,
0573 255
0574 ]
0575 ],
0576 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 10.10.10.2 id 7 foobar 999 index 4",
0577 "expExitCode": "255",
0578 "verifyCmd": "$TC actions get action tunnel_key index 4",
0579 "matchPattern": "action order [0-9]+: tunnel_key.*src_ip 10.10.10.1.*dst_ip 10.10.10.2.*key_id 7.*foobar 999.*index 4",
0580 "matchCount": "0",
0581 "teardown": [
0582 [
0583 "$TC actions flush action tunnel_key",
0584 0,
0585 1,
0586 255
0587 ]
0588 ]
0589 },
0590 {
0591 "id": "7a88",
0592 "name": "Add tunnel_key action with cookie parameter",
0593 "category": [
0594 "actions",
0595 "tunnel_key"
0596 ],
0597 "setup": [
0598 [
0599 "$TC actions flush action tunnel_key",
0600 0,
0601 1,
0602 255
0603 ]
0604 ],
0605 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 10.10.10.2 id 7 index 4 cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
0606 "expExitCode": "0",
0607 "verifyCmd": "$TC actions get action tunnel_key index 4",
0608 "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 10.10.10.1.*dst_ip 10.10.10.2.*key_id 7.*csum pipe.*index 4 ref.*cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
0609 "matchCount": "1",
0610 "teardown": [
0611 "$TC actions flush action tunnel_key"
0612 ]
0613 },
0614 {
0615 "id": "4f20",
0616 "name": "Add tunnel_key action with a single geneve option parameter",
0617 "category": [
0618 "actions",
0619 "tunnel_key"
0620 ],
0621 "setup": [
0622 [
0623 "$TC actions flush action tunnel_key",
0624 0,
0625 1,
0626 255
0627 ]
0628 ],
0629 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 42 dst_port 6081 geneve_opts 0102:80:00880022 index 1",
0630 "expExitCode": "0",
0631 "verifyCmd": "$TC actions get action tunnel_key index 1",
0632 "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 42.*dst_port 6081.*geneve_opt[s]? 0102:80:00880022.*index 1",
0633 "matchCount": "1",
0634 "teardown": [
0635 "$TC actions flush action tunnel_key"
0636 ]
0637 },
0638 {
0639 "id": "e33d",
0640 "name": "Add tunnel_key action with multiple geneve options parameter",
0641 "category": [
0642 "actions",
0643 "tunnel_key"
0644 ],
0645 "setup": [
0646 [
0647 "$TC actions flush action tunnel_key",
0648 0,
0649 1,
0650 255
0651 ]
0652 ],
0653 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 42 dst_port 6081 geneve_opts 0102:80:00880022,0408:42:0040007611223344,0111:02:1020304011223344 index 1",
0654 "expExitCode": "0",
0655 "verifyCmd": "$TC actions get action tunnel_key index 1",
0656 "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 42.*dst_port 6081.*geneve_opt[s]? 0102:80:00880022,0408:42:0040007611223344,0111:02:1020304011223344.*index 1",
0657 "matchCount": "1",
0658 "teardown": [
0659 "$TC actions flush action tunnel_key"
0660 ]
0661 },
0662 {
0663 "id": "0778",
0664 "name": "Add tunnel_key action with invalid class geneve option parameter",
0665 "category": [
0666 "actions",
0667 "tunnel_key"
0668 ],
0669 "setup": [
0670 [
0671 "$TC actions flush action tunnel_key",
0672 0,
0673 1,
0674 255
0675 ]
0676 ],
0677 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 42 dst_port 6081 geneve_opts 824212:80:00880022 index 1",
0678 "expExitCode": "255",
0679 "verifyCmd": "$TC actions get action tunnel_key index 1",
0680 "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 42.*dst_port 6081.*geneve_opt[s]? 824212:80:00880022.*index 1",
0681 "matchCount": "0",
0682 "teardown": [
0683 "$TC actions flush action tunnel_key"
0684 ]
0685 },
0686 {
0687 "id": "4ae8",
0688 "name": "Add tunnel_key action with invalid type geneve option parameter",
0689 "category": [
0690 "actions",
0691 "tunnel_key"
0692 ],
0693 "setup": [
0694 [
0695 "$TC actions flush action tunnel_key",
0696 0,
0697 1,
0698 255
0699 ]
0700 ],
0701 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 42 dst_port 6081 geneve_opts 0102:4224:00880022 index 1",
0702 "expExitCode": "255",
0703 "verifyCmd": "$TC actions get action tunnel_key index 1",
0704 "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 42.*dst_port 6081.*geneve_opt[s]? 0102:4224:00880022.*index 1",
0705 "matchCount": "0",
0706 "teardown": [
0707 "$TC actions flush action tunnel_key"
0708 ]
0709 },
0710 {
0711 "id": "4039",
0712 "name": "Add tunnel_key action with short data length geneve option parameter",
0713 "category": [
0714 "actions",
0715 "tunnel_key"
0716 ],
0717 "setup": [
0718 [
0719 "$TC actions flush action tunnel_key",
0720 0,
0721 1,
0722 255
0723 ]
0724 ],
0725 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 42 dst_port 6081 geneve_opts 0102:80:4288 index 1",
0726 "expExitCode": "255",
0727 "verifyCmd": "$TC actions get action tunnel_key index 1",
0728 "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 42.*dst_port 6081.*geneve_opt[s]? 0102:80:4288.*index 1",
0729 "matchCount": "0",
0730 "teardown": [
0731 "$TC actions flush action tunnel_key"
0732 ]
0733 },
0734 {
0735 "id": "26a6",
0736 "name": "Add tunnel_key action with non-multiple of 4 data length geneve option parameter",
0737 "category": [
0738 "actions",
0739 "tunnel_key"
0740 ],
0741 "setup": [
0742 [
0743 "$TC actions flush action tunnel_key",
0744 0,
0745 1,
0746 255
0747 ]
0748 ],
0749 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 42 dst_port 6081 geneve_opts 0102:80:4288428822 index 1",
0750 "expExitCode": "255",
0751 "verifyCmd": "$TC actions get action tunnel_key index 1",
0752 "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 42.*dst_port 6081.*geneve_opt[s]? 0102:80:4288428822.*index 1",
0753 "matchCount": "0",
0754 "teardown": [
0755 "$TC actions flush action tunnel_key"
0756 ]
0757 },
0758 {
0759 "id": "f44d",
0760 "name": "Add tunnel_key action with incomplete geneve options parameter",
0761 "category": [
0762 "actions",
0763 "tunnel_key"
0764 ],
0765 "setup": [
0766 [
0767 "$TC actions flush action tunnel_key",
0768 0,
0769 1,
0770 255
0771 ]
0772 ],
0773 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 42 dst_port 6081 geneve_opts 0102:80:00880022,0408:42: index 1",
0774 "expExitCode": "255",
0775 "verifyCmd": "$TC actions get action tunnel_key index 1",
0776 "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 42.*dst_port 6081.*geneve_opt[s]? 0102:80:00880022,0408:42:.*index 1",
0777 "matchCount": "0",
0778 "teardown": [
0779 "$TC actions flush action tunnel_key"
0780 ]
0781 },
0782 {
0783 "id": "7afc",
0784 "name": "Replace tunnel_key set action with all parameters",
0785 "category": [
0786 "actions",
0787 "tunnel_key"
0788 ],
0789 "setup": [
0790 [
0791 "$TC actions flush action tunnel_key",
0792 0,
0793 1,
0794 255
0795 ],
0796 "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 20.20.20.2 dst_port 3128 csum id 1 index 1"
0797 ],
0798 "cmdUnderTest": "$TC actions replace action tunnel_key set src_ip 11.11.11.1 dst_ip 21.21.21.2 dst_port 3129 nocsum id 11 index 1",
0799 "expExitCode": "0",
0800 "verifyCmd": "$TC actions get action tunnel_key index 1",
0801 "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 11.11.11.1.*dst_ip 21.21.21.2.*key_id 11.*dst_port 3129.*nocsum pipe.*index 1",
0802 "matchCount": "1",
0803 "teardown": [
0804 "$TC actions flush action tunnel_key"
0805 ]
0806 },
0807 {
0808 "id": "364d",
0809 "name": "Replace tunnel_key set action with all parameters and cookie",
0810 "category": [
0811 "actions",
0812 "tunnel_key"
0813 ],
0814 "setup": [
0815 [
0816 "$TC actions flush action tunnel_key",
0817 0,
0818 1,
0819 255
0820 ],
0821 "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 20.20.20.2 dst_port 3128 nocsum id 1 index 1 cookie 123456"
0822 ],
0823 "cmdUnderTest": "$TC actions replace action tunnel_key set src_ip 11.11.11.1 dst_ip 21.21.21.2 dst_port 3129 id 11 csum reclassify index 1 cookie 123456",
0824 "expExitCode": "0",
0825 "verifyCmd": "$TC actions get action tunnel_key index 1",
0826 "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 11.11.11.1.*dst_ip 21.21.21.2.*key_id 11.*dst_port 3129.*csum reclassify.*index 1.*cookie 123456",
0827 "matchCount": "1",
0828 "teardown": [
0829 "$TC actions flush action tunnel_key"
0830 ]
0831 },
0832 {
0833 "id": "937c",
0834 "name": "Fetch all existing tunnel_key actions",
0835 "category": [
0836 "actions",
0837 "tunnel_key"
0838 ],
0839 "setup": [
0840 [
0841 "$TC actions flush action tunnel_key",
0842 0,
0843 1,
0844 255
0845 ],
0846 "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 20.20.20.2 dst_port 3128 nocsum id 1 pipe index 1",
0847 "$TC actions add action tunnel_key set src_ip 11.10.10.1 dst_ip 21.20.20.2 dst_port 3129 csum id 2 jump 10 index 2",
0848 "$TC actions add action tunnel_key set src_ip 12.10.10.1 dst_ip 22.20.20.2 dst_port 3130 csum id 3 pass index 3",
0849 "$TC actions add action tunnel_key set src_ip 13.10.10.1 dst_ip 23.20.20.2 dst_port 3131 nocsum id 4 continue index 4"
0850 ],
0851 "cmdUnderTest": "$TC actions list action tunnel_key",
0852 "expExitCode": "0",
0853 "verifyCmd": "$TC actions list action tunnel_key",
0854 "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 10.10.10.1.*dst_ip 20.20.20.2.*key_id 1.*dst_port 3128.*nocsum pipe.*index 1.*set.*src_ip 11.10.10.1.*dst_ip 21.20.20.2.*key_id 2.*dst_port 3129.*csum jump 10.*index 2.*set.*src_ip 12.10.10.1.*dst_ip 22.20.20.2.*key_id 3.*dst_port 3130.*csum pass.*index 3.*set.*src_ip 13.10.10.1.*dst_ip 23.20.20.2.*key_id 4.*dst_port 3131.*nocsum continue.*index 4",
0855 "matchCount": "1",
0856 "teardown": [
0857 "$TC actions flush action tunnel_key"
0858 ]
0859 },
0860 {
0861 "id": "6783",
0862 "name": "Flush all existing tunnel_key actions",
0863 "category": [
0864 "actions",
0865 "tunnel_key"
0866 ],
0867 "setup": [
0868 [
0869 "$TC actions flush action tunnel_key",
0870 0,
0871 1,
0872 255
0873 ],
0874 "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 20.20.20.2 dst_port 3128 nocsum id 1 pipe index 1",
0875 "$TC actions add action tunnel_key set src_ip 11.10.10.1 dst_ip 21.20.20.2 dst_port 3129 csum id 2 reclassify index 2",
0876 "$TC actions add action tunnel_key set src_ip 12.10.10.1 dst_ip 22.20.20.2 dst_port 3130 csum id 3 pass index 3",
0877 "$TC actions add action tunnel_key set src_ip 13.10.10.1 dst_ip 23.20.20.2 dst_port 3131 nocsum id 4 continue index 4"
0878 ],
0879 "cmdUnderTest": "$TC actions flush action tunnel_key",
0880 "expExitCode": "0",
0881 "verifyCmd": "$TC actions list action tunnel_key",
0882 "matchPattern": "action order [0-9]+:.*",
0883 "matchCount": "0",
0884 "teardown": [
0885 "$TC actions flush action tunnel_key"
0886 ]
0887 },
0888 {
0889 "id": "8242",
0890 "name": "Replace tunnel_key set action with invalid goto chain",
0891 "category": [
0892 "actions",
0893 "tunnel_key"
0894 ],
0895 "setup": [
0896 [
0897 "$TC actions flush action tunnel_key",
0898 0,
0899 1,
0900 255
0901 ],
0902 "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 20.20.20.2 dst_port 3128 nocsum id 1 pass index 90"
0903 ],
0904 "cmdUnderTest": "$TC actions replace action tunnel_key set src_ip 10.10.10.2 dst_ip 20.20.20.1 dst_port 3129 id 2 csum goto chain 42 index 90 cookie c1a0c1a0",
0905 "expExitCode": "255",
0906 "verifyCmd": "$TC actions get action tunnel_key index 90",
0907 "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 10.10.10.1.*dst_ip 20.20.20.2.*key_id 1.*dst_port 3128.*csum pass.*index 90 ref",
0908 "matchCount": "1",
0909 "teardown": [
0910 "$TC actions flush action tunnel_key"
0911 ]
0912 },
0913 {
0914 "id": "0cd2",
0915 "name": "Add tunnel_key set action with no_percpu flag",
0916 "category": [
0917 "actions",
0918 "tunnel_key"
0919 ],
0920 "setup": [
0921 [
0922 "$TC actions flush action tunnel_key",
0923 0,
0924 1,
0925 255
0926 ]
0927 ],
0928 "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 20.20.20.2 id 1 no_percpu",
0929 "expExitCode": "0",
0930 "verifyCmd": "$TC actions list action tunnel_key",
0931 "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 10.10.10.1.*dst_ip 20.20.20.2.*key_id 1.*no_percpu",
0932 "matchCount": "1",
0933 "teardown": [
0934 "$TC actions flush action tunnel_key"
0935 ]
0936 }
0937 ]