提交 d3f83254 编写于 作者: Z Zhengchao Shao 提交者: Jakub Kicinski

selftests/tc-testing: add show class case for red qdisc

Test 290a: Show RED class
Signed-off-by: NZhengchao Shao <shaozhengchao@huawei.com>
Reviewed-by: NVictor Nogueira <victor@mojatatu.com>
Tested-by: NVictor Nogueira <victor@mojatatu.com>
Signed-off-by: NJakub Kicinski <kuba@kernel.org>
上级 1c15eb2a
......@@ -181,5 +181,28 @@
"$TC qdisc del dev $DUMMY handle 1: root",
"$IP link del dev $DUMMY type dummy"
]
},
{
"id": "290a",
"name": "Show RED class",
"category": [
"qdisc",
"red"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
"$IP link add dev $DUMMY type dummy || /bin/true"
],
"cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root red limit 1M avpkt 1500 min 100K max 300K",
"expExitCode": "0",
"verifyCmd": "$TC class show dev $DUMMY",
"matchPattern": "class red 1:[0-9]+ parent 1:",
"matchCount": "1",
"teardown": [
"$TC qdisc del dev $DUMMY handle 1: root",
"$IP link del dev $DUMMY type dummy"
]
}
]
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册