[ { "id": "3460", "name": "Create CBQ with default setting", "category": [ "qdisc", "cbq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ "$IP link add dev $DUMMY type dummy || /bin/true" ], "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cbq bandwidth 10000 avpkt 9000", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc cbq 1: root refcnt [0-9]+ rate 10Kbit \\(bounded,isolated\\) prio no-transmit", "matchCount": "1", "teardown": [ "$TC qdisc del dev $DUMMY handle 1: root", "$IP link del dev $DUMMY type dummy" ] }, { "id": "0592", "name": "Create CBQ with mpu", "category": [ "qdisc", "cbq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ "$IP link add dev $DUMMY type dummy || /bin/true" ], "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cbq bandwidth 10000 avpkt 9000 mpu 1000", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc cbq 1: root refcnt [0-9]+ rate 10Kbit \\(bounded,isolated\\) prio no-transmit", "matchCount": "1", "teardown": [ "$TC qdisc del dev $DUMMY handle 1: root", "$IP link del dev $DUMMY type dummy" ] }, { "id": "4684", "name": "Create CBQ with valid cell num", "category": [ "qdisc", "cbq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ "$IP link add dev $DUMMY type dummy || /bin/true" ], "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cbq bandwidth 10000 avpkt 9000 cell 128", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc cbq 1: root refcnt [0-9]+ rate 10Kbit \\(bounded,isolated\\) prio no-transmit", "matchCount": "1", "teardown": [ "$TC qdisc del dev $DUMMY handle 1: root", "$IP link del dev $DUMMY type dummy" ] }, { "id": "4345", "name": "Create CBQ with invalid cell num", "category": [ "qdisc", "cbq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ "$IP link add dev $DUMMY type dummy || /bin/true" ], "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cbq bandwidth 10000 avpkt 9000 cell 100", "expExitCode": "1", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc cbq 1: root refcnt [0-9]+ rate 10Kbit \\(bounded,isolated\\) prio no-transmit", "matchCount": "0", "teardown": [ "$IP link del dev $DUMMY type dummy" ] }, { "id": "4525", "name": "Create CBQ with valid ewma", "category": [ "qdisc", "cbq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ "$IP link add dev $DUMMY type dummy || /bin/true" ], "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cbq bandwidth 10000 avpkt 9000 ewma 16", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc cbq 1: root refcnt [0-9]+ rate 10Kbit \\(bounded,isolated\\) prio no-transmit", "matchCount": "1", "teardown": [ "$TC qdisc del dev $DUMMY handle 1: root", "$IP link del dev $DUMMY type dummy" ] }, { "id": "6784", "name": "Create CBQ with invalid ewma", "category": [ "qdisc", "cbq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ "$IP link add dev $DUMMY type dummy || /bin/true" ], "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cbq bandwidth 10000 avpkt 9000 ewma 128", "expExitCode": "1", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc cbq 1: root refcnt [0-9]+ rate 10Kbit \\(bounded,isolated\\) prio no-transmit", "matchCount": "0", "teardown": [ "$IP link del dev $DUMMY type dummy" ] }, { "id": "5468", "name": "Delete CBQ with handle", "category": [ "qdisc", "cbq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ "$IP link add dev $DUMMY type dummy || /bin/true", "$TC qdisc add dev $DUMMY handle 1: root cbq bandwidth 10000 avpkt 9000" ], "cmdUnderTest": "$TC qdisc del dev $DUMMY handle 1: root", "expExitCode": "0", "verifyCmd": "$TC qdisc show dev $DUMMY", "matchPattern": "qdisc cbq 1: root refcnt [0-9]+ rate 10Kbit \\(bounded,isolated\\) prio no-transmit", "matchCount": "0", "teardown": [ "$IP link del dev $DUMMY type dummy" ] }, { "id": "492a", "name": "Show CBQ class", "category": [ "qdisc", "cbq" ], "plugins": { "requires": "nsPlugin" }, "setup": [ "$IP link add dev $DUMMY type dummy || /bin/true" ], "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cbq bandwidth 10000 avpkt 9000", "expExitCode": "0", "verifyCmd": "$TC class show dev $DUMMY", "matchPattern": "class cbq 1: root rate 10Kbit \\(bounded,isolated\\) prio no-transmit", "matchCount": "1", "teardown": [ "$TC qdisc del dev $DUMMY handle 1: root", "$IP link del dev $DUMMY type dummy" ] } ]