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

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

Test 2410: Show prio 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>
上级 dfbadd7f
......@@ -272,5 +272,25 @@
"teardown": [
"$IP link del dev $DUMMY type dummy"
]
},
{
"id": "2410",
"name": "Show prio class",
"category": [
"qdisc",
"prio"
],
"setup": [
"$IP link add dev $DUMMY type dummy || /bin/true"
],
"cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root prio",
"expExitCode": "0",
"verifyCmd": "$TC class show dev $DUMMY",
"matchPattern": "class prio 1:[0-9]+ parent 1:",
"matchCount": "3",
"teardown": [
"$TC qdisc del dev $DUMMY handle 1: root prio",
"$IP link del dev $DUMMY type dummy"
]
}
]
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册