1cf797ac4SLucas Bates[ 2cf797ac4SLucas Bates { 3cf797ac4SLucas Bates "id": "49aa", 4cf797ac4SLucas Bates "name": "Add valid basic police action", 5cf797ac4SLucas Bates "category": [ 6cf797ac4SLucas Bates "actions", 7cf797ac4SLucas Bates "police" 8cf797ac4SLucas Bates ], 9cf797ac4SLucas Bates "setup": [ 10cf797ac4SLucas Bates [ 11cf797ac4SLucas Bates "$TC actions flush action police", 12cf797ac4SLucas Bates 0, 13cf797ac4SLucas Bates 1, 14cf797ac4SLucas Bates 255 15cf797ac4SLucas Bates ] 16cf797ac4SLucas Bates ], 17cf797ac4SLucas Bates "cmdUnderTest": "$TC actions add action police rate 1kbit burst 10k index 1", 18cf797ac4SLucas Bates "expExitCode": "0", 19cf797ac4SLucas Bates "verifyCmd": "$TC actions ls action police", 20cf797ac4SLucas Bates "matchPattern": "action order [0-9]*: police 0x1 rate 1Kbit burst 10Kb", 21cf797ac4SLucas Bates "matchCount": "1", 22cf797ac4SLucas Bates "teardown": [ 23cf797ac4SLucas Bates "$TC actions flush action police" 24cf797ac4SLucas Bates ] 25cf797ac4SLucas Bates }, 26cf797ac4SLucas Bates { 27cf797ac4SLucas Bates "id": "3abe", 28cf797ac4SLucas Bates "name": "Add police action with duplicate index", 29cf797ac4SLucas Bates "category": [ 30cf797ac4SLucas Bates "actions", 31cf797ac4SLucas Bates "police" 32cf797ac4SLucas Bates ], 33cf797ac4SLucas Bates "setup": [ 34cf797ac4SLucas Bates [ 35cf797ac4SLucas Bates "$TC actions flush action police", 36cf797ac4SLucas Bates 0, 37cf797ac4SLucas Bates 1, 38cf797ac4SLucas Bates 255 39cf797ac4SLucas Bates ], 40cf797ac4SLucas Bates "$TC actions add action police rate 4Mbit burst 120k index 9" 41cf797ac4SLucas Bates ], 42cf797ac4SLucas Bates "cmdUnderTest": "$TC actions add action police rate 8kbit burst 24k index 9", 43cf797ac4SLucas Bates "expExitCode": "255", 44cf797ac4SLucas Bates "verifyCmd": "$TC actions ls action police", 45cf797ac4SLucas Bates "matchPattern": "action order [0-9]*: police 0x9", 46cf797ac4SLucas Bates "matchCount": "1", 47cf797ac4SLucas Bates "teardown": [ 48cf797ac4SLucas Bates "$TC actions flush action police" 49cf797ac4SLucas Bates ] 50cf797ac4SLucas Bates }, 51cf797ac4SLucas Bates { 52cf797ac4SLucas Bates "id": "49fa", 53cf797ac4SLucas Bates "name": "Add valid police action with mtu", 54cf797ac4SLucas Bates "category": [ 55cf797ac4SLucas Bates "actions", 56cf797ac4SLucas Bates "police" 57cf797ac4SLucas Bates ], 58cf797ac4SLucas Bates "setup": [ 59cf797ac4SLucas Bates [ 60cf797ac4SLucas Bates "$TC actions flush action police", 61cf797ac4SLucas Bates 0, 62cf797ac4SLucas Bates 1, 63cf797ac4SLucas Bates 255 64cf797ac4SLucas Bates ] 65cf797ac4SLucas Bates ], 66cf797ac4SLucas Bates "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 1k index 98", 67cf797ac4SLucas Bates "expExitCode": "0", 68cf797ac4SLucas Bates "verifyCmd": "$TC actions get action police index 98", 69cf797ac4SLucas Bates "matchPattern": "action order [0-9]*: police 0x62 rate 90Kbit burst 10Kb mtu 1Kb", 70cf797ac4SLucas Bates "matchCount": "1", 71cf797ac4SLucas Bates "teardown": [ 72cf797ac4SLucas Bates "$TC actions flush action police" 73cf797ac4SLucas Bates ] 74cf797ac4SLucas Bates }, 75cf797ac4SLucas Bates { 76cf797ac4SLucas Bates "id": "7943", 77cf797ac4SLucas Bates "name": "Add valid police action with peakrate", 78cf797ac4SLucas Bates "category": [ 79cf797ac4SLucas Bates "actions", 80cf797ac4SLucas Bates "police" 81cf797ac4SLucas Bates ], 82cf797ac4SLucas Bates "setup": [ 83cf797ac4SLucas Bates [ 84cf797ac4SLucas Bates "$TC actions flush action police", 85cf797ac4SLucas Bates 0, 86cf797ac4SLucas Bates 1, 87cf797ac4SLucas Bates 255 88cf797ac4SLucas Bates ] 89cf797ac4SLucas Bates ], 90cf797ac4SLucas Bates "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 2kb peakrate 100kbit index 3", 91cf797ac4SLucas Bates "expExitCode": "0", 92cf797ac4SLucas Bates "verifyCmd": "$TC actions ls action police", 93cf797ac4SLucas Bates "matchPattern": "action order [0-9]*: police 0x3 rate 90Kbit burst 10Kb mtu 2Kb peakrate 100Kbit", 94cf797ac4SLucas Bates "matchCount": "1", 95cf797ac4SLucas Bates "teardown": [ 96cf797ac4SLucas Bates "$TC actions flush action police" 97cf797ac4SLucas Bates ] 98cf797ac4SLucas Bates }, 99cf797ac4SLucas Bates { 100cf797ac4SLucas Bates "id": "055e", 101cf797ac4SLucas Bates "name": "Add police action with peakrate and no mtu", 102cf797ac4SLucas Bates "category": [ 103cf797ac4SLucas Bates "actions", 104cf797ac4SLucas Bates "police" 105cf797ac4SLucas Bates ], 106cf797ac4SLucas Bates "setup": [ 107cf797ac4SLucas Bates [ 108cf797ac4SLucas Bates "$TC actions flush action police", 109cf797ac4SLucas Bates 0, 110cf797ac4SLucas Bates 1, 111cf797ac4SLucas Bates 255 112cf797ac4SLucas Bates ] 113cf797ac4SLucas Bates ], 114cf797ac4SLucas Bates "cmdUnderTest": "$TC actions add action police rate 5kbit burst 6kb peakrate 10kbit index 9", 115cf797ac4SLucas Bates "expExitCode": "255", 116cf797ac4SLucas Bates "verifyCmd": "$TC actions ls action police", 117cf797ac4SLucas Bates "matchPattern": "action order [0-9]*: police 0x9 rate 5Kb burst 10Kb", 118cf797ac4SLucas Bates "matchCount": "0", 119cf797ac4SLucas Bates "teardown": [ 120cf797ac4SLucas Bates "$TC actions flush action police" 121cf797ac4SLucas Bates ] 122cf797ac4SLucas Bates }, 123cf797ac4SLucas Bates { 124cf797ac4SLucas Bates "id": "f057", 125cf797ac4SLucas Bates "name": "Add police action with valid overhead", 126cf797ac4SLucas Bates "category": [ 127cf797ac4SLucas Bates "actions", 128cf797ac4SLucas Bates "police" 129cf797ac4SLucas Bates ], 130cf797ac4SLucas Bates "setup": [ 131cf797ac4SLucas Bates [ 132cf797ac4SLucas Bates "$TC actions flush action police", 133cf797ac4SLucas Bates 0, 134cf797ac4SLucas Bates 1, 135cf797ac4SLucas Bates 255 136cf797ac4SLucas Bates ] 137cf797ac4SLucas Bates ], 138cf797ac4SLucas Bates "cmdUnderTest": "$TC actions add action police rate 1mbit burst 100k overhead 64 index 64", 139cf797ac4SLucas Bates "expExitCode": "0", 140cf797ac4SLucas Bates "verifyCmd": "$TC actions get action police index 64", 141cf797ac4SLucas Bates "matchPattern": "action order [0-9]*: police 0x40 rate 1Mbit burst 100Kb mtu 2Kb action reclassify overhead 64b", 142cf797ac4SLucas Bates "matchCount": "1", 143cf797ac4SLucas Bates "teardown": [ 144cf797ac4SLucas Bates "$TC actions flush action police" 145cf797ac4SLucas Bates ] 146cf797ac4SLucas Bates }, 147cf797ac4SLucas Bates { 148cf797ac4SLucas Bates "id": "7ffb", 149cf797ac4SLucas Bates "name": "Add police action with ethernet linklayer type", 150cf797ac4SLucas Bates "category": [ 151cf797ac4SLucas Bates "actions", 152cf797ac4SLucas Bates "police" 153cf797ac4SLucas Bates ], 154cf797ac4SLucas Bates "setup": [ 155cf797ac4SLucas Bates [ 156cf797ac4SLucas Bates "$TC actions flush action police", 157cf797ac4SLucas Bates 0, 158cf797ac4SLucas Bates 1, 159cf797ac4SLucas Bates 255 160cf797ac4SLucas Bates ] 161cf797ac4SLucas Bates ], 162cf797ac4SLucas Bates "cmdUnderTest": "$TC actions add action police rate 2mbit burst 200k linklayer ethernet index 8", 163cf797ac4SLucas Bates "expExitCode": "0", 164cf797ac4SLucas Bates "verifyCmd": "$TC actions show action police", 165cf797ac4SLucas Bates "matchPattern": "action order [0-9]*: police 0x8 rate 2Mbit burst 200Kb mtu 2Kb action reclassify overhead 0b", 166cf797ac4SLucas Bates "matchCount": "1", 167cf797ac4SLucas Bates "teardown": [ 168cf797ac4SLucas Bates "$TC actions flush action police" 169cf797ac4SLucas Bates ] 170cf797ac4SLucas Bates }, 171cf797ac4SLucas Bates { 172cf797ac4SLucas Bates "id": "3dda", 173cf797ac4SLucas Bates "name": "Add police action with atm linklayer type", 174cf797ac4SLucas Bates "category": [ 175cf797ac4SLucas Bates "actions", 176cf797ac4SLucas Bates "police" 177cf797ac4SLucas Bates ], 178cf797ac4SLucas Bates "setup": [ 179cf797ac4SLucas Bates [ 180cf797ac4SLucas Bates "$TC actions flush action police", 181cf797ac4SLucas Bates 0, 182cf797ac4SLucas Bates 1, 183cf797ac4SLucas Bates 255 184cf797ac4SLucas Bates ] 185cf797ac4SLucas Bates ], 186cf797ac4SLucas Bates "cmdUnderTest": "$TC actions add action police rate 2mbit burst 200k linklayer atm index 8", 187cf797ac4SLucas Bates "expExitCode": "0", 188cf797ac4SLucas Bates "verifyCmd": "$TC actions show action police", 189cf797ac4SLucas Bates "matchPattern": "action order [0-9]*: police 0x8 rate 2Mbit burst 200Kb mtu 2Kb action reclassify overhead 0b linklayer atm", 190cf797ac4SLucas Bates "matchCount": "1", 191cf797ac4SLucas Bates "teardown": [ 192cf797ac4SLucas Bates "$TC actions flush action police" 193cf797ac4SLucas Bates ] 194cf797ac4SLucas Bates }, 195cf797ac4SLucas Bates { 196cf797ac4SLucas Bates "id": "551b", 197cf797ac4SLucas Bates "name": "Add police actions with conform-exceed control continue/drop", 198cf797ac4SLucas Bates "category": [ 199cf797ac4SLucas Bates "actions", 200cf797ac4SLucas Bates "police" 201cf797ac4SLucas Bates ], 202cf797ac4SLucas Bates "setup": [ 203cf797ac4SLucas Bates [ 204cf797ac4SLucas Bates "$TC actions flush action police", 205cf797ac4SLucas Bates 0, 206cf797ac4SLucas Bates 1, 207cf797ac4SLucas Bates 255 208cf797ac4SLucas Bates ] 209cf797ac4SLucas Bates ], 210cf797ac4SLucas Bates "cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed continue/drop index 1", 211cf797ac4SLucas Bates "expExitCode": "0", 212cf797ac4SLucas Bates "verifyCmd": "$TC actions get action police index 1", 213cf797ac4SLucas Bates "matchPattern": "action order [0-9]*: police 0x1 rate 3Mbit burst 250Kb mtu 2Kb action continue/drop", 214cf797ac4SLucas Bates "matchCount": "1", 215cf797ac4SLucas Bates "teardown": [ 216cf797ac4SLucas Bates "$TC actions flush action police" 217cf797ac4SLucas Bates ] 218cf797ac4SLucas Bates }, 219cf797ac4SLucas Bates { 220cf797ac4SLucas Bates "id": "0c70", 221cf797ac4SLucas Bates "name": "Add police actions with conform-exceed control pass/reclassify", 222cf797ac4SLucas Bates "category": [ 223cf797ac4SLucas Bates "actions", 224cf797ac4SLucas Bates "police" 225cf797ac4SLucas Bates ], 226cf797ac4SLucas Bates "setup": [ 227cf797ac4SLucas Bates [ 228cf797ac4SLucas Bates "$TC actions flush action police", 229cf797ac4SLucas Bates 0, 230cf797ac4SLucas Bates 1, 231cf797ac4SLucas Bates 255 232cf797ac4SLucas Bates ] 233cf797ac4SLucas Bates ], 234cf797ac4SLucas Bates "cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed pass/reclassify index 4", 235cf797ac4SLucas Bates "expExitCode": "0", 236cf797ac4SLucas Bates "verifyCmd": "$TC actions ls action police", 237cf797ac4SLucas Bates "matchPattern": "action order [0-9]*: police 0x4 rate 3Mbit burst 250Kb mtu 2Kb action pass/reclassify", 238cf797ac4SLucas Bates "matchCount": "1", 239cf797ac4SLucas Bates "teardown": [ 240cf797ac4SLucas Bates "$TC actions flush action police" 241cf797ac4SLucas Bates ] 242cf797ac4SLucas Bates }, 243cf797ac4SLucas Bates { 244cf797ac4SLucas Bates "id": "d946", 245cf797ac4SLucas Bates "name": "Add police actions with conform-exceed control pass/pipe", 246cf797ac4SLucas Bates "category": [ 247cf797ac4SLucas Bates "actions", 248cf797ac4SLucas Bates "police" 249cf797ac4SLucas Bates ], 250cf797ac4SLucas Bates "setup": [ 251cf797ac4SLucas Bates [ 252cf797ac4SLucas Bates "$TC actions flush action police", 253cf797ac4SLucas Bates 0, 254cf797ac4SLucas Bates 1, 255cf797ac4SLucas Bates 255 256cf797ac4SLucas Bates ] 257cf797ac4SLucas Bates ], 258cf797ac4SLucas Bates "cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed pass/pipe index 5", 259cf797ac4SLucas Bates "expExitCode": "0", 260cf797ac4SLucas Bates "verifyCmd": "$TC actions ls action police", 261cf797ac4SLucas Bates "matchPattern": "action order [0-9]*: police 0x5 rate 3Mbit burst 250Kb mtu 2Kb action pass/pipe", 262cf797ac4SLucas Bates "matchCount": "1", 263cf797ac4SLucas Bates "teardown": [ 264cf797ac4SLucas Bates "$TC actions flush action police" 265cf797ac4SLucas Bates ] 266cf797ac4SLucas Bates }, 267cf797ac4SLucas Bates { 268808679e7SRoman Mashak "id": "ddd6", 269808679e7SRoman Mashak "name": "Add police action with invalid rate value", 270808679e7SRoman Mashak "category": [ 271808679e7SRoman Mashak "actions", 272808679e7SRoman Mashak "police" 273808679e7SRoman Mashak ], 274808679e7SRoman Mashak "setup": [ 275808679e7SRoman Mashak [ 276808679e7SRoman Mashak "$TC actions flush action police", 277808679e7SRoman Mashak 0, 278808679e7SRoman Mashak 1, 279808679e7SRoman Mashak 255 280808679e7SRoman Mashak ] 281808679e7SRoman Mashak ], 282808679e7SRoman Mashak "cmdUnderTest": "$TC actions add action police rate 3tb burst 250k conform-exceed pass/pipe index 5", 283808679e7SRoman Mashak "expExitCode": "255", 284808679e7SRoman Mashak "verifyCmd": "$TC actions ls action police", 285808679e7SRoman Mashak "matchPattern": "action order [0-9]*: police 0x5 rate 3Tb burst 250Kb mtu 2Kb action pass/pipe", 286808679e7SRoman Mashak "matchCount": "0", 287808679e7SRoman Mashak "teardown": [ 288808679e7SRoman Mashak "$TC actions flush action police" 289808679e7SRoman Mashak ] 290808679e7SRoman Mashak }, 291808679e7SRoman Mashak { 292808679e7SRoman Mashak "id": "f61c", 293808679e7SRoman Mashak "name": "Add police action with invalid burst value", 294808679e7SRoman Mashak "category": [ 295808679e7SRoman Mashak "actions", 296808679e7SRoman Mashak "police" 297808679e7SRoman Mashak ], 298808679e7SRoman Mashak "setup": [ 299808679e7SRoman Mashak [ 300808679e7SRoman Mashak "$TC actions flush action police", 301808679e7SRoman Mashak 0, 302808679e7SRoman Mashak 1, 303808679e7SRoman Mashak 255 304808679e7SRoman Mashak ] 305808679e7SRoman Mashak ], 306808679e7SRoman Mashak "cmdUnderTest": "$TC actions add action police rate 3kbit burst 250P conform-exceed pass/pipe index 5", 307808679e7SRoman Mashak "expExitCode": "255", 308808679e7SRoman Mashak "verifyCmd": "$TC actions ls action police", 309808679e7SRoman Mashak "matchPattern": "action order [0-9]*: police 0x5 rate 3Kbit burst 250Pb mtu 2Kb action pass/pipe", 310808679e7SRoman Mashak "matchCount": "0", 311808679e7SRoman Mashak "teardown": [ 312808679e7SRoman Mashak "$TC actions flush action police" 313808679e7SRoman Mashak ] 314808679e7SRoman Mashak }, 315808679e7SRoman Mashak { 31625a8238fSPaolo Abeni "id": "6aaf", 31725a8238fSPaolo Abeni "name": "Add police actions with conform-exceed control pass/pipe [with numeric values]", 31825a8238fSPaolo Abeni "category": [ 31925a8238fSPaolo Abeni "actions", 32025a8238fSPaolo Abeni "police" 32125a8238fSPaolo Abeni ], 32225a8238fSPaolo Abeni "setup": [ 32325a8238fSPaolo Abeni [ 32425a8238fSPaolo Abeni "$TC actions flush action police", 32525a8238fSPaolo Abeni 0, 32625a8238fSPaolo Abeni 1, 32725a8238fSPaolo Abeni 255 32825a8238fSPaolo Abeni ] 32925a8238fSPaolo Abeni ], 33025a8238fSPaolo Abeni "cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed 0/3 index 1", 33125a8238fSPaolo Abeni "expExitCode": "0", 33225a8238fSPaolo Abeni "verifyCmd": "$TC actions get action police index 1", 33325a8238fSPaolo Abeni "matchPattern": "action order [0-9]*: police 0x1 rate 3Mbit burst 250Kb mtu 2Kb action pass/pipe", 33425a8238fSPaolo Abeni "matchCount": "1", 33525a8238fSPaolo Abeni "teardown": [ 33625a8238fSPaolo Abeni "$TC actions flush action police" 33725a8238fSPaolo Abeni ] 33825a8238fSPaolo Abeni }, 33925a8238fSPaolo Abeni { 34025a8238fSPaolo Abeni "id": "29b1", 34125a8238fSPaolo Abeni "name": "Add police actions with conform-exceed control <invalid>/drop", 34225a8238fSPaolo Abeni "category": [ 34325a8238fSPaolo Abeni "actions", 34425a8238fSPaolo Abeni "police" 34525a8238fSPaolo Abeni ], 34625a8238fSPaolo Abeni "setup": [ 34725a8238fSPaolo Abeni [ 34825a8238fSPaolo Abeni "$TC actions flush action police", 34925a8238fSPaolo Abeni 0, 35025a8238fSPaolo Abeni 1, 35125a8238fSPaolo Abeni 255 35225a8238fSPaolo Abeni ] 35325a8238fSPaolo Abeni ], 35425a8238fSPaolo Abeni "cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed 10/drop index 1", 35525a8238fSPaolo Abeni "expExitCode": "255", 35625a8238fSPaolo Abeni "verifyCmd": "$TC actions ls action police", 35725a8238fSPaolo Abeni "matchPattern": "action order [0-9]*: police 0x1 rate 3Mbit burst 250Kb mtu 2Kb action ", 35825a8238fSPaolo Abeni "matchCount": "0", 35925a8238fSPaolo Abeni "teardown": [ 36025a8238fSPaolo Abeni "$TC actions flush action police" 36125a8238fSPaolo Abeni ] 36225a8238fSPaolo Abeni }, 36325a8238fSPaolo Abeni { 364808679e7SRoman Mashak "id": "c26f", 365808679e7SRoman Mashak "name": "Add police action with invalid peakrate value", 366808679e7SRoman Mashak "category": [ 367808679e7SRoman Mashak "actions", 368808679e7SRoman Mashak "police" 369808679e7SRoman Mashak ], 370808679e7SRoman Mashak "setup": [ 371808679e7SRoman Mashak [ 372808679e7SRoman Mashak "$TC actions flush action police", 373808679e7SRoman Mashak 0, 374808679e7SRoman Mashak 1, 375808679e7SRoman Mashak 255 376808679e7SRoman Mashak ] 377808679e7SRoman Mashak ], 378808679e7SRoman Mashak "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 2kb peakrate 100T index 1", 379808679e7SRoman Mashak "expExitCode": "255", 380808679e7SRoman Mashak "verifyCmd": "$TC actions ls action police", 381808679e7SRoman Mashak "matchPattern": "action order [0-9]*: police 0x1 rate 90Kbit burst 10Kb mtu 2Kb peakrate 100Tbit", 382808679e7SRoman Mashak "matchCount": "0", 383808679e7SRoman Mashak "teardown": [ 384808679e7SRoman Mashak "$TC actions flush action police" 385808679e7SRoman Mashak ] 386808679e7SRoman Mashak }, 387808679e7SRoman Mashak { 388808679e7SRoman Mashak "id": "db04", 389808679e7SRoman Mashak "name": "Add police action with invalid mtu value", 390808679e7SRoman Mashak "category": [ 391808679e7SRoman Mashak "actions", 392808679e7SRoman Mashak "police" 393808679e7SRoman Mashak ], 394808679e7SRoman Mashak "setup": [ 395808679e7SRoman Mashak [ 396808679e7SRoman Mashak "$TC actions flush action police", 397808679e7SRoman Mashak 0, 398808679e7SRoman Mashak 1, 399808679e7SRoman Mashak 255 400808679e7SRoman Mashak ] 401808679e7SRoman Mashak ], 402808679e7SRoman Mashak "cmdUnderTest": "$TC actions add action police rate 10kbit burst 10k mtu 2Pbit index 1", 403808679e7SRoman Mashak "expExitCode": "255", 404808679e7SRoman Mashak "verifyCmd": "$TC actions ls action police", 405808679e7SRoman Mashak "matchPattern": "action order [0-9]*: police 0x1 rate 10Kbit burst 1Kb mtu 2Pb", 406808679e7SRoman Mashak "matchCount": "0", 407808679e7SRoman Mashak "teardown": [ 408808679e7SRoman Mashak "$TC actions flush action police" 409808679e7SRoman Mashak ] 410808679e7SRoman Mashak }, 411808679e7SRoman Mashak { 412808679e7SRoman Mashak "id": "f3c9", 413808679e7SRoman Mashak "name": "Add police action with cookie", 414808679e7SRoman Mashak "category": [ 415808679e7SRoman Mashak "actions", 416808679e7SRoman Mashak "police" 417808679e7SRoman Mashak ], 418808679e7SRoman Mashak "setup": [ 419808679e7SRoman Mashak [ 420808679e7SRoman Mashak "$TC actions flush action police", 421808679e7SRoman Mashak 0, 422808679e7SRoman Mashak 1, 423808679e7SRoman Mashak 255 424808679e7SRoman Mashak ] 425808679e7SRoman Mashak ], 426808679e7SRoman Mashak "cmdUnderTest": "$TC actions add action police rate 10mbit burst 10k index 1 cookie a1b1c1d1e1f12233bb", 427808679e7SRoman Mashak "expExitCode": "0", 428808679e7SRoman Mashak "verifyCmd": "$TC actions get action police index 1", 429808679e7SRoman Mashak "matchPattern": "action order [0-9]*: police 0x1 rate 10Mbit burst 10Kb mtu 2Kb.*cookie a1b1c1d1e1f12233bb", 430808679e7SRoman Mashak "matchCount": "1", 431808679e7SRoman Mashak "teardown": [ 432808679e7SRoman Mashak "$TC actions flush action police" 433808679e7SRoman Mashak ] 434808679e7SRoman Mashak }, 435808679e7SRoman Mashak { 436808679e7SRoman Mashak "id": "d190", 437808679e7SRoman Mashak "name": "Add police action with maximum index", 438808679e7SRoman Mashak "category": [ 439808679e7SRoman Mashak "actions", 440808679e7SRoman Mashak "police" 441808679e7SRoman Mashak ], 442808679e7SRoman Mashak "setup": [ 443808679e7SRoman Mashak [ 444808679e7SRoman Mashak "$TC actions flush action police", 445808679e7SRoman Mashak 0, 446808679e7SRoman Mashak 1, 447808679e7SRoman Mashak 255 448808679e7SRoman Mashak ] 449808679e7SRoman Mashak ], 450808679e7SRoman Mashak "cmdUnderTest": "$TC actions add action police rate 10mbit burst 10k index 4294967295", 451808679e7SRoman Mashak "expExitCode": "0", 4522f42a128SRoman Mashak "verifyCmd": "$TC actions get action police index 4294967295", 453808679e7SRoman Mashak "matchPattern": "action order [0-9]*: police 0xffffffff rate 10Mbit burst 10Kb mtu 2Kb", 454808679e7SRoman Mashak "matchCount": "1", 455808679e7SRoman Mashak "teardown": [ 4562f42a128SRoman Mashak "$TC actions flush action police" 457808679e7SRoman Mashak ] 458808679e7SRoman Mashak }, 459808679e7SRoman Mashak { 460cf797ac4SLucas Bates "id": "336e", 461cf797ac4SLucas Bates "name": "Delete police action", 462cf797ac4SLucas Bates "category": [ 463cf797ac4SLucas Bates "actions", 464cf797ac4SLucas Bates "police" 465cf797ac4SLucas Bates ], 466cf797ac4SLucas Bates "setup": [ 467cf797ac4SLucas Bates [ 468cf797ac4SLucas Bates "$TC actions flush action police", 469cf797ac4SLucas Bates 0, 470cf797ac4SLucas Bates 1, 471cf797ac4SLucas Bates 255 472cf797ac4SLucas Bates ], 473cf797ac4SLucas Bates "$TC actions add action police rate 5mbit burst 2m index 12" 474cf797ac4SLucas Bates ], 475cf797ac4SLucas Bates "cmdUnderTest": "$TC actions delete action police index 12", 476cf797ac4SLucas Bates "expExitCode": "0", 477cf797ac4SLucas Bates "verifyCmd": "$TC actions ls action police", 478cf797ac4SLucas Bates "matchPattern": "action order [0-9]*: police 0xc rate 5Mb burst 2Mb", 479cf797ac4SLucas Bates "matchCount": "0", 480cf797ac4SLucas Bates "teardown": [ 481cf797ac4SLucas Bates "$TC actions flush action police" 482cf797ac4SLucas Bates ] 483cf797ac4SLucas Bates }, 484cf797ac4SLucas Bates { 485cf797ac4SLucas Bates "id": "77fa", 486cf797ac4SLucas Bates "name": "Get single police action from many actions", 487cf797ac4SLucas Bates "category": [ 488cf797ac4SLucas Bates "actions", 489cf797ac4SLucas Bates "police" 490cf797ac4SLucas Bates ], 491cf797ac4SLucas Bates "setup": [ 492cf797ac4SLucas Bates [ 493cf797ac4SLucas Bates "$TC actions flush action police", 494cf797ac4SLucas Bates 0, 495cf797ac4SLucas Bates 1, 496cf797ac4SLucas Bates 255 497cf797ac4SLucas Bates ], 498cf797ac4SLucas Bates "$TC actions add action police rate 1mbit burst 100k index 1", 499cf797ac4SLucas Bates "$TC actions add action police rate 2mbit burst 200k index 2", 500cf797ac4SLucas Bates "$TC actions add action police rate 3mbit burst 300k index 3", 501cf797ac4SLucas Bates "$TC actions add action police rate 4mbit burst 400k index 4", 502cf797ac4SLucas Bates "$TC actions add action police rate 5mbit burst 500k index 5", 503cf797ac4SLucas Bates "$TC actions add action police rate 6mbit burst 600k index 6", 504cf797ac4SLucas Bates "$TC actions add action police rate 7mbit burst 700k index 7", 505cf797ac4SLucas Bates "$TC actions add action police rate 8mbit burst 800k index 8" 506cf797ac4SLucas Bates ], 507cf797ac4SLucas Bates "cmdUnderTest": "$TC actions get action police index 4", 508cf797ac4SLucas Bates "expExitCode": "0", 509cf797ac4SLucas Bates "verifyCmd": "$TC actions get action police index 4", 510cf797ac4SLucas Bates "matchPattern": "action order [0-9]*: police 0x4 rate 4Mbit burst 400Kb", 511cf797ac4SLucas Bates "matchCount": "1", 512cf797ac4SLucas Bates "teardown": [ 513cf797ac4SLucas Bates "$TC actions flush action police" 514cf797ac4SLucas Bates ] 515cf797ac4SLucas Bates }, 516cf797ac4SLucas Bates { 517cf797ac4SLucas Bates "id": "aa43", 518cf797ac4SLucas Bates "name": "Get single police action without specifying index", 519cf797ac4SLucas Bates "category": [ 520cf797ac4SLucas Bates "actions", 521cf797ac4SLucas Bates "police" 522cf797ac4SLucas Bates ], 523cf797ac4SLucas Bates "setup": [ 524cf797ac4SLucas Bates [ 525cf797ac4SLucas Bates "$TC actions flush action police", 526cf797ac4SLucas Bates 0, 527cf797ac4SLucas Bates 1, 528cf797ac4SLucas Bates 255 529cf797ac4SLucas Bates ], 530cf797ac4SLucas Bates "$TC actions add action police rate 1mbit burst 100k index 1" 531cf797ac4SLucas Bates ], 532cf797ac4SLucas Bates "cmdUnderTest": "$TC actions get action police", 533cf797ac4SLucas Bates "expExitCode": "255", 534cf797ac4SLucas Bates "verifyCmd": "$TC actions get action police", 535cf797ac4SLucas Bates "matchPattern": "action order [0-9]*: police", 536cf797ac4SLucas Bates "matchCount": "0", 537cf797ac4SLucas Bates "teardown": [ 538cf797ac4SLucas Bates "$TC actions flush action police" 539cf797ac4SLucas Bates ] 540cf797ac4SLucas Bates }, 541cf797ac4SLucas Bates { 542cf797ac4SLucas Bates "id": "858b", 543cf797ac4SLucas Bates "name": "List police actions", 544cf797ac4SLucas Bates "category": [ 545cf797ac4SLucas Bates "actions", 546cf797ac4SLucas Bates "police" 547cf797ac4SLucas Bates ], 548cf797ac4SLucas Bates "setup": [ 549cf797ac4SLucas Bates [ 550cf797ac4SLucas Bates "$TC actions flush action police", 551cf797ac4SLucas Bates 0, 552cf797ac4SLucas Bates 1, 553cf797ac4SLucas Bates 255 554cf797ac4SLucas Bates ], 555cf797ac4SLucas Bates "$TC actions add action police rate 1mbit burst 100k index 1", 556cf797ac4SLucas Bates "$TC actions add action police rate 2mbit burst 200k index 2", 557cf797ac4SLucas Bates "$TC actions add action police rate 3mbit burst 300k index 3", 558cf797ac4SLucas Bates "$TC actions add action police rate 4mbit burst 400k index 4", 559cf797ac4SLucas Bates "$TC actions add action police rate 5mbit burst 500k index 5", 560cf797ac4SLucas Bates "$TC actions add action police rate 6mbit burst 600k index 6", 561cf797ac4SLucas Bates "$TC actions add action police rate 7mbit burst 700k index 7", 562cf797ac4SLucas Bates "$TC actions add action police rate 8mbit burst 800k index 8" 563cf797ac4SLucas Bates ], 564cf797ac4SLucas Bates "cmdUnderTest": "$TC actions list action police", 565cf797ac4SLucas Bates "expExitCode": "0", 566cf797ac4SLucas Bates "verifyCmd": "$TC actions ls action police", 567cf797ac4SLucas Bates "matchPattern": "action order [0-9]*: police 0x[1-8] rate [1-8]Mbit burst [1-8]00Kb", 568cf797ac4SLucas Bates "matchCount": "8", 569cf797ac4SLucas Bates "teardown": [ 570cf797ac4SLucas Bates "$TC actions flush action police" 571cf797ac4SLucas Bates ] 572cf797ac4SLucas Bates }, 573cf797ac4SLucas Bates { 574cf797ac4SLucas Bates "id": "1c3a", 575cf797ac4SLucas Bates "name": "Flush police actions", 576cf797ac4SLucas Bates "category": [ 577cf797ac4SLucas Bates "actions", 578cf797ac4SLucas Bates "police" 579cf797ac4SLucas Bates ], 580cf797ac4SLucas Bates "setup": [ 581cf797ac4SLucas Bates "$TC actions add action police rate 1mbit burst 100k index 1", 582cf797ac4SLucas Bates "$TC actions add action police rate 2mbit burst 200k index 2", 583cf797ac4SLucas Bates "$TC actions add action police rate 3mbit burst 300k index 3", 584cf797ac4SLucas Bates "$TC actions add action police rate 4mbit burst 400k index 4", 585cf797ac4SLucas Bates "$TC actions add action police rate 5mbit burst 500k index 5", 586cf797ac4SLucas Bates "$TC actions add action police rate 6mbit burst 600k index 6", 587cf797ac4SLucas Bates "$TC actions add action police rate 7mbit burst 700k index 7", 588cf797ac4SLucas Bates "$TC actions add action police rate 8mbit burst 800k index 8" 589cf797ac4SLucas Bates ], 590cf797ac4SLucas Bates "cmdUnderTest": "$TC actions flush action police", 591cf797ac4SLucas Bates "expExitCode": "0", 592cf797ac4SLucas Bates "verifyCmd": "$TC actions ls action police", 593cf797ac4SLucas Bates "matchPattern": "action order [0-9]*: police", 594cf797ac4SLucas Bates "matchCount": "0", 595cf797ac4SLucas Bates "teardown": [ 596cf797ac4SLucas Bates "" 597cf797ac4SLucas Bates ] 598cf797ac4SLucas Bates }, 599cf797ac4SLucas Bates { 600cf797ac4SLucas Bates "id": "7326", 601cf797ac4SLucas Bates "name": "Add police action with control continue", 602cf797ac4SLucas Bates "category": [ 603cf797ac4SLucas Bates "actions", 604cf797ac4SLucas Bates "police" 605cf797ac4SLucas Bates ], 606cf797ac4SLucas Bates "setup": [ 607cf797ac4SLucas Bates [ 608cf797ac4SLucas Bates "$TC actions flush action police", 609cf797ac4SLucas Bates 0, 610cf797ac4SLucas Bates 1, 611cf797ac4SLucas Bates 255 612cf797ac4SLucas Bates ] 613cf797ac4SLucas Bates ], 614cf797ac4SLucas Bates "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m continue index 1", 615cf797ac4SLucas Bates "expExitCode": "0", 616cf797ac4SLucas Bates "verifyCmd": "$TC actions get action police index 1", 617cf797ac4SLucas Bates "matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action continue", 618cf797ac4SLucas Bates "matchCount": "1", 619cf797ac4SLucas Bates "teardown": [ 620cf797ac4SLucas Bates "$TC actions flush action police" 621cf797ac4SLucas Bates ] 622cf797ac4SLucas Bates }, 623cf797ac4SLucas Bates { 624cf797ac4SLucas Bates "id": "34fa", 625cf797ac4SLucas Bates "name": "Add police action with control drop", 626cf797ac4SLucas Bates "category": [ 627cf797ac4SLucas Bates "actions", 628cf797ac4SLucas Bates "police" 629cf797ac4SLucas Bates ], 630cf797ac4SLucas Bates "setup": [ 631cf797ac4SLucas Bates [ 632cf797ac4SLucas Bates "$TC actions flush action police", 633cf797ac4SLucas Bates 0, 634cf797ac4SLucas Bates 1, 635cf797ac4SLucas Bates 255 636cf797ac4SLucas Bates ] 637cf797ac4SLucas Bates ], 638cf797ac4SLucas Bates "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m drop index 1", 639cf797ac4SLucas Bates "expExitCode": "0", 640cf797ac4SLucas Bates "verifyCmd": "$TC actions ls action police", 641cf797ac4SLucas Bates "matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action drop", 642cf797ac4SLucas Bates "matchCount": "1", 643cf797ac4SLucas Bates "teardown": [ 644cf797ac4SLucas Bates "$TC actions flush action police" 645cf797ac4SLucas Bates ] 646cf797ac4SLucas Bates }, 647cf797ac4SLucas Bates { 648cf797ac4SLucas Bates "id": "8dd5", 649cf797ac4SLucas Bates "name": "Add police action with control ok", 650cf797ac4SLucas Bates "category": [ 651cf797ac4SLucas Bates "actions", 652cf797ac4SLucas Bates "police" 653cf797ac4SLucas Bates ], 654cf797ac4SLucas Bates "setup": [ 655cf797ac4SLucas Bates [ 656cf797ac4SLucas Bates "$TC actions flush action police", 657cf797ac4SLucas Bates 0, 658cf797ac4SLucas Bates 1, 659cf797ac4SLucas Bates 255 660cf797ac4SLucas Bates ] 661cf797ac4SLucas Bates ], 662cf797ac4SLucas Bates "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m ok index 1", 663cf797ac4SLucas Bates "expExitCode": "0", 664cf797ac4SLucas Bates "verifyCmd": "$TC actions ls action police", 665cf797ac4SLucas Bates "matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action pass", 666cf797ac4SLucas Bates "matchCount": "1", 667cf797ac4SLucas Bates "teardown": [ 668cf797ac4SLucas Bates "$TC actions flush action police" 669cf797ac4SLucas Bates ] 670cf797ac4SLucas Bates }, 671cf797ac4SLucas Bates { 672cf797ac4SLucas Bates "id": "b9d1", 673cf797ac4SLucas Bates "name": "Add police action with control reclassify", 674cf797ac4SLucas Bates "category": [ 675cf797ac4SLucas Bates "actions", 676cf797ac4SLucas Bates "police" 677cf797ac4SLucas Bates ], 678cf797ac4SLucas Bates "setup": [ 679cf797ac4SLucas Bates [ 680cf797ac4SLucas Bates "$TC actions flush action police", 681cf797ac4SLucas Bates 0, 682cf797ac4SLucas Bates 1, 683cf797ac4SLucas Bates 255 684cf797ac4SLucas Bates ] 685cf797ac4SLucas Bates ], 686cf797ac4SLucas Bates "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m reclassify index 1", 687cf797ac4SLucas Bates "expExitCode": "0", 688cf797ac4SLucas Bates "verifyCmd": "$TC actions get action police index 1", 689cf797ac4SLucas Bates "matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action reclassify", 690cf797ac4SLucas Bates "matchCount": "1", 691cf797ac4SLucas Bates "teardown": [ 692cf797ac4SLucas Bates "$TC actions flush action police" 693cf797ac4SLucas Bates ] 694cf797ac4SLucas Bates }, 695cf797ac4SLucas Bates { 696cf797ac4SLucas Bates "id": "c534", 697cf797ac4SLucas Bates "name": "Add police action with control pipe", 698cf797ac4SLucas Bates "category": [ 699cf797ac4SLucas Bates "actions", 700cf797ac4SLucas Bates "police" 701cf797ac4SLucas Bates ], 702cf797ac4SLucas Bates "setup": [ 703cf797ac4SLucas Bates [ 704cf797ac4SLucas Bates "$TC actions flush action police", 705cf797ac4SLucas Bates 0, 706cf797ac4SLucas Bates 1, 707cf797ac4SLucas Bates 255 708cf797ac4SLucas Bates ] 709cf797ac4SLucas Bates ], 710cf797ac4SLucas Bates "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m pipe index 1", 711cf797ac4SLucas Bates "expExitCode": "0", 712cf797ac4SLucas Bates "verifyCmd": "$TC actions ls action police", 713cf797ac4SLucas Bates "matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action pipe", 714cf797ac4SLucas Bates "matchCount": "1", 715cf797ac4SLucas Bates "teardown": [ 716cf797ac4SLucas Bates "$TC actions flush action police" 717cf797ac4SLucas Bates ] 718246e886dSDavide Caratti }, 719246e886dSDavide Caratti { 720246e886dSDavide Caratti "id": "b48b", 721246e886dSDavide Caratti "name": "Add police action with exceed goto chain control action", 722246e886dSDavide Caratti "category": [ 723246e886dSDavide Caratti "actions", 724246e886dSDavide Caratti "police" 725246e886dSDavide Caratti ], 726246e886dSDavide Caratti "setup": [ 727246e886dSDavide Caratti [ 728246e886dSDavide Caratti "$TC actions flush action police", 729246e886dSDavide Caratti 0, 730246e886dSDavide Caratti 1, 731246e886dSDavide Caratti 255 732246e886dSDavide Caratti ] 733246e886dSDavide Caratti ], 734246e886dSDavide Caratti "cmdUnderTest": "$TC actions add action police rate 1mbit burst 1k conform-exceed pass / goto chain 42", 735246e886dSDavide Caratti "expExitCode": "255", 736246e886dSDavide Caratti "verifyCmd": "$TC actions ls action police", 737246e886dSDavide Caratti "matchPattern": "action order [0-9]*: police 0x1 rate 1Mbit burst 1Kb mtu 2Kb action pass/goto chain 42", 738246e886dSDavide Caratti "matchCount": "0", 739246e886dSDavide Caratti "teardown": [ 740246e886dSDavide Caratti "$TC actions flush action police" 741246e886dSDavide Caratti ] 742d6124d6bSDavide Caratti }, 743d6124d6bSDavide Caratti { 744d6124d6bSDavide Caratti "id": "689e", 745d6124d6bSDavide Caratti "name": "Replace police action with invalid goto chain control", 746d6124d6bSDavide Caratti "category": [ 747d6124d6bSDavide Caratti "actions", 748d6124d6bSDavide Caratti "police" 749d6124d6bSDavide Caratti ], 750d6124d6bSDavide Caratti "setup": [ 751d6124d6bSDavide Caratti [ 752d6124d6bSDavide Caratti "$TC actions flush action police", 753d6124d6bSDavide Caratti 0, 754d6124d6bSDavide Caratti 1, 755d6124d6bSDavide Caratti 255 756d6124d6bSDavide Caratti ], 757d6124d6bSDavide Caratti "$TC actions add action police rate 3mbit burst 250k drop index 90" 758d6124d6bSDavide Caratti ], 759d6124d6bSDavide Caratti "cmdUnderTest": "$TC actions replace action police rate 3mbit burst 250k goto chain 42 index 90 cookie c1a0c1a0", 760d6124d6bSDavide Caratti "expExitCode": "255", 761d6124d6bSDavide Caratti "verifyCmd": "$TC actions get action police index 90", 762d6124d6bSDavide Caratti "matchPattern": "action order [0-9]*: police 0x5a rate 3Mbit burst 250Kb mtu 2Kb action drop", 763d6124d6bSDavide Caratti "matchCount": "1", 764d6124d6bSDavide Caratti "teardown": [ 765d6124d6bSDavide Caratti "$TC actions flush action police" 766d6124d6bSDavide Caratti ] 767c127ffa2SBaowen Zheng }, 768c127ffa2SBaowen Zheng { 769c127ffa2SBaowen Zheng "id": "cdd7", 770c127ffa2SBaowen Zheng "name": "Add valid police action with packets per second rate limit", 771c127ffa2SBaowen Zheng "category": [ 772c127ffa2SBaowen Zheng "actions", 773c127ffa2SBaowen Zheng "police" 774c127ffa2SBaowen Zheng ], 775c127ffa2SBaowen Zheng "setup": [ 776c127ffa2SBaowen Zheng [ 777c127ffa2SBaowen Zheng "$TC actions flush action police", 778c127ffa2SBaowen Zheng 0, 779c127ffa2SBaowen Zheng 1, 780c127ffa2SBaowen Zheng 255 781c127ffa2SBaowen Zheng ] 782c127ffa2SBaowen Zheng ], 783c127ffa2SBaowen Zheng "cmdUnderTest": "$TC actions add action police pkts_rate 1000 pkts_burst 200 index 1", 784c127ffa2SBaowen Zheng "expExitCode": "0", 785c127ffa2SBaowen Zheng "verifyCmd": "$TC actions ls action police", 786c127ffa2SBaowen Zheng "matchPattern": "action order [0-9]*: police 0x1 rate 0bit burst 0b mtu 4096Mb pkts_rate 1000 pkts_burst 200", 787c127ffa2SBaowen Zheng "matchCount": "1", 788c127ffa2SBaowen Zheng "teardown": [ 789c127ffa2SBaowen Zheng "$TC actions flush action police" 790c127ffa2SBaowen Zheng ] 791c127ffa2SBaowen Zheng }, 792c127ffa2SBaowen Zheng { 793c127ffa2SBaowen Zheng "id": "f5bc", 794c127ffa2SBaowen Zheng "name": "Add invalid police action with both bps and pps", 795c127ffa2SBaowen Zheng "category": [ 796c127ffa2SBaowen Zheng "actions", 797c127ffa2SBaowen Zheng "police" 798c127ffa2SBaowen Zheng ], 799c127ffa2SBaowen Zheng "setup": [ 800c127ffa2SBaowen Zheng [ 801c127ffa2SBaowen Zheng "$TC actions flush action police", 802c127ffa2SBaowen Zheng 0, 803c127ffa2SBaowen Zheng 1, 804c127ffa2SBaowen Zheng 255 805c127ffa2SBaowen Zheng ] 806c127ffa2SBaowen Zheng ], 807c127ffa2SBaowen Zheng "cmdUnderTest": "$TC actions add action police rate 1kbit burst 10k pkts_rate 1000 pkts_burst 200 index 1", 808c127ffa2SBaowen Zheng "expExitCode": "255", 809c127ffa2SBaowen Zheng "verifyCmd": "$TC actions ls action police", 810c127ffa2SBaowen Zheng "matchPattern": "action order [0-9]*: police 0x1 ", 811c127ffa2SBaowen Zheng "matchCount": "0", 812c127ffa2SBaowen Zheng "teardown": [ 813c127ffa2SBaowen Zheng "$TC actions flush action police" 814c127ffa2SBaowen Zheng ] 815*eb473bacSBaowen Zheng }, 816*eb473bacSBaowen Zheng { 817*eb473bacSBaowen Zheng "id": "7d64", 818*eb473bacSBaowen Zheng "name": "Add police action with skip_hw option", 819*eb473bacSBaowen Zheng "category": [ 820*eb473bacSBaowen Zheng "actions", 821*eb473bacSBaowen Zheng "police" 822*eb473bacSBaowen Zheng ], 823*eb473bacSBaowen Zheng "setup": [ 824*eb473bacSBaowen Zheng [ 825*eb473bacSBaowen Zheng "$TC actions flush action police", 826*eb473bacSBaowen Zheng 0, 827*eb473bacSBaowen Zheng 1, 828*eb473bacSBaowen Zheng 255 829*eb473bacSBaowen Zheng ] 830*eb473bacSBaowen Zheng ], 831*eb473bacSBaowen Zheng "cmdUnderTest": "$TC actions add action police rate 1kbit burst 10k index 100 skip_hw", 832*eb473bacSBaowen Zheng "expExitCode": "0", 833*eb473bacSBaowen Zheng "verifyCmd": "$TC actions ls action police | grep skip_hw", 834*eb473bacSBaowen Zheng "matchPattern": "skip_hw", 835*eb473bacSBaowen Zheng "matchCount": "1", 836*eb473bacSBaowen Zheng "teardown": [ 837*eb473bacSBaowen Zheng "$TC actions flush action police" 838*eb473bacSBaowen Zheng ] 839cf797ac4SLucas Bates } 840cf797ac4SLucas Bates] 841