| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311 |
- [
- {
- "id": "ddd9",
- "name": "Add prio qdisc on egress",
- "category": [
- "qdisc",
- "prio"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- ],
- "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root prio",
- "expExitCode": "0",
- "verifyCmd": "$TC qdisc show dev $DUMMY",
- "matchPattern": "qdisc prio 1: root",
- "matchCount": "1",
- "teardown": [
- "$TC qdisc del dev $DUMMY handle 1: root prio"
- ]
- },
- {
- "id": "aa71",
- "name": "Add prio qdisc on egress with handle of maximum value",
- "category": [
- "qdisc",
- "prio"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- ],
- "cmdUnderTest": "$TC qdisc add dev $DUMMY root handle ffff: prio",
- "expExitCode": "0",
- "verifyCmd": "$TC qdisc show dev $DUMMY",
- "matchPattern": "qdisc prio ffff: root",
- "matchCount": "1",
- "teardown": [
- ]
- },
- {
- "id": "db37",
- "name": "Add prio qdisc on egress with invalid handle exceeding maximum value",
- "category": [
- "qdisc",
- "prio"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- ],
- "cmdUnderTest": "$TC qdisc add dev $DUMMY root handle 10000: prio",
- "expExitCode": "255",
- "verifyCmd": "$TC qdisc show dev $DUMMY",
- "matchPattern": "qdisc prio 10000: root",
- "matchCount": "0",
- "teardown": [
- ]
- },
- {
- "id": "39d8",
- "name": "Add prio qdisc on egress with unsupported argument",
- "category": [
- "qdisc",
- "prio"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- ],
- "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root prio foorbar",
- "expExitCode": "1",
- "verifyCmd": "$TC qdisc show dev $DUMMY",
- "matchPattern": "qdisc prio 1: root",
- "matchCount": "0",
- "teardown": [
- ]
- },
- {
- "id": "5769",
- "name": "Add prio qdisc on egress with 4 bands and new priomap",
- "category": [
- "qdisc",
- "prio"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- ],
- "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root prio bands 4 priomap 1 1 2 2 3 3 0 0 1 2 3 0 0 0 0 0",
- "expExitCode": "0",
- "verifyCmd": "$TC qdisc show dev $DUMMY",
- "matchPattern": "qdisc prio 1: root.*bands 4 priomap.*1 1 2 2 3 3 0 0 1 2 3 0 0 0 0 0",
- "matchCount": "1",
- "teardown": [
- "$TC qdisc del dev $DUMMY handle 1: root prio"
- ]
- },
- {
- "id": "fe0f",
- "name": "Add prio qdisc on egress with 4 bands and priomap exceeding TC_PRIO_MAX entries",
- "category": [
- "qdisc",
- "prio"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- ],
- "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root prio bands 4 priomap 1 1 2 2 3 3 0 0 1 2 3 0 0 0 0 0 1 1",
- "expExitCode": "1",
- "verifyCmd": "$TC qdisc show dev $DUMMY",
- "matchPattern": "qdisc prio 1: root.*bands 4 priomap.*1 1 2 2 3 3 0 0 1 2 3 0 0 0 0 0 1 1",
- "matchCount": "0",
- "teardown": [
- ]
- },
- {
- "id": "1f91",
- "name": "Add prio qdisc on egress with 4 bands and priomap's values exceeding bands number",
- "category": [
- "qdisc",
- "prio"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- ],
- "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root prio bands 4 priomap 1 1 2 2 7 5 0 0 1 2 3 0 0 0 0 0",
- "expExitCode": "1",
- "verifyCmd": "$TC qdisc show dev $DUMMY",
- "matchPattern": "qdisc prio 1: root.*bands 4 priomap.*1 1 2 2 7 5 0 0 1 2 3 0 0 0 0 0",
- "matchCount": "0",
- "teardown": [
- ]
- },
- {
- "id": "d248",
- "name": "Add prio qdisc on egress with invalid bands value (< 2)",
- "category": [
- "qdisc",
- "prio"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- ],
- "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root prio bands 1 priomap 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0",
- "expExitCode": "2",
- "verifyCmd": "$TC qdisc show dev $DUMMY",
- "matchPattern": "qdisc prio 1: root.*bands 1 priomap.*0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0",
- "matchCount": "0",
- "teardown": [
- ]
- },
- {
- "id": "1d0e",
- "name": "Add prio qdisc on egress with invalid bands value exceeding TCQ_PRIO_BANDS",
- "category": [
- "qdisc",
- "prio"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- ],
- "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root prio bands 1024 priomap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16",
- "expExitCode": "2",
- "verifyCmd": "$TC qdisc show dev $DUMMY",
- "matchPattern": "qdisc prio 1: root.*bands 1024 priomap.*1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16",
- "matchCount": "0",
- "teardown": [
- ]
- },
- {
- "id": "1971",
- "name": "Replace default prio qdisc on egress with 8 bands and new priomap",
- "category": [
- "qdisc",
- "prio"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- "$TC qdisc add dev $DUMMY handle 1: root prio"
- ],
- "cmdUnderTest": "$TC qdisc replace dev $DUMMY handle 1: root prio bands 8 priomap 1 1 2 2 3 3 4 4 5 5 6 6 7 7 0 0",
- "expExitCode": "0",
- "verifyCmd": "$TC qdisc show dev $DUMMY",
- "matchPattern": "qdisc prio 1: root.*bands 8 priomap.*1 1 2 2 3 3 4 4 5 5 6 6 7 7 0 0",
- "matchCount": "1",
- "teardown": [
- "$TC qdisc del dev $DUMMY handle 1: root prio"
- ]
- },
- {
- "id": "d88a",
- "name": "Add duplicate prio qdisc on egress",
- "category": [
- "qdisc",
- "prio"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- "$TC qdisc add dev $DUMMY handle 1: root prio"
- ],
- "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root prio",
- "expExitCode": "2",
- "verifyCmd": "$TC qdisc show dev $DUMMY",
- "matchPattern": "qdisc prio 1: root",
- "matchCount": "1",
- "teardown": [
- "$TC qdisc del dev $DUMMY handle 1: root prio"
- ]
- },
- {
- "id": "5948",
- "name": "Delete nonexistent prio qdisc",
- "category": [
- "qdisc",
- "prio"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- ],
- "cmdUnderTest": "$TC qdisc del dev $DUMMY root handle 1: prio",
- "expExitCode": "2",
- "verifyCmd": "$TC qdisc show dev $DUMMY",
- "matchPattern": "qdisc prio 1: root",
- "matchCount": "0",
- "teardown": [
- ]
- },
- {
- "id": "6c0a",
- "name": "Add prio qdisc on egress with invalid format for handles",
- "category": [
- "qdisc",
- "prio"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- ],
- "cmdUnderTest": "$TC qdisc add dev $DUMMY root handle 123^ prio",
- "expExitCode": "255",
- "verifyCmd": "$TC qdisc show dev $DUMMY",
- "matchPattern": "qdisc prio 123 root",
- "matchCount": "0",
- "teardown": [
- ]
- },
- {
- "id": "0175",
- "name": "Delete prio qdisc twice",
- "category": [
- "qdisc",
- "prio"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- "$TC qdisc add dev $DUMMY root handle 1: prio",
- "$TC qdisc del dev $DUMMY root handle 1: prio"
- ],
- "cmdUnderTest": "$TC qdisc del dev $DUMMY handle 1: root prio",
- "expExitCode": "2",
- "verifyCmd": "$TC qdisc show dev $DUMMY",
- "matchPattern": "qdisc ingress ffff:",
- "matchCount": "0",
- "teardown": [
- ]
- },
- {
- "id": "2410",
- "name": "Show prio class",
- "category": [
- "qdisc",
- "prio"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- ],
- "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root prio",
- "expExitCode": "0",
- "verifyCmd": "$TC class show dev $DUMMY",
- "matchPattern": "class prio 1:[0-9]+ parent 1:",
- "matchCount": "3",
- "teardown": [
- "$TC qdisc del dev $DUMMY handle 1: root prio"
- ]
- }
- ]
|