xref: /linux/tools/testing/selftests/tc-testing/tc-tests/qdiscs/ingress.json (revision 26fbb4c8c7c3ee9a4c3b4de555a8587b5a19154e)
1[
2    {
3        "id": "9872",
4        "name": "Add ingress qdisc",
5        "category": [
6            "qdisc",
7            "ingress"
8        ],
9        "setup": [
10            "$IP link add dev $DUMMY type dummy || /bin/true"
11        ],
12        "cmdUnderTest": "$TC qdisc add dev $DUMMY ingress",
13        "expExitCode": "0",
14        "verifyCmd": "$TC qdisc show dev $DUMMY",
15        "matchPattern": "qdisc ingress ffff:",
16        "matchCount": "1",
17        "teardown": [
18            "$TC qdisc del dev $DUMMY ingress",
19            "$IP link del dev $DUMMY type dummy"
20        ]
21    },
22    {
23        "id": "5c5e",
24        "name": "Add ingress qdisc with unsupported argument",
25        "category": [
26            "qdisc",
27            "ingress"
28        ],
29        "setup": [
30            "$IP link add dev $DUMMY type dummy || /bin/true"
31        ],
32        "cmdUnderTest": "$TC qdisc add dev $DUMMY ingress foorbar",
33        "expExitCode": "1",
34        "verifyCmd": "$TC qdisc show dev $DUMMY",
35        "matchPattern": "qdisc ingress ffff:",
36        "matchCount": "0",
37        "teardown": [
38            "$IP link del dev $DUMMY type dummy"
39        ]
40    },
41    {
42        "id": "74f6",
43        "name": "Add duplicate ingress qdisc",
44        "category": [
45            "qdisc",
46            "ingress"
47        ],
48        "setup": [
49            "$IP link add dev $DUMMY type dummy || /bin/true",
50            "$TC qdisc add dev $DUMMY ingress"
51        ],
52        "cmdUnderTest": "$TC qdisc add dev $DUMMY ingress",
53        "expExitCode": "2",
54        "verifyCmd": "$TC qdisc show dev $DUMMY",
55        "matchPattern": "qdisc ingress ffff:",
56        "matchCount": "1",
57        "teardown": [
58            "$TC qdisc del dev $DUMMY ingress",
59            "$IP link del dev $DUMMY type dummy"
60        ]
61    },
62    {
63        "id": "f769",
64        "name": "Delete nonexistent ingress qdisc",
65        "category": [
66            "qdisc",
67            "ingress"
68        ],
69        "setup": [
70            "$IP link add dev $DUMMY type dummy || /bin/true"
71        ],
72        "cmdUnderTest": "$TC qdisc del dev $DUMMY ingress",
73        "expExitCode": "2",
74        "verifyCmd": "$TC qdisc show dev $DUMMY",
75        "matchPattern": "qdisc ingress ffff:",
76        "matchCount": "0",
77        "teardown": [
78            "$IP link del dev $DUMMY type dummy"
79        ]
80    },
81    {
82        "id": "3b88",
83        "name": "Delete ingress qdisc twice",
84        "category": [
85            "qdisc",
86            "ingress"
87        ],
88        "setup": [
89            "$IP link add dev $DUMMY type dummy || /bin/true",
90            "$TC qdisc add dev $DUMMY ingress",
91            "$TC qdisc del dev $DUMMY ingress"
92        ],
93        "cmdUnderTest": "$TC qdisc del dev $DUMMY ingress",
94        "expExitCode": "2",
95        "verifyCmd": "$TC qdisc show dev $DUMMY",
96        "matchPattern": "qdisc ingress ffff:",
97        "matchCount": "0",
98        "teardown": [
99            "$IP link del dev $DUMMY type dummy"
100        ]
101    }
102]
103