4 "name": "Add valid connmark action with defaults",
11 "$TC actions flush action connmark",
17 "cmdUnderTest": "$TC actions add action connmark",
19 "verifyCmd": "$TC actions list action connmark",
20 "matchPattern": "action order [0-9]+: connmark zone 0 pipe",
23 "$TC actions flush action connmark"
28 "name": "Add valid connmark action with control pass",
35 "$TC actions flush action connmark",
41 "cmdUnderTest": "$TC actions add action connmark pass index 1",
43 "verifyCmd": "$TC actions get action connmark index 1",
44 "matchPattern": "action order [0-9]+: connmark zone 0 pass.*index 1 ref",
47 "$TC actions flush action connmark"
52 "name": "Add valid connmark action with control drop",
59 "$TC actions flush action connmark",
65 "cmdUnderTest": "$TC actions add action connmark drop index 100",
67 "verifyCmd": "$TC actions get action connmark index 100",
68 "matchPattern": "action order [0-9]+: connmark zone 0 drop.*index 100 ref",
71 "$TC actions flush action connmark"
76 "name": "Add valid connmark action with control pipe",
83 "$TC actions flush action connmark",
89 "cmdUnderTest": "$TC actions add action connmark pipe index 455",
91 "verifyCmd": "$TC actions get action connmark index 455",
92 "matchPattern": "action order [0-9]+: connmark zone 0 pipe.*index 455 ref",
95 "$TC actions flush action connmark"
100 "name": "Add valid connmark action with control reclassify",
107 "$TC actions flush action connmark",
113 "cmdUnderTest": "$TC actions add action connmark reclassify index 7",
115 "verifyCmd": "$TC actions list action connmark",
116 "matchPattern": "action order [0-9]+: connmark zone 0 reclassify.*index 7 ref",
119 "$TC actions flush action connmark"
124 "name": "Add valid connmark action with control continue",
131 "$TC actions flush action connmark",
137 "cmdUnderTest": "$TC actions add action connmark continue index 17",
139 "verifyCmd": "$TC actions list action connmark",
140 "matchPattern": "action order [0-9]+: connmark zone 0 continue.*index 17 ref",
143 "$TC actions flush action connmark"
148 "name": "Add valid connmark action with control jump",
155 "$TC actions flush action connmark",
161 "cmdUnderTest": "$TC actions add action connmark jump 10 index 17",
163 "verifyCmd": "$TC actions list action connmark",
164 "matchPattern": "action order [0-9]+: connmark zone 0 jump 10.*index 17 ref",
167 "$TC actions flush action connmark"
172 "name": "Add valid connmark action with zone argument",
179 "$TC actions flush action connmark",
185 "cmdUnderTest": "$TC actions add action connmark zone 100 pipe index 1",
187 "verifyCmd": "$TC actions get action connmark index 1",
188 "matchPattern": "action order [0-9]+: connmark zone 100 pipe.*index 1 ref",
191 "$TC actions flush action connmark"
196 "name": "Add valid connmark action with invalid zone argument",
203 "$TC actions flush action connmark",
209 "cmdUnderTest": "$TC actions add action connmark zone 65536 reclassify index 21",
210 "expExitCode": "255",
211 "verifyCmd": "$TC actions get action connmark index 1",
212 "matchPattern": "action order [0-9]+: connmark zone 65536 reclassify.*index 21 ref",
215 "$TC actions flush action connmark"
220 "name": "Add connmark action with unsupported argument",
227 "$TC actions flush action connmark",
233 "cmdUnderTest": "$TC actions add action connmark zone 655 unsupp_arg pass index 2",
234 "expExitCode": "255",
235 "verifyCmd": "$TC actions get action connmark index 2",
236 "matchPattern": "action order [0-9]+: connmark zone 655 unsupp_arg pass.*index 2 ref",
239 "$TC actions flush action connmark"
244 "name": "Add valid connmark action and replace it",
251 "$TC actions flush action connmark",
256 "$TC actions add action connmark zone 777 pass index 555"
258 "cmdUnderTest": "$TC actions replace action connmark zone 555 reclassify index 555",
260 "verifyCmd": "$TC actions get action connmark index 555",
261 "matchPattern": "action order [0-9]+: connmark zone 555 reclassify.*index 555 ref",
264 "$TC actions flush action connmark"
269 "name": "Add valid connmark action with cookie",
276 "$TC actions flush action connmark",
282 "cmdUnderTest": "$TC actions add action connmark zone 555 pipe index 5 cookie aabbccddeeff112233445566778800a1",
284 "verifyCmd": "$TC actions get action connmark index 5",
285 "matchPattern": "action order [0-9]+: connmark zone 555 pipe.*index 5 ref.*cookie aabbccddeeff112233445566778800a1",
288 "$TC actions flush action connmark"
293 "name": "Replace connmark with invalid goto chain control",
300 "$TC actions flush action connmark",
305 "$TC actions add action connmark pass index 90"
307 "cmdUnderTest": "$TC actions replace action connmark goto chain 42 index 90 cookie c1a0c1a0",
308 "expExitCode": "255",
309 "verifyCmd": "$TC actions get action connmark index 90",
310 "matchPattern": "action order [0-9]+: connmark zone 0 pass.*index 90 ref",
313 "$TC actions flush action connmark"