4 "name": "Add valid basic police action",
11 "$TC actions flush action police",
17 "cmdUnderTest": "$TC actions add action police rate 1kbit burst 10k index 1",
19 "verifyCmd": "$TC actions ls action police",
20 "matchPattern": "action order [0-9]*: police 0x1 rate 1Kbit burst 10Kb",
23 "$TC actions flush action police"
28 "name": "Add police action with duplicate index",
35 "$TC actions flush action police",
40 "$TC actions add action police rate 4Mbit burst 120k index 9"
42 "cmdUnderTest": "$TC actions add action police rate 8kbit burst 24k index 9",
44 "verifyCmd": "$TC actions ls action police",
45 "matchPattern": "action order [0-9]*: police 0x9",
48 "$TC actions flush action police"
53 "name": "Add valid police action with mtu",
60 "$TC actions flush action police",
66 "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 1k index 98",
68 "verifyCmd": "$TC actions get action police index 98",
69 "matchPattern": "action order [0-9]*: police 0x62 rate 90Kbit burst 10Kb mtu 1Kb",
72 "$TC actions flush action police"
77 "name": "Add valid police action with peakrate",
84 "$TC actions flush action police",
90 "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 2kb peakrate 100kbit index 3",
92 "verifyCmd": "$TC actions ls action police",
93 "matchPattern": "action order [0-9]*: police 0x3 rate 90Kbit burst 10Kb mtu 2Kb peakrate 100Kbit",
96 "$TC actions flush action police"
101 "name": "Add police action with peakrate and no mtu",
108 "$TC actions flush action police",
114 "cmdUnderTest": "$TC actions add action police rate 5kbit burst 6kb peakrate 10kbit index 9",
115 "expExitCode": "255",
116 "verifyCmd": "$TC actions ls action police",
117 "matchPattern": "action order [0-9]*: police 0x9 rate 5Kb burst 10Kb",
120 "$TC actions flush action police"
125 "name": "Add police action with valid overhead",
132 "$TC actions flush action police",
138 "cmdUnderTest": "$TC actions add action police rate 1mbit burst 100k overhead 64 index 64",
140 "verifyCmd": "$TC actions get action police index 64",
141 "matchPattern": "action order [0-9]*: police 0x40 rate 1Mbit burst 100Kb mtu 2Kb action reclassify overhead 64b",
144 "$TC actions flush action police"
149 "name": "Add police action with ethernet linklayer type",
156 "$TC actions flush action police",
162 "cmdUnderTest": "$TC actions add action police rate 2mbit burst 200k linklayer ethernet index 8",
164 "verifyCmd": "$TC actions show action police",
165 "matchPattern": "action order [0-9]*: police 0x8 rate 2Mbit burst 200Kb mtu 2Kb action reclassify overhead 0b",
168 "$TC actions flush action police"
173 "name": "Add police action with atm linklayer type",
180 "$TC actions flush action police",
186 "cmdUnderTest": "$TC actions add action police rate 2mbit burst 200k linklayer atm index 8",
188 "verifyCmd": "$TC actions show action police",
189 "matchPattern": "action order [0-9]*: police 0x8 rate 2Mbit burst 200Kb mtu 2Kb action reclassify overhead 0b linklayer atm",
192 "$TC actions flush action police"
197 "name": "Add police actions with conform-exceed control continue/drop",
204 "$TC actions flush action police",
210 "cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed continue/drop index 1",
212 "verifyCmd": "$TC actions get action police index 1",
213 "matchPattern": "action order [0-9]*: police 0x1 rate 3Mbit burst 250Kb mtu 2Kb action continue/drop",
216 "$TC actions flush action police"
221 "name": "Add police actions with conform-exceed control pass/reclassify",
228 "$TC actions flush action police",
234 "cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed pass/reclassify index 4",
236 "verifyCmd": "$TC actions ls action police",
237 "matchPattern": "action order [0-9]*: police 0x4 rate 3Mbit burst 250Kb mtu 2Kb action pass/reclassify",
240 "$TC actions flush action police"
245 "name": "Add police actions with conform-exceed control pass/pipe",
252 "$TC actions flush action police",
258 "cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed pass/pipe index 5",
260 "verifyCmd": "$TC actions ls action police",
261 "matchPattern": "action order [0-9]*: police 0x5 rate 3Mbit burst 250Kb mtu 2Kb action pass/pipe",
264 "$TC actions flush action police"
269 "name": "Add police action with invalid rate value",
276 "$TC actions flush action police",
282 "cmdUnderTest": "$TC actions add action police rate 3tb burst 250k conform-exceed pass/pipe index 5",
283 "expExitCode": "255",
284 "verifyCmd": "$TC actions ls action police",
285 "matchPattern": "action order [0-9]*: police 0x5 rate 3Tb burst 250Kb mtu 2Kb action pass/pipe",
288 "$TC actions flush action police"
293 "name": "Add police action with invalid burst value",
300 "$TC actions flush action police",
306 "cmdUnderTest": "$TC actions add action police rate 3kbit burst 250P conform-exceed pass/pipe index 5",
307 "expExitCode": "255",
308 "verifyCmd": "$TC actions ls action police",
309 "matchPattern": "action order [0-9]*: police 0x5 rate 3Kbit burst 250Pb mtu 2Kb action pass/pipe",
312 "$TC actions flush action police"
317 "name": "Add police action with invalid peakrate value",
324 "$TC actions flush action police",
330 "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 2kb peakrate 100T index 1",
331 "expExitCode": "255",
332 "verifyCmd": "$TC actions ls action police",
333 "matchPattern": "action order [0-9]*: police 0x1 rate 90Kbit burst 10Kb mtu 2Kb peakrate 100Tbit",
336 "$TC actions flush action police"
341 "name": "Add police action with invalid mtu value",
348 "$TC actions flush action police",
354 "cmdUnderTest": "$TC actions add action police rate 10kbit burst 10k mtu 2Pbit index 1",
355 "expExitCode": "255",
356 "verifyCmd": "$TC actions ls action police",
357 "matchPattern": "action order [0-9]*: police 0x1 rate 10Kbit burst 1Kb mtu 2Pb",
360 "$TC actions flush action police"
365 "name": "Add police action with cookie",
372 "$TC actions flush action police",
378 "cmdUnderTest": "$TC actions add action police rate 10mbit burst 10k index 1 cookie a1b1c1d1e1f12233bb",
380 "verifyCmd": "$TC actions get action police index 1",
381 "matchPattern": "action order [0-9]*: police 0x1 rate 10Mbit burst 10Kb mtu 2Kb.*cookie a1b1c1d1e1f12233bb",
384 "$TC actions flush action police"
389 "name": "Add police action with maximum index",
396 "$TC actions flush action police",
402 "cmdUnderTest": "$TC actions add action police rate 10mbit burst 10k index 4294967295",
404 "verifyCmd": "$TC actions get action police index 4294967295",
405 "matchPattern": "action order [0-9]*: police 0xffffffff rate 10Mbit burst 10Kb mtu 2Kb",
408 "$TC actions flush action police"
413 "name": "Delete police action",
420 "$TC actions flush action police",
425 "$TC actions add action police rate 5mbit burst 2m index 12"
427 "cmdUnderTest": "$TC actions delete action police index 12",
429 "verifyCmd": "$TC actions ls action police",
430 "matchPattern": "action order [0-9]*: police 0xc rate 5Mb burst 2Mb",
433 "$TC actions flush action police"
438 "name": "Get single police action from many actions",
445 "$TC actions flush action police",
450 "$TC actions add action police rate 1mbit burst 100k index 1",
451 "$TC actions add action police rate 2mbit burst 200k index 2",
452 "$TC actions add action police rate 3mbit burst 300k index 3",
453 "$TC actions add action police rate 4mbit burst 400k index 4",
454 "$TC actions add action police rate 5mbit burst 500k index 5",
455 "$TC actions add action police rate 6mbit burst 600k index 6",
456 "$TC actions add action police rate 7mbit burst 700k index 7",
457 "$TC actions add action police rate 8mbit burst 800k index 8"
459 "cmdUnderTest": "$TC actions get action police index 4",
461 "verifyCmd": "$TC actions get action police index 4",
462 "matchPattern": "action order [0-9]*: police 0x4 rate 4Mbit burst 400Kb",
465 "$TC actions flush action police"
470 "name": "Get single police action without specifying index",
477 "$TC actions flush action police",
482 "$TC actions add action police rate 1mbit burst 100k index 1"
484 "cmdUnderTest": "$TC actions get action police",
485 "expExitCode": "255",
486 "verifyCmd": "$TC actions get action police",
487 "matchPattern": "action order [0-9]*: police",
490 "$TC actions flush action police"
495 "name": "List police actions",
502 "$TC actions flush action police",
507 "$TC actions add action police rate 1mbit burst 100k index 1",
508 "$TC actions add action police rate 2mbit burst 200k index 2",
509 "$TC actions add action police rate 3mbit burst 300k index 3",
510 "$TC actions add action police rate 4mbit burst 400k index 4",
511 "$TC actions add action police rate 5mbit burst 500k index 5",
512 "$TC actions add action police rate 6mbit burst 600k index 6",
513 "$TC actions add action police rate 7mbit burst 700k index 7",
514 "$TC actions add action police rate 8mbit burst 800k index 8"
516 "cmdUnderTest": "$TC actions list action police",
518 "verifyCmd": "$TC actions ls action police",
519 "matchPattern": "action order [0-9]*: police 0x[1-8] rate [1-8]Mbit burst [1-8]00Kb",
522 "$TC actions flush action police"
527 "name": "Flush police actions",
533 "$TC actions add action police rate 1mbit burst 100k index 1",
534 "$TC actions add action police rate 2mbit burst 200k index 2",
535 "$TC actions add action police rate 3mbit burst 300k index 3",
536 "$TC actions add action police rate 4mbit burst 400k index 4",
537 "$TC actions add action police rate 5mbit burst 500k index 5",
538 "$TC actions add action police rate 6mbit burst 600k index 6",
539 "$TC actions add action police rate 7mbit burst 700k index 7",
540 "$TC actions add action police rate 8mbit burst 800k index 8"
542 "cmdUnderTest": "$TC actions flush action police",
544 "verifyCmd": "$TC actions ls action police",
545 "matchPattern": "action order [0-9]*: police",
553 "name": "Add police action with control continue",
560 "$TC actions flush action police",
566 "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m continue index 1",
568 "verifyCmd": "$TC actions get action police index 1",
569 "matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action continue",
572 "$TC actions flush action police"
577 "name": "Add police action with control drop",
584 "$TC actions flush action police",
590 "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m drop index 1",
592 "verifyCmd": "$TC actions ls action police",
593 "matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action drop",
596 "$TC actions flush action police"
601 "name": "Add police action with control ok",
608 "$TC actions flush action police",
614 "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m ok index 1",
616 "verifyCmd": "$TC actions ls action police",
617 "matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action pass",
620 "$TC actions flush action police"
625 "name": "Add police action with control reclassify",
632 "$TC actions flush action police",
638 "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m reclassify index 1",
640 "verifyCmd": "$TC actions get action police index 1",
641 "matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action reclassify",
644 "$TC actions flush action police"
649 "name": "Add police action with control pipe",
656 "$TC actions flush action police",
662 "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m pipe index 1",
664 "verifyCmd": "$TC actions ls action police",
665 "matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action pipe",
668 "$TC actions flush action police"