1*cc62fbe1SZhengchao Shao[ 2*cc62fbe1SZhengchao Shao { 3*cc62fbe1SZhengchao Shao "id": "84a0", 4*cc62fbe1SZhengchao Shao "name": "Create TEQL with default setting", 5*cc62fbe1SZhengchao Shao "category": [ 6*cc62fbe1SZhengchao Shao "qdisc", 7*cc62fbe1SZhengchao Shao "teql" 8*cc62fbe1SZhengchao Shao ], 9*cc62fbe1SZhengchao Shao "plugins": { 10*cc62fbe1SZhengchao Shao "requires": "nsPlugin" 11*cc62fbe1SZhengchao Shao }, 12*cc62fbe1SZhengchao Shao "setup": [ 13*cc62fbe1SZhengchao Shao "$IP link add dev $DUMMY type dummy || /bin/true" 14*cc62fbe1SZhengchao Shao ], 15*cc62fbe1SZhengchao Shao "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root teql0", 16*cc62fbe1SZhengchao Shao "expExitCode": "0", 17*cc62fbe1SZhengchao Shao "verifyCmd": "$TC qdisc show dev $DUMMY", 18*cc62fbe1SZhengchao Shao "matchPattern": "qdisc teql0 1: root refcnt", 19*cc62fbe1SZhengchao Shao "matchCount": "1", 20*cc62fbe1SZhengchao Shao "teardown": [ 21*cc62fbe1SZhengchao Shao "$TC qdisc del dev $DUMMY handle 1: root", 22*cc62fbe1SZhengchao Shao "$IP link del dev $DUMMY type dummy" 23*cc62fbe1SZhengchao Shao ] 24*cc62fbe1SZhengchao Shao }, 25*cc62fbe1SZhengchao Shao { 26*cc62fbe1SZhengchao Shao "id": "7734", 27*cc62fbe1SZhengchao Shao "name": "Create TEQL with multiple device", 28*cc62fbe1SZhengchao Shao "category": [ 29*cc62fbe1SZhengchao Shao "qdisc", 30*cc62fbe1SZhengchao Shao "teql" 31*cc62fbe1SZhengchao Shao ], 32*cc62fbe1SZhengchao Shao "plugins": { 33*cc62fbe1SZhengchao Shao "requires": "nsPlugin" 34*cc62fbe1SZhengchao Shao }, 35*cc62fbe1SZhengchao Shao "setup": [ 36*cc62fbe1SZhengchao Shao "$IP link add dev $DUMMY type dummy || /bin/true", 37*cc62fbe1SZhengchao Shao "echo \"1 1 4\" > /sys/bus/netdevsim/new_device", 38*cc62fbe1SZhengchao Shao "$TC qdisc add dev $ETH root handle 1: teql0" 39*cc62fbe1SZhengchao Shao ], 40*cc62fbe1SZhengchao Shao "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root teql0", 41*cc62fbe1SZhengchao Shao "expExitCode": "0", 42*cc62fbe1SZhengchao Shao "verifyCmd": "$TC qdisc show dev $DUMMY", 43*cc62fbe1SZhengchao Shao "matchPattern": "qdisc teql0 1: root refcnt", 44*cc62fbe1SZhengchao Shao "matchCount": "1", 45*cc62fbe1SZhengchao Shao "teardown": [ 46*cc62fbe1SZhengchao Shao "$TC qdisc del dev $DUMMY handle 1: root", 47*cc62fbe1SZhengchao Shao "echo \"1\" > /sys/bus/netdevsim/del_device", 48*cc62fbe1SZhengchao Shao "$IP link del dev $DUMMY type dummy" 49*cc62fbe1SZhengchao Shao ] 50*cc62fbe1SZhengchao Shao }, 51*cc62fbe1SZhengchao Shao { 52*cc62fbe1SZhengchao Shao "id": "34a9", 53*cc62fbe1SZhengchao Shao "name": "Delete TEQL with valid handle", 54*cc62fbe1SZhengchao Shao "category": [ 55*cc62fbe1SZhengchao Shao "qdisc", 56*cc62fbe1SZhengchao Shao "teql" 57*cc62fbe1SZhengchao Shao ], 58*cc62fbe1SZhengchao Shao "plugins": { 59*cc62fbe1SZhengchao Shao "requires": "nsPlugin" 60*cc62fbe1SZhengchao Shao }, 61*cc62fbe1SZhengchao Shao "setup": [ 62*cc62fbe1SZhengchao Shao "$IP link add dev $DUMMY type dummy || /bin/true", 63*cc62fbe1SZhengchao Shao "$TC qdisc add dev $DUMMY handle 1: root teql0" 64*cc62fbe1SZhengchao Shao ], 65*cc62fbe1SZhengchao Shao "cmdUnderTest": "$TC qdisc del dev $DUMMY handle 1: root", 66*cc62fbe1SZhengchao Shao "expExitCode": "0", 67*cc62fbe1SZhengchao Shao "verifyCmd": "$TC qdisc show dev $DUMMY", 68*cc62fbe1SZhengchao Shao "matchPattern": "qdisc teql0 1: root refcnt", 69*cc62fbe1SZhengchao Shao "matchCount": "0", 70*cc62fbe1SZhengchao Shao "teardown": [ 71*cc62fbe1SZhengchao Shao "$IP link del dev $DUMMY type dummy" 72*cc62fbe1SZhengchao Shao ] 73*cc62fbe1SZhengchao Shao }, 74*cc62fbe1SZhengchao Shao { 75*cc62fbe1SZhengchao Shao "id": "6289", 76*cc62fbe1SZhengchao Shao "name": "Show TEQL stats", 77*cc62fbe1SZhengchao Shao "category": [ 78*cc62fbe1SZhengchao Shao "qdisc", 79*cc62fbe1SZhengchao Shao "teql" 80*cc62fbe1SZhengchao Shao ], 81*cc62fbe1SZhengchao Shao "plugins": { 82*cc62fbe1SZhengchao Shao "requires": "nsPlugin" 83*cc62fbe1SZhengchao Shao }, 84*cc62fbe1SZhengchao Shao "setup": [ 85*cc62fbe1SZhengchao Shao "$IP link add dev $DUMMY type dummy || /bin/true" 86*cc62fbe1SZhengchao Shao ], 87*cc62fbe1SZhengchao Shao "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root teql0", 88*cc62fbe1SZhengchao Shao "expExitCode": "0", 89*cc62fbe1SZhengchao Shao "verifyCmd": "$TC -s qdisc show dev $DUMMY", 90*cc62fbe1SZhengchao Shao "matchPattern": "qdisc teql0 1: root refcnt", 91*cc62fbe1SZhengchao Shao "matchCount": "1", 92*cc62fbe1SZhengchao Shao "teardown": [ 93*cc62fbe1SZhengchao Shao "$TC qdisc del dev $DUMMY handle 1: root", 94*cc62fbe1SZhengchao Shao "$IP link del dev $DUMMY type dummy" 95*cc62fbe1SZhengchao Shao ] 96*cc62fbe1SZhengchao Shao } 97*cc62fbe1SZhengchao Shao] 98