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