Commit 5ca72fbe authored by Zhengchao Shao's avatar Zhengchao Shao Committed by Jakub Kicinski

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

Test 0521: Show ingress class
Signed-off-by: default avatarZhengchao Shao <shaozhengchao@huawei.com>
Reviewed-by: default avatarVictor Nogueira <victor@mojatatu.com>
Tested-by: default avatarVictor Nogueira <victor@mojatatu.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 856359c0
...@@ -98,5 +98,25 @@ ...@@ -98,5 +98,25 @@
"teardown": [ "teardown": [
"$IP link del dev $DUMMY type dummy" "$IP link del dev $DUMMY type dummy"
] ]
},
{
"id": "0521",
"name": "Show ingress class",
"category": [
"qdisc",
"ingress"
],
"setup": [
"$IP link add dev $DUMMY type dummy || /bin/true"
],
"cmdUnderTest": "$TC qdisc add dev $DUMMY ingress",
"expExitCode": "0",
"verifyCmd": "$TC class show dev $DUMMY",
"matchPattern": "class ingress",
"matchCount": "0",
"teardown": [
"$TC qdisc del dev $DUMMY ingress",
"$IP link del dev $DUMMY type dummy"
]
} }
] ]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment