1[ 2 { 3 "id": "8942", 4 "name": "Create GRED with default setting", 5 "category": [ 6 "qdisc", 7 "gred" 8 ], 9 "plugins": { 10 "requires": "nsPlugin" 11 }, 12 "setup": [ 13 "$IP link add dev $DUMMY type dummy || /bin/true" 14 ], 15 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root gred setup vqs 10 default 1", 16 "expExitCode": "0", 17 "verifyCmd": "$TC qdisc show dev $DUMMY", 18 "matchPattern": "qdisc gred 1: root refcnt [0-9]+ vqs 10 default 1", 19 "matchCount": "1", 20 "teardown": [ 21 "$TC qdisc del dev $DUMMY handle 1: root", 22 "$IP link del dev $DUMMY type dummy" 23 ] 24 }, 25 { 26 "id": "5783", 27 "name": "Create GRED with grio setting", 28 "category": [ 29 "qdisc", 30 "gred" 31 ], 32 "plugins": { 33 "requires": "nsPlugin" 34 }, 35 "setup": [ 36 "$IP link add dev $DUMMY type dummy || /bin/true" 37 ], 38 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root gred setup vqs 10 default 1 grio", 39 "expExitCode": "0", 40 "verifyCmd": "$TC qdisc show dev $DUMMY", 41 "matchPattern": "qdisc gred 1: root refcnt [0-9]+ vqs 10 default 1.*grio", 42 "matchCount": "1", 43 "teardown": [ 44 "$TC qdisc del dev $DUMMY handle 1: root", 45 "$IP link del dev $DUMMY type dummy" 46 ] 47 }, 48 { 49 "id": "8a09", 50 "name": "Create GRED with limit setting", 51 "category": [ 52 "qdisc", 53 "gred" 54 ], 55 "plugins": { 56 "requires": "nsPlugin" 57 }, 58 "setup": [ 59 "$IP link add dev $DUMMY type dummy || /bin/true" 60 ], 61 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root gred setup vqs 10 default 1 limit 1000", 62 "expExitCode": "0", 63 "verifyCmd": "$TC qdisc show dev $DUMMY", 64 "matchPattern": "qdisc gred 1: root refcnt [0-9]+ vqs 10 default 1 limit 1000b", 65 "matchCount": "1", 66 "teardown": [ 67 "$TC qdisc del dev $DUMMY handle 1: root", 68 "$IP link del dev $DUMMY type dummy" 69 ] 70 }, 71 { 72 "id": "48ca", 73 "name": "Create GRED with ecn setting", 74 "category": [ 75 "qdisc", 76 "gred" 77 ], 78 "plugins": { 79 "requires": "nsPlugin" 80 }, 81 "setup": [ 82 "$IP link add dev $DUMMY type dummy || /bin/true" 83 ], 84 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root gred setup vqs 10 default 2 ecn", 85 "expExitCode": "0", 86 "verifyCmd": "$TC qdisc show dev $DUMMY", 87 "matchPattern": "qdisc gred 1: root refcnt [0-9]+ vqs 10 default 2.*ecn", 88 "matchCount": "1", 89 "teardown": [ 90 "$TC qdisc del dev $DUMMY handle 1: root", 91 "$IP link del dev $DUMMY type dummy" 92 ] 93 }, 94 { 95 "id": "48cb", 96 "name": "Create GRED with harddrop setting", 97 "category": [ 98 "qdisc", 99 "gred" 100 ], 101 "plugins": { 102 "requires": "nsPlugin" 103 }, 104 "setup": [ 105 "$IP link add dev $DUMMY type dummy || /bin/true" 106 ], 107 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root gred setup vqs 10 default 2 harddrop", 108 "expExitCode": "0", 109 "verifyCmd": "$TC qdisc show dev $DUMMY", 110 "matchPattern": "qdisc gred 1: root refcnt [0-9]+ vqs 10 default 2.*harddrop", 111 "matchCount": "1", 112 "teardown": [ 113 "$TC qdisc del dev $DUMMY handle 1: root", 114 "$IP link del dev $DUMMY type dummy" 115 ] 116 }, 117 { 118 "id": "763a", 119 "name": "Change GRED setting", 120 "category": [ 121 "qdisc", 122 "gred" 123 ], 124 "plugins": { 125 "requires": "nsPlugin" 126 }, 127 "setup": [ 128 "$IP link add dev $DUMMY type dummy || /bin/true", 129 "$TC qdisc add dev $DUMMY handle 1: root gred setup vqs 10 default 1" 130 ], 131 "cmdUnderTest": "$TC qdisc change dev $DUMMY handle 1: root gred limit 60KB min 15K max 25K burst 64 avpkt 1500 bandwidth 10Mbit DP 1 probability 0.1", 132 "expExitCode": "0", 133 "verifyCmd": "$TC qdisc show dev $DUMMY", 134 "matchPattern": "qdisc gred 1: root refcnt [0-9]+ vqs 10 default 1 limit.*vq 1 prio [0-9]+ limit 60Kb min 15Kb max 25Kb", 135 "matchCount": "1", 136 "teardown": [ 137 "$TC qdisc del dev $DUMMY handle 1: root", 138 "$IP link del dev $DUMMY type dummy" 139 ] 140 }, 141 { 142 "id": "8309", 143 "name": "Show GRED class", 144 "category": [ 145 "qdisc", 146 "gred" 147 ], 148 "plugins": { 149 "requires": "nsPlugin" 150 }, 151 "setup": [ 152 "$IP link add dev $DUMMY type dummy || /bin/true" 153 ], 154 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root gred setup vqs 10 default 1", 155 "expExitCode": "0", 156 "verifyCmd": "$TC class show dev $DUMMY", 157 "matchPattern": "class gred 1:", 158 "matchCount": "0", 159 "teardown": [ 160 "$TC qdisc del dev $DUMMY handle 1: root", 161 "$IP link del dev $DUMMY type dummy" 162 ] 163 } 164] 165