1[
2    {
3        "id": "983a",
4        "name": "Create CODEL with default setting",
5        "category": [
6            "qdisc",
7            "codel"
8        ],
9        "plugins": {
10            "requires": "nsPlugin"
11        },
12        "setup": [
13            "$IP link add dev $DUMMY type dummy || /bin/true"
14        ],
15        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root codel",
16        "expExitCode": "0",
17        "verifyCmd": "$TC qdisc show dev $DUMMY",
18        "matchPattern": "qdisc codel 1: root refcnt [0-9]+ limit 1000p target 5ms interval 100ms",
19        "matchCount": "1",
20        "teardown": [
21            "$TC qdisc del dev $DUMMY handle 1: root",
22            "$IP link del dev $DUMMY type dummy"
23        ]
24    },
25    {
26        "id": "38aa",
27        "name": "Create CODEL with limit packet setting",
28        "category": [
29            "qdisc",
30            "codel"
31        ],
32        "plugins": {
33            "requires": "nsPlugin"
34        },
35        "setup": [
36            "$IP link add dev $DUMMY type dummy || /bin/true"
37        ],
38        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root codel limit 1500",
39        "expExitCode": "0",
40        "verifyCmd": "$TC qdisc show dev $DUMMY",
41        "matchPattern": "qdisc codel 1: root refcnt [0-9]+ limit 1500p target 5ms interval 100ms",
42        "matchCount": "1",
43        "teardown": [
44            "$TC qdisc del dev $DUMMY handle 1: root",
45            "$IP link del dev $DUMMY type dummy"
46        ]
47    },
48    {
49        "id": "9178",
50        "name": "Create CODEL with target setting",
51        "category": [
52            "qdisc",
53            "codel"
54        ],
55        "plugins": {
56            "requires": "nsPlugin"
57        },
58        "setup": [
59            "$IP link add dev $DUMMY type dummy || /bin/true"
60        ],
61        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root codel target 100ms",
62        "expExitCode": "0",
63        "verifyCmd": "$TC qdisc show dev $DUMMY",
64        "matchPattern": "qdisc codel 1: root refcnt [0-9]+ limit 1000p target 100ms interval 100ms",
65        "matchCount": "1",
66        "teardown": [
67            "$TC qdisc del dev $DUMMY handle 1: root",
68            "$IP link del dev $DUMMY type dummy"
69        ]
70    },
71    {
72        "id": "78d1",
73        "name": "Create CODEL with interval setting",
74        "category": [
75            "qdisc",
76            "codel"
77        ],
78        "plugins": {
79            "requires": "nsPlugin"
80        },
81        "setup": [
82            "$IP link add dev $DUMMY type dummy || /bin/true"
83        ],
84        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root codel interval 20ms",
85        "expExitCode": "0",
86        "verifyCmd": "$TC qdisc show dev $DUMMY",
87        "matchPattern": "qdisc codel 1: root refcnt [0-9]+ limit 1000p target 5ms interval 20ms",
88        "matchCount": "1",
89        "teardown": [
90            "$TC qdisc del dev $DUMMY handle 1: root",
91            "$IP link del dev $DUMMY type dummy"
92        ]
93    },
94    {
95        "id": "238a",
96        "name": "Create CODEL with ecn setting",
97        "category": [
98            "qdisc",
99            "codel"
100        ],
101        "plugins": {
102            "requires": "nsPlugin"
103        },
104        "setup": [
105            "$IP link add dev $DUMMY type dummy || /bin/true"
106        ],
107        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root codel ecn",
108        "expExitCode": "0",
109        "verifyCmd": "$TC qdisc show dev $DUMMY",
110        "matchPattern": "qdisc codel 1: root refcnt [0-9]+ limit 1000p target 5ms interval 100ms ecn",
111        "matchCount": "1",
112        "teardown": [
113            "$TC qdisc del dev $DUMMY handle 1: root",
114            "$IP link del dev $DUMMY type dummy"
115        ]
116    },
117    {
118        "id": "939c",
119        "name": "Create CODEL with ce_threshold setting",
120        "category": [
121            "qdisc",
122            "codel"
123        ],
124        "plugins": {
125            "requires": "nsPlugin"
126        },
127        "setup": [
128            "$IP link add dev $DUMMY type dummy || /bin/true"
129        ],
130        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root codel ce_threshold 20ms",
131        "expExitCode": "0",
132        "verifyCmd": "$TC qdisc show dev $DUMMY",
133        "matchPattern": "qdisc codel 1: root refcnt [0-9]+ limit 1000p target 5ms ce_threshold 20ms interval 100ms",
134        "matchCount": "1",
135        "teardown": [
136            "$TC qdisc del dev $DUMMY handle 1: root",
137            "$IP link del dev $DUMMY type dummy"
138        ]
139    },
140    {
141        "id": "8380",
142        "name": "Delete CODEL with valid handle",
143        "category": [
144            "qdisc",
145            "codel"
146        ],
147        "plugins": {
148            "requires": "nsPlugin"
149        },
150        "setup": [
151            "$IP link add dev $DUMMY type dummy || /bin/true",
152            "$TC qdisc add dev $DUMMY handle 1: root codel"
153        ],
154        "cmdUnderTest": "$TC qdisc del dev $DUMMY handle 1: root",
155        "expExitCode": "0",
156        "verifyCmd": "$TC qdisc show dev $DUMMY",
157        "matchPattern": "qdisc codel 1: root refcnt [0-9]+ limit 1000p target 5ms interval 100ms",
158        "matchCount": "0",
159        "teardown": [
160            "$IP link del dev $DUMMY type dummy"
161        ]
162    },
163    {
164        "id": "289c",
165        "name": "Replace CODEL with limit setting",
166        "category": [
167            "qdisc",
168            "codel"
169        ],
170        "plugins": {
171            "requires": "nsPlugin"
172        },
173        "setup": [
174            "$IP link add dev $DUMMY type dummy || /bin/true",
175            "$TC qdisc add dev $DUMMY handle 1: root codel"
176        ],
177        "cmdUnderTest": "$TC qdisc replace dev $DUMMY handle 1: root codel limit 5000",
178        "expExitCode": "0",
179        "verifyCmd": "$TC qdisc show dev $DUMMY",
180        "matchPattern": "qdisc codel 1: root refcnt [0-9]+ limit 5000p target 5ms interval 100ms",
181        "matchCount": "1",
182        "teardown": [
183            "$TC qdisc del dev $DUMMY handle 1: root",
184            "$IP link del dev $DUMMY type dummy"
185        ]
186    },
187    {
188        "id": "0648",
189        "name": "Change CODEL with limit setting",
190        "category": [
191            "qdisc",
192            "codel"
193        ],
194        "plugins": {
195            "requires": "nsPlugin"
196        },
197        "setup": [
198            "$IP link add dev $DUMMY type dummy || /bin/true",
199            "$TC qdisc add dev $DUMMY handle 1: root codel"
200        ],
201        "cmdUnderTest": "$TC qdisc change dev $DUMMY handle 1: root codel limit 100",
202        "expExitCode": "0",
203        "verifyCmd": "$TC qdisc show dev $DUMMY",
204        "matchPattern": "qdisc codel 1: root refcnt [0-9]+ limit 100p target 5ms interval 100ms",
205        "matchCount": "1",
206        "teardown": [
207            "$TC qdisc del dev $DUMMY handle 1: root",
208            "$IP link del dev $DUMMY type dummy"
209        ]
210    }
211]
212