| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719 |
- [
- {
- "id": "49aa",
- "name": "Add valid basic police action",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 1kbit burst 10k index 1",
- "expExitCode": "0",
- "verifyCmd": "$TC actions ls action police",
- "matchPattern": "action order [0-9]*: police 0x1 rate 1Kbit burst 10Kb",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "3abe",
- "name": "Add police action with duplicate index",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ],
- "$TC actions add action police rate 4Mbit burst 120k index 9"
- ],
- "cmdUnderTest": "$TC actions add action police rate 8kbit burst 24k index 9",
- "expExitCode": "255",
- "verifyCmd": "$TC actions ls action police",
- "matchPattern": "action order [0-9]*: police 0x9",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "49fa",
- "name": "Add valid police action with mtu",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 1k index 98",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action police index 98",
- "matchPattern": "action order [0-9]*: police 0x62 rate 90Kbit burst 10Kb mtu 1Kb",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "7943",
- "name": "Add valid police action with peakrate",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 2kb peakrate 100kbit index 3",
- "expExitCode": "0",
- "verifyCmd": "$TC actions ls action police",
- "matchPattern": "action order [0-9]*: police 0x3 rate 90Kbit burst 10Kb mtu 2Kb peakrate 100Kbit",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "055e",
- "name": "Add police action with peakrate and no mtu",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 5kbit burst 6kb peakrate 10kbit index 9",
- "expExitCode": "255",
- "verifyCmd": "$TC actions ls action police",
- "matchPattern": "action order [0-9]*: police 0x9 rate 5Kb burst 10Kb",
- "matchCount": "0",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "f057",
- "name": "Add police action with valid overhead",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 1mbit burst 100k overhead 64 index 64",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action police index 64",
- "matchPattern": "action order [0-9]*: police 0x40 rate 1Mbit burst 100Kb mtu 2Kb action reclassify overhead 64b",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "7ffb",
- "name": "Add police action with ethernet linklayer type",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 2mbit burst 200k linklayer ethernet index 8",
- "expExitCode": "0",
- "verifyCmd": "$TC actions show action police",
- "matchPattern": "action order [0-9]*: police 0x8 rate 2Mbit burst 200Kb mtu 2Kb action reclassify overhead 0b",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "3dda",
- "name": "Add police action with atm linklayer type",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 2mbit burst 200k linklayer atm index 8",
- "expExitCode": "0",
- "verifyCmd": "$TC actions show action police",
- "matchPattern": "action order [0-9]*: police 0x8 rate 2Mbit burst 200Kb mtu 2Kb action reclassify overhead 0b linklayer atm",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "551b",
- "name": "Add police actions with conform-exceed control continue/drop",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed continue/drop index 1",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action police index 1",
- "matchPattern": "action order [0-9]*: police 0x1 rate 3Mbit burst 250Kb mtu 2Kb action continue/drop",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "0c70",
- "name": "Add police actions with conform-exceed control pass/reclassify",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed pass/reclassify index 4",
- "expExitCode": "0",
- "verifyCmd": "$TC actions ls action police",
- "matchPattern": "action order [0-9]*: police 0x4 rate 3Mbit burst 250Kb mtu 2Kb action pass/reclassify",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "d946",
- "name": "Add police actions with conform-exceed control pass/pipe",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed pass/pipe index 5",
- "expExitCode": "0",
- "verifyCmd": "$TC actions ls action police",
- "matchPattern": "action order [0-9]*: police 0x5 rate 3Mbit burst 250Kb mtu 2Kb action pass/pipe",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "ddd6",
- "name": "Add police action with invalid rate value",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 3tb burst 250k conform-exceed pass/pipe index 5",
- "expExitCode": "255",
- "verifyCmd": "$TC actions ls action police",
- "matchPattern": "action order [0-9]*: police 0x5 rate 3Tb burst 250Kb mtu 2Kb action pass/pipe",
- "matchCount": "0",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "f61c",
- "name": "Add police action with invalid burst value",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 3kbit burst 250P conform-exceed pass/pipe index 5",
- "expExitCode": "255",
- "verifyCmd": "$TC actions ls action police",
- "matchPattern": "action order [0-9]*: police 0x5 rate 3Kbit burst 250Pb mtu 2Kb action pass/pipe",
- "matchCount": "0",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "6aaf",
- "name": "Add police actions with conform-exceed control pass/pipe [with numeric values]",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed 0/3 index 1",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action police index 1",
- "matchPattern": "action order [0-9]*: police 0x1 rate 3Mbit burst 250Kb mtu 2Kb action pass/pipe",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "29b1",
- "name": "Add police actions with conform-exceed control <invalid>/drop",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed 10/drop index 1",
- "expExitCode": "255",
- "verifyCmd": "$TC actions ls action police",
- "matchPattern": "action order [0-9]*: police 0x1 rate 3Mbit burst 250Kb mtu 2Kb action ",
- "matchCount": "0",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "c26f",
- "name": "Add police action with invalid peakrate value",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 2kb peakrate 100T index 1",
- "expExitCode": "255",
- "verifyCmd": "$TC actions ls action police",
- "matchPattern": "action order [0-9]*: police 0x1 rate 90Kbit burst 10Kb mtu 2Kb peakrate 100Tbit",
- "matchCount": "0",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "db04",
- "name": "Add police action with invalid mtu value",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 10kbit burst 10k mtu 2Pbit index 1",
- "expExitCode": "255",
- "verifyCmd": "$TC actions ls action police",
- "matchPattern": "action order [0-9]*: police 0x1 rate 10Kbit burst 1Kb mtu 2Pb",
- "matchCount": "0",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "f3c9",
- "name": "Add police action with cookie",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 10mbit burst 10k index 1 cookie a1b1c1d1e1f12233bb",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action police index 1",
- "matchPattern": "action order [0-9]*: police 0x1 rate 10Mbit burst 10Kb mtu 2Kb.*cookie a1b1c1d1e1f12233bb",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "d190",
- "name": "Add police action with maximum index",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 10mbit burst 10k index 4294967295",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action police index 4294967295",
- "matchPattern": "action order [0-9]*: police 0xffffffff rate 10Mbit burst 10Kb mtu 2Kb",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "336e",
- "name": "Delete police action",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ],
- "$TC actions add action police rate 5mbit burst 2m index 12"
- ],
- "cmdUnderTest": "$TC actions delete action police index 12",
- "expExitCode": "0",
- "verifyCmd": "$TC actions ls action police",
- "matchPattern": "action order [0-9]*: police 0xc rate 5Mb burst 2Mb",
- "matchCount": "0",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "77fa",
- "name": "Get single police action from many actions",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ],
- "$TC actions add action police rate 1mbit burst 100k index 1",
- "$TC actions add action police rate 2mbit burst 200k index 2",
- "$TC actions add action police rate 3mbit burst 300k index 3",
- "$TC actions add action police rate 4mbit burst 400k index 4",
- "$TC actions add action police rate 5mbit burst 500k index 5",
- "$TC actions add action police rate 6mbit burst 600k index 6",
- "$TC actions add action police rate 7mbit burst 700k index 7",
- "$TC actions add action police rate 8mbit burst 800k index 8"
- ],
- "cmdUnderTest": "$TC actions get action police index 4",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action police index 4",
- "matchPattern": "action order [0-9]*: police 0x4 rate 4Mbit burst 400Kb",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "aa43",
- "name": "Get single police action without specifying index",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ],
- "$TC actions add action police rate 1mbit burst 100k index 1"
- ],
- "cmdUnderTest": "$TC actions get action police",
- "expExitCode": "255",
- "verifyCmd": "$TC actions get action police",
- "matchPattern": "action order [0-9]*: police",
- "matchCount": "0",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "858b",
- "name": "List police actions",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ],
- "$TC actions add action police rate 1mbit burst 100k index 1",
- "$TC actions add action police rate 2mbit burst 200k index 2",
- "$TC actions add action police rate 3mbit burst 300k index 3",
- "$TC actions add action police rate 4mbit burst 400k index 4",
- "$TC actions add action police rate 5mbit burst 500k index 5",
- "$TC actions add action police rate 6mbit burst 600k index 6",
- "$TC actions add action police rate 7mbit burst 700k index 7",
- "$TC actions add action police rate 8mbit burst 800k index 8"
- ],
- "cmdUnderTest": "$TC actions list action police",
- "expExitCode": "0",
- "verifyCmd": "$TC actions ls action police",
- "matchPattern": "action order [0-9]*: police 0x[1-8] rate [1-8]Mbit burst [1-8]00Kb",
- "matchCount": "8",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "1c3a",
- "name": "Flush police actions",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- "$TC actions add action police rate 1mbit burst 100k index 1",
- "$TC actions add action police rate 2mbit burst 200k index 2",
- "$TC actions add action police rate 3mbit burst 300k index 3",
- "$TC actions add action police rate 4mbit burst 400k index 4",
- "$TC actions add action police rate 5mbit burst 500k index 5",
- "$TC actions add action police rate 6mbit burst 600k index 6",
- "$TC actions add action police rate 7mbit burst 700k index 7",
- "$TC actions add action police rate 8mbit burst 800k index 8"
- ],
- "cmdUnderTest": "$TC actions flush action police",
- "expExitCode": "0",
- "verifyCmd": "$TC actions ls action police",
- "matchPattern": "action order [0-9]*: police",
- "matchCount": "0",
- "teardown": [
- ""
- ]
- },
- {
- "id": "7326",
- "name": "Add police action with control continue",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m continue index 1",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action police index 1",
- "matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action continue",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "34fa",
- "name": "Add police action with control drop",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m drop index 1",
- "expExitCode": "0",
- "verifyCmd": "$TC actions ls action police",
- "matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action drop",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "8dd5",
- "name": "Add police action with control ok",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m ok index 1",
- "expExitCode": "0",
- "verifyCmd": "$TC actions ls action police",
- "matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action pass",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "b9d1",
- "name": "Add police action with control reclassify",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m reclassify index 1",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action police index 1",
- "matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action reclassify",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action police"
- ]
- },
- {
- "id": "c534",
- "name": "Add police action with control pipe",
- "category": [
- "actions",
- "police"
- ],
- "setup": [
- [
- "$TC actions flush action police",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m pipe index 1",
- "expExitCode": "0",
- "verifyCmd": "$TC actions ls action police",
- "matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action pipe",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action police"
- ]
- }
- ]
|