0001 [
0002 {
0003 "id": "49aa",
0004 "name": "Add valid basic police action",
0005 "category": [
0006 "actions",
0007 "police"
0008 ],
0009 "setup": [
0010 [
0011 "$TC actions flush action police",
0012 0,
0013 1,
0014 255
0015 ]
0016 ],
0017 "cmdUnderTest": "$TC actions add action police rate 1kbit burst 10k index 1",
0018 "expExitCode": "0",
0019 "verifyCmd": "$TC actions ls action police",
0020 "matchPattern": "action order [0-9]*: police 0x1 rate 1Kbit burst 10Kb",
0021 "matchCount": "1",
0022 "teardown": [
0023 "$TC actions flush action police"
0024 ]
0025 },
0026 {
0027 "id": "3abe",
0028 "name": "Add police action with duplicate index",
0029 "category": [
0030 "actions",
0031 "police"
0032 ],
0033 "setup": [
0034 [
0035 "$TC actions flush action police",
0036 0,
0037 1,
0038 255
0039 ],
0040 "$TC actions add action police rate 4Mbit burst 120k index 9"
0041 ],
0042 "cmdUnderTest": "$TC actions add action police rate 8kbit burst 24k index 9",
0043 "expExitCode": "255",
0044 "verifyCmd": "$TC actions ls action police",
0045 "matchPattern": "action order [0-9]*: police 0x9",
0046 "matchCount": "1",
0047 "teardown": [
0048 "$TC actions flush action police"
0049 ]
0050 },
0051 {
0052 "id": "49fa",
0053 "name": "Add valid police action with mtu",
0054 "category": [
0055 "actions",
0056 "police"
0057 ],
0058 "setup": [
0059 [
0060 "$TC actions flush action police",
0061 0,
0062 1,
0063 255
0064 ]
0065 ],
0066 "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 1k index 98",
0067 "expExitCode": "0",
0068 "verifyCmd": "$TC actions get action police index 98",
0069 "matchPattern": "action order [0-9]*: police 0x62 rate 90Kbit burst 10Kb mtu 1Kb",
0070 "matchCount": "1",
0071 "teardown": [
0072 "$TC actions flush action police"
0073 ]
0074 },
0075 {
0076 "id": "7943",
0077 "name": "Add valid police action with peakrate",
0078 "category": [
0079 "actions",
0080 "police"
0081 ],
0082 "setup": [
0083 [
0084 "$TC actions flush action police",
0085 0,
0086 1,
0087 255
0088 ]
0089 ],
0090 "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 2kb peakrate 100kbit index 3",
0091 "expExitCode": "0",
0092 "verifyCmd": "$TC actions ls action police",
0093 "matchPattern": "action order [0-9]*: police 0x3 rate 90Kbit burst 10Kb mtu 2Kb peakrate 100Kbit",
0094 "matchCount": "1",
0095 "teardown": [
0096 "$TC actions flush action police"
0097 ]
0098 },
0099 {
0100 "id": "055e",
0101 "name": "Add police action with peakrate and no mtu",
0102 "category": [
0103 "actions",
0104 "police"
0105 ],
0106 "setup": [
0107 [
0108 "$TC actions flush action police",
0109 0,
0110 1,
0111 255
0112 ]
0113 ],
0114 "cmdUnderTest": "$TC actions add action police rate 5kbit burst 6kb peakrate 10kbit index 9",
0115 "expExitCode": "255",
0116 "verifyCmd": "$TC actions ls action police",
0117 "matchPattern": "action order [0-9]*: police 0x9 rate 5Kb burst 10Kb",
0118 "matchCount": "0",
0119 "teardown": [
0120 "$TC actions flush action police"
0121 ]
0122 },
0123 {
0124 "id": "f057",
0125 "name": "Add police action with valid overhead",
0126 "category": [
0127 "actions",
0128 "police"
0129 ],
0130 "setup": [
0131 [
0132 "$TC actions flush action police",
0133 0,
0134 1,
0135 255
0136 ]
0137 ],
0138 "cmdUnderTest": "$TC actions add action police rate 1mbit burst 100k overhead 64 index 64",
0139 "expExitCode": "0",
0140 "verifyCmd": "$TC actions get action police index 64",
0141 "matchPattern": "action order [0-9]*: police 0x40 rate 1Mbit burst 100Kb mtu 2Kb action reclassify overhead 64b",
0142 "matchCount": "1",
0143 "teardown": [
0144 "$TC actions flush action police"
0145 ]
0146 },
0147 {
0148 "id": "7ffb",
0149 "name": "Add police action with ethernet linklayer type",
0150 "category": [
0151 "actions",
0152 "police"
0153 ],
0154 "setup": [
0155 [
0156 "$TC actions flush action police",
0157 0,
0158 1,
0159 255
0160 ]
0161 ],
0162 "cmdUnderTest": "$TC actions add action police rate 2mbit burst 200k linklayer ethernet index 8",
0163 "expExitCode": "0",
0164 "verifyCmd": "$TC actions show action police",
0165 "matchPattern": "action order [0-9]*: police 0x8 rate 2Mbit burst 200Kb mtu 2Kb action reclassify overhead 0b",
0166 "matchCount": "1",
0167 "teardown": [
0168 "$TC actions flush action police"
0169 ]
0170 },
0171 {
0172 "id": "3dda",
0173 "name": "Add police action with atm linklayer type",
0174 "category": [
0175 "actions",
0176 "police"
0177 ],
0178 "setup": [
0179 [
0180 "$TC actions flush action police",
0181 0,
0182 1,
0183 255
0184 ]
0185 ],
0186 "cmdUnderTest": "$TC actions add action police rate 2mbit burst 200k linklayer atm index 8",
0187 "expExitCode": "0",
0188 "verifyCmd": "$TC actions show action police",
0189 "matchPattern": "action order [0-9]*: police 0x8 rate 2Mbit burst 200Kb mtu 2Kb action reclassify overhead 0b linklayer atm",
0190 "matchCount": "1",
0191 "teardown": [
0192 "$TC actions flush action police"
0193 ]
0194 },
0195 {
0196 "id": "551b",
0197 "name": "Add police actions with conform-exceed control continue/drop",
0198 "category": [
0199 "actions",
0200 "police"
0201 ],
0202 "setup": [
0203 [
0204 "$TC actions flush action police",
0205 0,
0206 1,
0207 255
0208 ]
0209 ],
0210 "cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed continue/drop index 1",
0211 "expExitCode": "0",
0212 "verifyCmd": "$TC actions get action police index 1",
0213 "matchPattern": "action order [0-9]*: police 0x1 rate 3Mbit burst 250Kb mtu 2Kb action continue/drop",
0214 "matchCount": "1",
0215 "teardown": [
0216 "$TC actions flush action police"
0217 ]
0218 },
0219 {
0220 "id": "0c70",
0221 "name": "Add police actions with conform-exceed control pass/reclassify",
0222 "category": [
0223 "actions",
0224 "police"
0225 ],
0226 "setup": [
0227 [
0228 "$TC actions flush action police",
0229 0,
0230 1,
0231 255
0232 ]
0233 ],
0234 "cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed pass/reclassify index 4",
0235 "expExitCode": "0",
0236 "verifyCmd": "$TC actions ls action police",
0237 "matchPattern": "action order [0-9]*: police 0x4 rate 3Mbit burst 250Kb mtu 2Kb action pass/reclassify",
0238 "matchCount": "1",
0239 "teardown": [
0240 "$TC actions flush action police"
0241 ]
0242 },
0243 {
0244 "id": "d946",
0245 "name": "Add police actions with conform-exceed control pass/pipe",
0246 "category": [
0247 "actions",
0248 "police"
0249 ],
0250 "setup": [
0251 [
0252 "$TC actions flush action police",
0253 0,
0254 1,
0255 255
0256 ]
0257 ],
0258 "cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed pass/pipe index 5",
0259 "expExitCode": "0",
0260 "verifyCmd": "$TC actions ls action police",
0261 "matchPattern": "action order [0-9]*: police 0x5 rate 3Mbit burst 250Kb mtu 2Kb action pass/pipe",
0262 "matchCount": "1",
0263 "teardown": [
0264 "$TC actions flush action police"
0265 ]
0266 },
0267 {
0268 "id": "ddd6",
0269 "name": "Add police action with invalid rate value",
0270 "category": [
0271 "actions",
0272 "police"
0273 ],
0274 "setup": [
0275 [
0276 "$TC actions flush action police",
0277 0,
0278 1,
0279 255
0280 ]
0281 ],
0282 "cmdUnderTest": "$TC actions add action police rate 3tb burst 250k conform-exceed pass/pipe index 5",
0283 "expExitCode": "255",
0284 "verifyCmd": "$TC actions ls action police",
0285 "matchPattern": "action order [0-9]*: police 0x5 rate 3Tb burst 250Kb mtu 2Kb action pass/pipe",
0286 "matchCount": "0",
0287 "teardown": [
0288 "$TC actions flush action police"
0289 ]
0290 },
0291 {
0292 "id": "f61c",
0293 "name": "Add police action with invalid burst value",
0294 "category": [
0295 "actions",
0296 "police"
0297 ],
0298 "setup": [
0299 [
0300 "$TC actions flush action police",
0301 0,
0302 1,
0303 255
0304 ]
0305 ],
0306 "cmdUnderTest": "$TC actions add action police rate 3kbit burst 250P conform-exceed pass/pipe index 5",
0307 "expExitCode": "255",
0308 "verifyCmd": "$TC actions ls action police",
0309 "matchPattern": "action order [0-9]*: police 0x5 rate 3Kbit burst 250Pb mtu 2Kb action pass/pipe",
0310 "matchCount": "0",
0311 "teardown": [
0312 "$TC actions flush action police"
0313 ]
0314 },
0315 {
0316 "id": "6aaf",
0317 "name": "Add police actions with conform-exceed control pass/pipe [with numeric values]",
0318 "category": [
0319 "actions",
0320 "police"
0321 ],
0322 "setup": [
0323 [
0324 "$TC actions flush action police",
0325 0,
0326 1,
0327 255
0328 ]
0329 ],
0330 "cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed 0/3 index 1",
0331 "expExitCode": "0",
0332 "verifyCmd": "$TC actions get action police index 1",
0333 "matchPattern": "action order [0-9]*: police 0x1 rate 3Mbit burst 250Kb mtu 2Kb action pass/pipe",
0334 "matchCount": "1",
0335 "teardown": [
0336 "$TC actions flush action police"
0337 ]
0338 },
0339 {
0340 "id": "29b1",
0341 "name": "Add police actions with conform-exceed control <invalid>/drop",
0342 "category": [
0343 "actions",
0344 "police"
0345 ],
0346 "setup": [
0347 [
0348 "$TC actions flush action police",
0349 0,
0350 1,
0351 255
0352 ]
0353 ],
0354 "cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed 10/drop index 1",
0355 "expExitCode": "255",
0356 "verifyCmd": "$TC actions ls action police",
0357 "matchPattern": "action order [0-9]*: police 0x1 rate 3Mbit burst 250Kb mtu 2Kb action ",
0358 "matchCount": "0",
0359 "teardown": [
0360 "$TC actions flush action police"
0361 ]
0362 },
0363 {
0364 "id": "c26f",
0365 "name": "Add police action with invalid peakrate value",
0366 "category": [
0367 "actions",
0368 "police"
0369 ],
0370 "setup": [
0371 [
0372 "$TC actions flush action police",
0373 0,
0374 1,
0375 255
0376 ]
0377 ],
0378 "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 2kb peakrate 100T index 1",
0379 "expExitCode": "255",
0380 "verifyCmd": "$TC actions ls action police",
0381 "matchPattern": "action order [0-9]*: police 0x1 rate 90Kbit burst 10Kb mtu 2Kb peakrate 100Tbit",
0382 "matchCount": "0",
0383 "teardown": [
0384 "$TC actions flush action police"
0385 ]
0386 },
0387 {
0388 "id": "db04",
0389 "name": "Add police action with invalid mtu value",
0390 "category": [
0391 "actions",
0392 "police"
0393 ],
0394 "setup": [
0395 [
0396 "$TC actions flush action police",
0397 0,
0398 1,
0399 255
0400 ]
0401 ],
0402 "cmdUnderTest": "$TC actions add action police rate 10kbit burst 10k mtu 2Pbit index 1",
0403 "expExitCode": "255",
0404 "verifyCmd": "$TC actions ls action police",
0405 "matchPattern": "action order [0-9]*: police 0x1 rate 10Kbit burst 1Kb mtu 2Pb",
0406 "matchCount": "0",
0407 "teardown": [
0408 "$TC actions flush action police"
0409 ]
0410 },
0411 {
0412 "id": "f3c9",
0413 "name": "Add police action with cookie",
0414 "category": [
0415 "actions",
0416 "police"
0417 ],
0418 "setup": [
0419 [
0420 "$TC actions flush action police",
0421 0,
0422 1,
0423 255
0424 ]
0425 ],
0426 "cmdUnderTest": "$TC actions add action police rate 10mbit burst 10k index 1 cookie a1b1c1d1e1f12233bb",
0427 "expExitCode": "0",
0428 "verifyCmd": "$TC actions get action police index 1",
0429 "matchPattern": "action order [0-9]*: police 0x1 rate 10Mbit burst 10Kb mtu 2Kb.*cookie a1b1c1d1e1f12233bb",
0430 "matchCount": "1",
0431 "teardown": [
0432 "$TC actions flush action police"
0433 ]
0434 },
0435 {
0436 "id": "d190",
0437 "name": "Add police action with maximum index",
0438 "category": [
0439 "actions",
0440 "police"
0441 ],
0442 "setup": [
0443 [
0444 "$TC actions flush action police",
0445 0,
0446 1,
0447 255
0448 ]
0449 ],
0450 "cmdUnderTest": "$TC actions add action police rate 10mbit burst 10k index 4294967295",
0451 "expExitCode": "0",
0452 "verifyCmd": "$TC actions get action police index 4294967295",
0453 "matchPattern": "action order [0-9]*: police 0xffffffff rate 10Mbit burst 10Kb mtu 2Kb",
0454 "matchCount": "1",
0455 "teardown": [
0456 "$TC actions flush action police"
0457 ]
0458 },
0459 {
0460 "id": "336e",
0461 "name": "Delete police action",
0462 "category": [
0463 "actions",
0464 "police"
0465 ],
0466 "setup": [
0467 [
0468 "$TC actions flush action police",
0469 0,
0470 1,
0471 255
0472 ],
0473 "$TC actions add action police rate 5mbit burst 2m index 12"
0474 ],
0475 "cmdUnderTest": "$TC actions delete action police index 12",
0476 "expExitCode": "0",
0477 "verifyCmd": "$TC actions ls action police",
0478 "matchPattern": "action order [0-9]*: police 0xc rate 5Mb burst 2Mb",
0479 "matchCount": "0",
0480 "teardown": [
0481 "$TC actions flush action police"
0482 ]
0483 },
0484 {
0485 "id": "77fa",
0486 "name": "Get single police action from many actions",
0487 "category": [
0488 "actions",
0489 "police"
0490 ],
0491 "setup": [
0492 [
0493 "$TC actions flush action police",
0494 0,
0495 1,
0496 255
0497 ],
0498 "$TC actions add action police rate 1mbit burst 100k index 1",
0499 "$TC actions add action police rate 2mbit burst 200k index 2",
0500 "$TC actions add action police rate 3mbit burst 300k index 3",
0501 "$TC actions add action police rate 4mbit burst 400k index 4",
0502 "$TC actions add action police rate 5mbit burst 500k index 5",
0503 "$TC actions add action police rate 6mbit burst 600k index 6",
0504 "$TC actions add action police rate 7mbit burst 700k index 7",
0505 "$TC actions add action police rate 8mbit burst 800k index 8"
0506 ],
0507 "cmdUnderTest": "$TC actions get action police index 4",
0508 "expExitCode": "0",
0509 "verifyCmd": "$TC actions get action police index 4",
0510 "matchPattern": "action order [0-9]*: police 0x4 rate 4Mbit burst 400Kb",
0511 "matchCount": "1",
0512 "teardown": [
0513 "$TC actions flush action police"
0514 ]
0515 },
0516 {
0517 "id": "aa43",
0518 "name": "Get single police action without specifying index",
0519 "category": [
0520 "actions",
0521 "police"
0522 ],
0523 "setup": [
0524 [
0525 "$TC actions flush action police",
0526 0,
0527 1,
0528 255
0529 ],
0530 "$TC actions add action police rate 1mbit burst 100k index 1"
0531 ],
0532 "cmdUnderTest": "$TC actions get action police",
0533 "expExitCode": "255",
0534 "verifyCmd": "$TC actions get action police",
0535 "matchPattern": "action order [0-9]*: police",
0536 "matchCount": "0",
0537 "teardown": [
0538 "$TC actions flush action police"
0539 ]
0540 },
0541 {
0542 "id": "858b",
0543 "name": "List police actions",
0544 "category": [
0545 "actions",
0546 "police"
0547 ],
0548 "setup": [
0549 [
0550 "$TC actions flush action police",
0551 0,
0552 1,
0553 255
0554 ],
0555 "$TC actions add action police rate 1mbit burst 100k index 1",
0556 "$TC actions add action police rate 2mbit burst 200k index 2",
0557 "$TC actions add action police rate 3mbit burst 300k index 3",
0558 "$TC actions add action police rate 4mbit burst 400k index 4",
0559 "$TC actions add action police rate 5mbit burst 500k index 5",
0560 "$TC actions add action police rate 6mbit burst 600k index 6",
0561 "$TC actions add action police rate 7mbit burst 700k index 7",
0562 "$TC actions add action police rate 8mbit burst 800k index 8"
0563 ],
0564 "cmdUnderTest": "$TC actions list action police",
0565 "expExitCode": "0",
0566 "verifyCmd": "$TC actions ls action police",
0567 "matchPattern": "action order [0-9]*: police 0x[1-8] rate [1-8]Mbit burst [1-8]00Kb",
0568 "matchCount": "8",
0569 "teardown": [
0570 "$TC actions flush action police"
0571 ]
0572 },
0573 {
0574 "id": "1c3a",
0575 "name": "Flush police actions",
0576 "category": [
0577 "actions",
0578 "police"
0579 ],
0580 "setup": [
0581 "$TC actions add action police rate 1mbit burst 100k index 1",
0582 "$TC actions add action police rate 2mbit burst 200k index 2",
0583 "$TC actions add action police rate 3mbit burst 300k index 3",
0584 "$TC actions add action police rate 4mbit burst 400k index 4",
0585 "$TC actions add action police rate 5mbit burst 500k index 5",
0586 "$TC actions add action police rate 6mbit burst 600k index 6",
0587 "$TC actions add action police rate 7mbit burst 700k index 7",
0588 "$TC actions add action police rate 8mbit burst 800k index 8"
0589 ],
0590 "cmdUnderTest": "$TC actions flush action police",
0591 "expExitCode": "0",
0592 "verifyCmd": "$TC actions ls action police",
0593 "matchPattern": "action order [0-9]*: police",
0594 "matchCount": "0",
0595 "teardown": [
0596 ""
0597 ]
0598 },
0599 {
0600 "id": "7326",
0601 "name": "Add police action with control continue",
0602 "category": [
0603 "actions",
0604 "police"
0605 ],
0606 "setup": [
0607 [
0608 "$TC actions flush action police",
0609 0,
0610 1,
0611 255
0612 ]
0613 ],
0614 "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m continue index 1",
0615 "expExitCode": "0",
0616 "verifyCmd": "$TC actions get action police index 1",
0617 "matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action continue",
0618 "matchCount": "1",
0619 "teardown": [
0620 "$TC actions flush action police"
0621 ]
0622 },
0623 {
0624 "id": "34fa",
0625 "name": "Add police action with control drop",
0626 "category": [
0627 "actions",
0628 "police"
0629 ],
0630 "setup": [
0631 [
0632 "$TC actions flush action police",
0633 0,
0634 1,
0635 255
0636 ]
0637 ],
0638 "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m drop index 1",
0639 "expExitCode": "0",
0640 "verifyCmd": "$TC actions ls action police",
0641 "matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action drop",
0642 "matchCount": "1",
0643 "teardown": [
0644 "$TC actions flush action police"
0645 ]
0646 },
0647 {
0648 "id": "8dd5",
0649 "name": "Add police action with control ok",
0650 "category": [
0651 "actions",
0652 "police"
0653 ],
0654 "setup": [
0655 [
0656 "$TC actions flush action police",
0657 0,
0658 1,
0659 255
0660 ]
0661 ],
0662 "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m ok index 1",
0663 "expExitCode": "0",
0664 "verifyCmd": "$TC actions ls action police",
0665 "matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action pass",
0666 "matchCount": "1",
0667 "teardown": [
0668 "$TC actions flush action police"
0669 ]
0670 },
0671 {
0672 "id": "b9d1",
0673 "name": "Add police action with control reclassify",
0674 "category": [
0675 "actions",
0676 "police"
0677 ],
0678 "setup": [
0679 [
0680 "$TC actions flush action police",
0681 0,
0682 1,
0683 255
0684 ]
0685 ],
0686 "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m reclassify index 1",
0687 "expExitCode": "0",
0688 "verifyCmd": "$TC actions get action police index 1",
0689 "matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action reclassify",
0690 "matchCount": "1",
0691 "teardown": [
0692 "$TC actions flush action police"
0693 ]
0694 },
0695 {
0696 "id": "c534",
0697 "name": "Add police action with control pipe",
0698 "category": [
0699 "actions",
0700 "police"
0701 ],
0702 "setup": [
0703 [
0704 "$TC actions flush action police",
0705 0,
0706 1,
0707 255
0708 ]
0709 ],
0710 "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m pipe index 1",
0711 "expExitCode": "0",
0712 "verifyCmd": "$TC actions ls action police",
0713 "matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action pipe",
0714 "matchCount": "1",
0715 "teardown": [
0716 "$TC actions flush action police"
0717 ]
0718 },
0719 {
0720 "id": "b48b",
0721 "name": "Add police action with exceed goto chain control action",
0722 "category": [
0723 "actions",
0724 "police"
0725 ],
0726 "setup": [
0727 [
0728 "$TC actions flush action police",
0729 0,
0730 1,
0731 255
0732 ]
0733 ],
0734 "cmdUnderTest": "$TC actions add action police rate 1mbit burst 1k conform-exceed pass / goto chain 42",
0735 "expExitCode": "255",
0736 "verifyCmd": "$TC actions ls action police",
0737 "matchPattern": "action order [0-9]*: police 0x1 rate 1Mbit burst 1Kb mtu 2Kb action pass/goto chain 42",
0738 "matchCount": "0",
0739 "teardown": [
0740 "$TC actions flush action police"
0741 ]
0742 },
0743 {
0744 "id": "689e",
0745 "name": "Replace police action with invalid goto chain control",
0746 "category": [
0747 "actions",
0748 "police"
0749 ],
0750 "setup": [
0751 [
0752 "$TC actions flush action police",
0753 0,
0754 1,
0755 255
0756 ],
0757 "$TC actions add action police rate 3mbit burst 250k drop index 90"
0758 ],
0759 "cmdUnderTest": "$TC actions replace action police rate 3mbit burst 250k goto chain 42 index 90 cookie c1a0c1a0",
0760 "expExitCode": "255",
0761 "verifyCmd": "$TC actions get action police index 90",
0762 "matchPattern": "action order [0-9]*: police 0x5a rate 3Mbit burst 250Kb mtu 2Kb action drop",
0763 "matchCount": "1",
0764 "teardown": [
0765 "$TC actions flush action police"
0766 ]
0767 },
0768 {
0769 "id": "cdd7",
0770 "name": "Add valid police action with packets per second rate limit",
0771 "category": [
0772 "actions",
0773 "police"
0774 ],
0775 "setup": [
0776 [
0777 "$TC actions flush action police",
0778 0,
0779 1,
0780 255
0781 ]
0782 ],
0783 "cmdUnderTest": "$TC actions add action police pkts_rate 1000 pkts_burst 200 index 1",
0784 "expExitCode": "0",
0785 "verifyCmd": "$TC actions ls action police",
0786 "matchPattern": "action order [0-9]*: police 0x1 rate 0bit burst 0b mtu 4096Mb pkts_rate 1000 pkts_burst 200",
0787 "matchCount": "1",
0788 "teardown": [
0789 "$TC actions flush action police"
0790 ]
0791 },
0792 {
0793 "id": "f5bc",
0794 "name": "Add invalid police action with both bps and pps",
0795 "category": [
0796 "actions",
0797 "police"
0798 ],
0799 "setup": [
0800 [
0801 "$TC actions flush action police",
0802 0,
0803 1,
0804 255
0805 ]
0806 ],
0807 "cmdUnderTest": "$TC actions add action police rate 1kbit burst 10k pkts_rate 1000 pkts_burst 200 index 1",
0808 "expExitCode": "255",
0809 "verifyCmd": "$TC actions ls action police",
0810 "matchPattern": "action order [0-9]*: police 0x1 ",
0811 "matchCount": "0",
0812 "teardown": [
0813 "$TC actions flush action police"
0814 ]
0815 },
0816 {
0817 "id": "7d64",
0818 "name": "Add police action with skip_hw option",
0819 "category": [
0820 "actions",
0821 "police"
0822 ],
0823 "setup": [
0824 [
0825 "$TC actions flush action police",
0826 0,
0827 1,
0828 255
0829 ]
0830 ],
0831 "cmdUnderTest": "$TC actions add action police rate 1kbit burst 10k index 100 skip_hw",
0832 "expExitCode": "0",
0833 "verifyCmd": "$TC actions ls action police | grep skip_hw",
0834 "matchPattern": "skip_hw",
0835 "matchCount": "1",
0836 "teardown": [
0837 "$TC actions flush action police"
0838 ]
0839 }
0840 ]