1[ 2 { 3 "id": "6236", 4 "name": "Add skbedit action with valid mark", 5 "category": [ 6 "actions", 7 "skbedit" 8 ], 9 "setup": [ 10 [ 11 "$TC actions flush action skbedit", 12 0, 13 1, 14 255 15 ] 16 ], 17 "cmdUnderTest": "$TC actions add action skbedit mark 1", 18 "expExitCode": "0", 19 "verifyCmd": "$TC actions list action skbedit", 20 "matchPattern": "action order [0-9]*: skbedit mark 1", 21 "matchCount": "1", 22 "teardown": [ 23 "$TC actions flush action skbedit" 24 ] 25 }, 26 { 27 "id": "407b", 28 "name": "Add skbedit action with invalid mark", 29 "category": [ 30 "actions", 31 "skbedit" 32 ], 33 "setup": [ 34 [ 35 "$TC actions flush action skbedit", 36 0, 37 1, 38 255 39 ] 40 ], 41 "cmdUnderTest": "$TC actions add action skbedit mark 666777888999", 42 "expExitCode": "255", 43 "verifyCmd": "$TC actions list action skbedit", 44 "matchPattern": "action order [0-9]*: skbedit mark", 45 "matchCount": "0", 46 "teardown": [ 47 "$TC actions flush action skbedit" 48 ] 49 }, 50 { 51 "id": "081d", 52 "name": "Add skbedit action with priority", 53 "category": [ 54 "actions", 55 "skbedit" 56 ], 57 "setup": [ 58 [ 59 "$TC actions flush action skbedit", 60 0, 61 1, 62 255 63 ] 64 ], 65 "cmdUnderTest": "$TC actions add action skbedit prio 99", 66 "expExitCode": "0", 67 "verifyCmd": "$TC actions list action skbedit", 68 "matchPattern": "action order [0-9]*: skbedit priority :99", 69 "matchCount": "1", 70 "teardown": [ 71 "$TC actions flush action skbedit" 72 ] 73 }, 74 { 75 "id": "cc37", 76 "name": "Add skbedit action with invalid priority", 77 "category": [ 78 "actions", 79 "skbedit" 80 ], 81 "setup": [ 82 [ 83 "$TC actions flush action skbedit", 84 0, 85 1, 86 255 87 ] 88 ], 89 "cmdUnderTest": "$TC actions add action skbedit prio foo", 90 "expExitCode": "255", 91 "verifyCmd": "$TC actions list action skbedit", 92 "matchPattern": "action order [0-9]*: skbedit priority", 93 "matchCount": "0", 94 "teardown": [ 95 "$TC actions flush action skbedit" 96 ] 97 }, 98 { 99 "id": "3c95", 100 "name": "Add skbedit action with queue_mapping", 101 "category": [ 102 "actions", 103 "skbedit" 104 ], 105 "setup": [ 106 [ 107 "$TC actions flush action skbedit", 108 0, 109 1, 110 255 111 ] 112 ], 113 "cmdUnderTest": "$TC actions add action skbedit queue_mapping 909", 114 "expExitCode": "0", 115 "verifyCmd": "$TC actions list action skbedit", 116 "matchPattern": "action order [0-9]*: skbedit queue_mapping 909", 117 "matchCount": "1", 118 "teardown": [ 119 "$TC actions flush action skbedit" 120 ] 121 }, 122 { 123 "id": "985c", 124 "name": "Add skbedit action with invalid queue_mapping", 125 "category": [ 126 "actions", 127 "skbedit" 128 ], 129 "setup": [ 130 [ 131 "$TC actions flush action skbedit", 132 0, 133 1, 134 255 135 ] 136 ], 137 "cmdUnderTest": "$TC actions add action skbedit queue_mapping 67000", 138 "expExitCode": "255", 139 "verifyCmd": "$TC actions list action skbedit", 140 "matchPattern": "action order [0-9]*: skbedit queue_mapping", 141 "matchCount": "0", 142 "teardown": [ 143 "$TC actions flush action skbedit" 144 ] 145 }, 146 { 147 "id": "224f", 148 "name": "Add skbedit action with ptype host", 149 "category": [ 150 "actions", 151 "skbedit" 152 ], 153 "setup": [ 154 [ 155 "$TC actions flush action skbedit", 156 0, 157 1, 158 255 159 ] 160 ], 161 "cmdUnderTest": "$TC actions add action skbedit ptype host", 162 "expExitCode": "0", 163 "verifyCmd": "$TC actions list action skbedit", 164 "matchPattern": "action order [0-9]*: skbedit ptype host", 165 "matchCount": "1", 166 "teardown": [ 167 "$TC actions flush action skbedit" 168 ] 169 }, 170 { 171 "id": "d1a3", 172 "name": "Add skbedit action with ptype otherhost", 173 "category": [ 174 "actions", 175 "skbedit" 176 ], 177 "setup": [ 178 [ 179 "$TC actions flush action skbedit", 180 0, 181 1, 182 255 183 ] 184 ], 185 "cmdUnderTest": "$TC actions add action skbedit ptype otherhost", 186 "expExitCode": "0", 187 "verifyCmd": "$TC actions list action skbedit", 188 "matchPattern": "action order [0-9]*: skbedit ptype otherhost", 189 "matchCount": "1", 190 "teardown": [ 191 "$TC actions flush action skbedit" 192 ] 193 }, 194 { 195 "id": "b9c6", 196 "name": "Add skbedit action with invalid ptype", 197 "category": [ 198 "actions", 199 "skbedit" 200 ], 201 "setup": [ 202 [ 203 "$TC actions flush action skbedit", 204 0, 205 1, 206 255 207 ] 208 ], 209 "cmdUnderTest": "$TC actions add action skbedit ptype openair", 210 "expExitCode": "255", 211 "verifyCmd": "$TC actions list action skbedit", 212 "matchPattern": "action order [0-9]*: skbedit ptype openair", 213 "matchCount": "0", 214 "teardown": [ 215 "$TC actions flush action skbedit" 216 ] 217 }, 218 { 219 "id": "5172", 220 "name": "List skbedit actions", 221 "category": [ 222 "actions", 223 "skbedit" 224 ], 225 "setup": [ 226 [ 227 "$TC actions flush action skbedit", 228 0, 229 1, 230 255 231 ], 232 "$TC actions add action skbedit ptype otherhost", 233 "$TC actions add action skbedit ptype broadcast", 234 "$TC actions add action skbedit mark 59", 235 "$TC actions add action skbedit mark 409" 236 ], 237 "cmdUnderTest": "$TC actions list action skbedit", 238 "expExitCode": "0", 239 "verifyCmd": "$TC actions list action skbedit", 240 "matchPattern": "action order [0-9]*: skbedit", 241 "matchCount": "4", 242 "teardown": [ 243 "$TC actions flush action skbedit" 244 ] 245 }, 246 { 247 "id": "a6d6", 248 "name": "Add skbedit action with index", 249 "category": [ 250 "actions", 251 "skbedit" 252 ], 253 "setup": [ 254 [ 255 "$TC actions flush action skbedit", 256 0, 257 1, 258 255 259 ] 260 ], 261 "cmdUnderTest": "$TC actions add action skbedit mark 808 index 4040404040", 262 "expExitCode": "0", 263 "verifyCmd": "$TC actions list action skbedit", 264 "matchPattern": "index 4040404040", 265 "matchCount": "1", 266 "teardown": [ 267 "$TC actions flush action skbedit" 268 ] 269 }, 270 { 271 "id": "38f3", 272 "name": "Delete skbedit action", 273 "category": [ 274 "actions", 275 "skbedit" 276 ], 277 "setup": [ 278 [ 279 "$TC actions flush action skbedit", 280 0, 281 1, 282 255 283 ], 284 "$TC actions add action skbedit mark 42 index 9009" 285 ], 286 "cmdUnderTest": "$TC actions del action skbedit index 9009", 287 "expExitCode": "0", 288 "verifyCmd": "$TC actions list action skbedit", 289 "matchPattern": "action order [0-9]*: skbedit mark 42", 290 "matchCount": "0", 291 "teardown": [ 292 "$TC actions flush action skbedit" 293 ] 294 }, 295 { 296 "id": "ce97", 297 "name": "Flush skbedit actions", 298 "category": [ 299 "actions", 300 "skbedit" 301 ], 302 "setup": [ 303 "$TC actions add action skbedit mark 500", 304 "$TC actions add action skbedit mark 501", 305 "$TC actions add action skbedit mark 502", 306 "$TC actions add action skbedit mark 503", 307 "$TC actions add action skbedit mark 504", 308 "$TC actions add action skbedit mark 505", 309 "$TC actions add action skbedit mark 506" 310 ], 311 "cmdUnderTest": "$TC actions flush action skbedit", 312 "expExitCode": "0", 313 "verifyCmd": "$TC actions list action skbedit", 314 "matchPattern": "action order [0-9]*: skbedit", 315 "matchCount": "0", 316 "teardown": [ 317 "$TC actions flush action skbedit" 318 ] 319 } 320] 321