1[ 2 { 3 "id": "2002", 4 "name": "Add valid connmark action with defaults", 5 "category": [ 6 "actions", 7 "connmark" 8 ], 9 "setup": [ 10 [ 11 "$TC actions flush action connmark", 12 0, 13 1, 14 255 15 ] 16 ], 17 "cmdUnderTest": "$TC actions add action connmark", 18 "expExitCode": "0", 19 "verifyCmd": "$TC actions list action connmark", 20 "matchPattern": "action order [0-9]+: connmark zone 0 pipe", 21 "matchCount": "1", 22 "teardown": [ 23 "$TC actions flush action connmark" 24 ] 25 }, 26 { 27 "id": "56a5", 28 "name": "Add valid connmark action with control pass", 29 "category": [ 30 "actions", 31 "connmark" 32 ], 33 "setup": [ 34 [ 35 "$TC actions flush action connmark", 36 0, 37 1, 38 255 39 ] 40 ], 41 "cmdUnderTest": "$TC actions add action connmark pass index 1", 42 "expExitCode": "0", 43 "verifyCmd": "$TC actions get action connmark index 1", 44 "matchPattern": "action order [0-9]+: connmark zone 0 pass.*index 1 ref", 45 "matchCount": "1", 46 "teardown": [ 47 "$TC actions flush action connmark" 48 ] 49 }, 50 { 51 "id": "7c66", 52 "name": "Add valid connmark action with control drop", 53 "category": [ 54 "actions", 55 "connmark" 56 ], 57 "setup": [ 58 [ 59 "$TC actions flush action connmark", 60 0, 61 1, 62 255 63 ] 64 ], 65 "cmdUnderTest": "$TC actions add action connmark drop index 100", 66 "expExitCode": "0", 67 "verifyCmd": "$TC actions get action connmark index 100", 68 "matchPattern": "action order [0-9]+: connmark zone 0 drop.*index 100 ref", 69 "matchCount": "1", 70 "teardown": [ 71 "$TC actions flush action connmark" 72 ] 73 }, 74 { 75 "id": "a913", 76 "name": "Add valid connmark action with control pipe", 77 "category": [ 78 "actions", 79 "connmark" 80 ], 81 "setup": [ 82 [ 83 "$TC actions flush action connmark", 84 0, 85 1, 86 255 87 ] 88 ], 89 "cmdUnderTest": "$TC actions add action connmark pipe index 455", 90 "expExitCode": "0", 91 "verifyCmd": "$TC actions get action connmark index 455", 92 "matchPattern": "action order [0-9]+: connmark zone 0 pipe.*index 455 ref", 93 "matchCount": "1", 94 "teardown": [ 95 "$TC actions flush action connmark" 96 ] 97 }, 98 { 99 "id": "bdd8", 100 "name": "Add valid connmark action with control reclassify", 101 "category": [ 102 "actions", 103 "connmark" 104 ], 105 "setup": [ 106 [ 107 "$TC actions flush action connmark", 108 0, 109 1, 110 255 111 ] 112 ], 113 "cmdUnderTest": "$TC actions add action connmark reclassify index 7", 114 "expExitCode": "0", 115 "verifyCmd": "$TC actions list action connmark", 116 "matchPattern": "action order [0-9]+: connmark zone 0 reclassify.*index 7 ref", 117 "matchCount": "1", 118 "teardown": [ 119 "$TC actions flush action connmark" 120 ] 121 }, 122 { 123 "id": "b8be", 124 "name": "Add valid connmark action with control continue", 125 "category": [ 126 "actions", 127 "connmark" 128 ], 129 "setup": [ 130 [ 131 "$TC actions flush action connmark", 132 0, 133 1, 134 255 135 ] 136 ], 137 "cmdUnderTest": "$TC actions add action connmark continue index 17", 138 "expExitCode": "0", 139 "verifyCmd": "$TC actions list action connmark", 140 "matchPattern": "action order [0-9]+: connmark zone 0 continue.*index 17 ref", 141 "matchCount": "1", 142 "teardown": [ 143 "$TC actions flush action connmark" 144 ] 145 }, 146 { 147 "id": "d8a6", 148 "name": "Add valid connmark action with control jump", 149 "category": [ 150 "actions", 151 "connmark" 152 ], 153 "setup": [ 154 [ 155 "$TC actions flush action connmark", 156 0, 157 1, 158 255 159 ] 160 ], 161 "cmdUnderTest": "$TC actions add action connmark jump 10 index 17", 162 "expExitCode": "0", 163 "verifyCmd": "$TC actions list action connmark", 164 "matchPattern": "action order [0-9]+: connmark zone 0 jump 10.*index 17 ref", 165 "matchCount": "1", 166 "teardown": [ 167 "$TC actions flush action connmark" 168 ] 169 }, 170 { 171 "id": "aae8", 172 "name": "Add valid connmark action with zone argument", 173 "category": [ 174 "actions", 175 "connmark" 176 ], 177 "setup": [ 178 [ 179 "$TC actions flush action connmark", 180 0, 181 1, 182 255 183 ] 184 ], 185 "cmdUnderTest": "$TC actions add action connmark zone 100 pipe index 1", 186 "expExitCode": "0", 187 "verifyCmd": "$TC actions get action connmark index 1", 188 "matchPattern": "action order [0-9]+: connmark zone 100 pipe.*index 1 ref", 189 "matchCount": "1", 190 "teardown": [ 191 "$TC actions flush action connmark" 192 ] 193 }, 194 { 195 "id": "2f0b", 196 "name": "Add valid connmark action with invalid zone argument", 197 "category": [ 198 "actions", 199 "connmark" 200 ], 201 "setup": [ 202 [ 203 "$TC actions flush action connmark", 204 0, 205 1, 206 255 207 ] 208 ], 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", 213 "matchCount": "0", 214 "teardown": [ 215 "$TC actions flush action connmark" 216 ] 217 }, 218 { 219 "id": "9305", 220 "name": "Add connmark action with unsupported argument", 221 "category": [ 222 "actions", 223 "connmark" 224 ], 225 "setup": [ 226 [ 227 "$TC actions flush action connmark", 228 0, 229 1, 230 255 231 ] 232 ], 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", 237 "matchCount": "0", 238 "teardown": [ 239 "$TC actions flush action connmark" 240 ] 241 }, 242 { 243 "id": "71ca", 244 "name": "Add valid connmark action and replace it", 245 "category": [ 246 "actions", 247 "connmark" 248 ], 249 "setup": [ 250 [ 251 "$TC actions flush action connmark", 252 0, 253 1, 254 255 255 ], 256 "$TC actions add action connmark zone 777 pass index 555" 257 ], 258 "cmdUnderTest": "$TC actions replace action connmark zone 555 reclassify index 555", 259 "expExitCode": "0", 260 "verifyCmd": "$TC actions get action connmark index 555", 261 "matchPattern": "action order [0-9]+: connmark zone 555 reclassify.*index 555 ref", 262 "matchCount": "1", 263 "teardown": [ 264 "$TC actions flush action connmark" 265 ] 266 }, 267 { 268 "id": "5f8f", 269 "name": "Add valid connmark action with cookie", 270 "category": [ 271 "actions", 272 "connmark" 273 ], 274 "setup": [ 275 [ 276 "$TC actions flush action connmark", 277 0, 278 1, 279 255 280 ] 281 ], 282 "cmdUnderTest": "$TC actions add action connmark zone 555 pipe index 5 cookie aabbccddeeff112233445566778800a1", 283 "expExitCode": "0", 284 "verifyCmd": "$TC actions get action connmark index 5", 285 "matchPattern": "action order [0-9]+: connmark zone 555 pipe.*index 5 ref.*cookie aabbccddeeff112233445566778800a1", 286 "matchCount": "1", 287 "teardown": [ 288 "$TC actions flush action connmark" 289 ] 290 }, 291 { 292 "id": "c506", 293 "name": "Replace connmark with invalid goto chain control", 294 "category": [ 295 "actions", 296 "connmark" 297 ], 298 "setup": [ 299 [ 300 "$TC actions flush action connmark", 301 0, 302 1, 303 255 304 ], 305 "$TC actions add action connmark pass index 90" 306 ], 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", 311 "matchCount": "1", 312 "teardown": [ 313 "$TC actions flush action connmark" 314 ] 315 }, 316 { 317 "id": "6571", 318 "name": "Delete connmark action with valid index", 319 "category": [ 320 "actions", 321 "connmark" 322 ], 323 "setup": [ 324 [ 325 "$TC actions flush action connmark", 326 0, 327 1, 328 255 329 ], 330 "$TC actions add action connmark pass index 20" 331 ], 332 "cmdUnderTest": "$TC actions del action connmark index 20", 333 "expExitCode": "0", 334 "verifyCmd": "$TC actions get action connmark index 20", 335 "matchPattern": "action order [0-9]+: connmark zone 0 pass.*index 20 ref", 336 "matchCount": "0", 337 "teardown": [ 338 "$TC actions flush action connmark" 339 ] 340 }, 341 { 342 "id": "3426", 343 "name": "Delete connmark action with invalid index", 344 "category": [ 345 "actions", 346 "connmark" 347 ], 348 "setup": [ 349 [ 350 "$TC actions flush action connmark", 351 0, 352 1, 353 255 354 ], 355 "$TC actions add action connmark pass index 20" 356 ], 357 "cmdUnderTest": "$TC actions del action connmark index 1", 358 "expExitCode": "255", 359 "verifyCmd": "$TC actions get action connmark index 20", 360 "matchPattern": "action order [0-9]+: connmark zone 0 pass.*index 20 ref", 361 "matchCount": "1", 362 "teardown": [ 363 "$TC actions flush action connmark" 364 ] 365 } 366] 367