1*9b1edbc1SZhengchao Shao[ 2*9b1edbc1SZhengchao Shao { 3*9b1edbc1SZhengchao Shao "id": "0385", 4*9b1edbc1SZhengchao Shao "name": "Create DRR with default setting", 5*9b1edbc1SZhengchao Shao "category": [ 6*9b1edbc1SZhengchao Shao "qdisc", 7*9b1edbc1SZhengchao Shao "drr" 8*9b1edbc1SZhengchao Shao ], 9*9b1edbc1SZhengchao Shao "plugins": { 10*9b1edbc1SZhengchao Shao "requires": "nsPlugin" 11*9b1edbc1SZhengchao Shao }, 12*9b1edbc1SZhengchao Shao "setup": [ 13*9b1edbc1SZhengchao Shao "$IP link add dev $DUMMY type dummy || /bin/true" 14*9b1edbc1SZhengchao Shao ], 15*9b1edbc1SZhengchao Shao "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root drr", 16*9b1edbc1SZhengchao Shao "expExitCode": "0", 17*9b1edbc1SZhengchao Shao "verifyCmd": "$TC qdisc show dev $DUMMY", 18*9b1edbc1SZhengchao Shao "matchPattern": "qdisc drr 1: root refcnt [0-9]+", 19*9b1edbc1SZhengchao Shao "matchCount": "1", 20*9b1edbc1SZhengchao Shao "teardown": [ 21*9b1edbc1SZhengchao Shao "$TC qdisc del dev $DUMMY handle 1: root", 22*9b1edbc1SZhengchao Shao "$IP link del dev $DUMMY type dummy" 23*9b1edbc1SZhengchao Shao ] 24*9b1edbc1SZhengchao Shao }, 25*9b1edbc1SZhengchao Shao { 26*9b1edbc1SZhengchao Shao "id": "2375", 27*9b1edbc1SZhengchao Shao "name": "Delete DRR with handle", 28*9b1edbc1SZhengchao Shao "category": [ 29*9b1edbc1SZhengchao Shao "qdisc", 30*9b1edbc1SZhengchao Shao "drr" 31*9b1edbc1SZhengchao Shao ], 32*9b1edbc1SZhengchao Shao "plugins": { 33*9b1edbc1SZhengchao Shao "requires": "nsPlugin" 34*9b1edbc1SZhengchao Shao }, 35*9b1edbc1SZhengchao Shao "setup": [ 36*9b1edbc1SZhengchao Shao "$IP link add dev $DUMMY type dummy || /bin/true", 37*9b1edbc1SZhengchao Shao "$TC qdisc add dev $DUMMY handle 1: root drr" 38*9b1edbc1SZhengchao Shao ], 39*9b1edbc1SZhengchao Shao "cmdUnderTest": "$TC qdisc del dev $DUMMY handle 1: root", 40*9b1edbc1SZhengchao Shao "expExitCode": "0", 41*9b1edbc1SZhengchao Shao "verifyCmd": "$TC qdisc show dev $DUMMY", 42*9b1edbc1SZhengchao Shao "matchPattern": "qdisc drr 1: root refcnt [0-9]+", 43*9b1edbc1SZhengchao Shao "matchCount": "0", 44*9b1edbc1SZhengchao Shao "teardown": [ 45*9b1edbc1SZhengchao Shao "$IP link del dev $DUMMY type dummy" 46*9b1edbc1SZhengchao Shao ] 47*9b1edbc1SZhengchao Shao }, 48*9b1edbc1SZhengchao Shao { 49*9b1edbc1SZhengchao Shao "id": "3092", 50*9b1edbc1SZhengchao Shao "name": "Show DRR class", 51*9b1edbc1SZhengchao Shao "category": [ 52*9b1edbc1SZhengchao Shao "qdisc", 53*9b1edbc1SZhengchao Shao "drr" 54*9b1edbc1SZhengchao Shao ], 55*9b1edbc1SZhengchao Shao "plugins": { 56*9b1edbc1SZhengchao Shao "requires": "nsPlugin" 57*9b1edbc1SZhengchao Shao }, 58*9b1edbc1SZhengchao Shao "setup": [ 59*9b1edbc1SZhengchao Shao "$IP link add dev $DUMMY type dummy || /bin/true" 60*9b1edbc1SZhengchao Shao ], 61*9b1edbc1SZhengchao Shao "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root drr", 62*9b1edbc1SZhengchao Shao "expExitCode": "0", 63*9b1edbc1SZhengchao Shao "verifyCmd": "$TC class show dev $DUMMY", 64*9b1edbc1SZhengchao Shao "matchPattern": "class drr 1:", 65*9b1edbc1SZhengchao Shao "matchCount": "0", 66*9b1edbc1SZhengchao Shao "teardown": [ 67*9b1edbc1SZhengchao Shao "$TC qdisc del dev $DUMMY handle 1: root", 68*9b1edbc1SZhengchao Shao "$IP link del dev $DUMMY type dummy" 69*9b1edbc1SZhengchao Shao ] 70*9b1edbc1SZhengchao Shao } 71*9b1edbc1SZhengchao Shao] 72