xref: /linux/tools/testing/selftests/tc-testing/tc-tests/qdiscs/ingress.json (revision 24168c5e6dfbdd5b414f048f47f75d64533296ca)
1[
2    {
3        "id": "9872",
4        "name": "Add ingress qdisc",
5        "category": [
6            "qdisc",
7            "ingress"
8        ],
9        "setup": [
10        ],
11        "plugins": {
12            "requires": "nsPlugin"
13        },
14        "cmdUnderTest": "$TC qdisc add dev $DUMMY ingress",
15        "expExitCode": "0",
16        "verifyCmd": "$TC qdisc show dev $DUMMY",
17        "matchPattern": "qdisc ingress ffff:",
18        "matchCount": "1",
19        "teardown": [
20            "$TC qdisc del dev $DUMMY ingress"
21        ]
22    },
23    {
24        "id": "5c5e",
25        "name": "Add ingress qdisc with unsupported argument",
26        "category": [
27            "qdisc",
28            "ingress"
29        ],
30        "plugins": {
31            "requires": "nsPlugin"
32        },
33        "setup": [
34        ],
35        "cmdUnderTest": "$TC qdisc add dev $DUMMY ingress foorbar",
36        "expExitCode": "1",
37        "verifyCmd": "$TC qdisc show dev $DUMMY",
38        "matchPattern": "qdisc ingress ffff:",
39        "matchCount": "0",
40        "teardown": [
41        ]
42    },
43    {
44        "id": "74f6",
45        "name": "Add duplicate ingress qdisc",
46        "category": [
47            "qdisc",
48            "ingress"
49        ],
50        "plugins": {
51            "requires": "nsPlugin"
52        },
53        "setup": [
54            "$TC qdisc add dev $DUMMY ingress"
55        ],
56        "cmdUnderTest": "$TC qdisc add dev $DUMMY ingress",
57        "expExitCode": "2",
58        "verifyCmd": "$TC qdisc show dev $DUMMY",
59        "matchPattern": "qdisc ingress ffff:",
60        "matchCount": "1",
61        "teardown": [
62            "$TC qdisc del dev $DUMMY ingress"
63        ]
64    },
65    {
66        "id": "f769",
67        "name": "Delete nonexistent ingress qdisc",
68        "category": [
69            "qdisc",
70            "ingress"
71        ],
72        "plugins": {
73            "requires": "nsPlugin"
74        },
75        "setup": [
76        ],
77        "cmdUnderTest": "$TC qdisc del dev $DUMMY ingress",
78        "expExitCode": "2",
79        "verifyCmd": "$TC qdisc show dev $DUMMY",
80        "matchPattern": "qdisc ingress ffff:",
81        "matchCount": "0",
82        "teardown": [
83        ]
84    },
85    {
86        "id": "3b88",
87        "name": "Delete ingress qdisc twice",
88        "category": [
89            "qdisc",
90            "ingress"
91        ],
92        "plugins": {
93            "requires": "nsPlugin"
94        },
95        "setup": [
96            "$TC qdisc add dev $DUMMY ingress",
97            "$TC qdisc del dev $DUMMY ingress"
98        ],
99        "cmdUnderTest": "$TC qdisc del dev $DUMMY ingress",
100        "expExitCode": "2",
101        "verifyCmd": "$TC qdisc show dev $DUMMY",
102        "matchPattern": "qdisc ingress ffff:",
103        "matchCount": "0",
104        "teardown": [
105        ]
106    },
107    {
108        "id": "0521",
109        "name": "Show ingress class",
110        "category": [
111            "qdisc",
112            "ingress"
113        ],
114        "plugins": {
115            "requires": "nsPlugin"
116        },
117        "setup": [
118        ],
119        "cmdUnderTest": "$TC qdisc add dev $DUMMY ingress",
120        "expExitCode": "0",
121        "verifyCmd": "$TC class show dev $DUMMY",
122        "matchPattern": "class ingress",
123        "matchCount": "0",
124        "teardown": [
125            "$TC qdisc del dev $DUMMY ingress"
126        ]
127    }
128]
129