skbedit.json 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  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": "464a",
  220. "name": "Add skbedit action with control pipe",
  221. "category": [
  222. "actions",
  223. "skbedit"
  224. ],
  225. "setup": [
  226. [
  227. "$TC actions flush action skbedit",
  228. 0,
  229. 1,
  230. 255
  231. ]
  232. ],
  233. "cmdUnderTest": "$TC actions add action skbedit ptype host pipe index 11",
  234. "expExitCode": "0",
  235. "verifyCmd": "$TC actions get action skbedit index 11",
  236. "matchPattern": "action order [0-9]*: skbedit ptype host pipe.*index 11 ref",
  237. "matchCount": "1",
  238. "teardown": [
  239. "$TC actions flush action skbedit"
  240. ]
  241. },
  242. {
  243. "id": "212f",
  244. "name": "Add skbedit action with control reclassify",
  245. "category": [
  246. "actions",
  247. "skbedit"
  248. ],
  249. "setup": [
  250. [
  251. "$TC actions flush action skbedit",
  252. 0,
  253. 1,
  254. 255
  255. ]
  256. ],
  257. "cmdUnderTest": "$TC actions add action skbedit mark 56789 reclassify index 90",
  258. "expExitCode": "0",
  259. "verifyCmd": "$TC actions get action skbedit index 90",
  260. "matchPattern": "action order [0-9]*: skbedit mark 56789 reclassify.*index 90 ref",
  261. "matchCount": "1",
  262. "teardown": [
  263. "$TC actions flush action skbedit"
  264. ]
  265. },
  266. {
  267. "id": "0651",
  268. "name": "Add skbedit action with control pass",
  269. "category": [
  270. "actions",
  271. "skbedit"
  272. ],
  273. "setup": [
  274. [
  275. "$TC actions flush action skbedit",
  276. 0,
  277. 1,
  278. 255
  279. ]
  280. ],
  281. "cmdUnderTest": "$TC actions add action skbedit queue_mapping 3 pass index 271",
  282. "expExitCode": "0",
  283. "verifyCmd": "$TC actions get action skbedit index 271",
  284. "matchPattern": "action order [0-9]*: skbedit queue_mapping 3 pass.*index 271 ref",
  285. "matchCount": "1",
  286. "teardown": [
  287. "$TC actions flush action skbedit"
  288. ]
  289. },
  290. {
  291. "id": "cc53",
  292. "name": "Add skbedit action with control drop",
  293. "category": [
  294. "actions",
  295. "skbedit"
  296. ],
  297. "setup": [
  298. [
  299. "$TC actions flush action skbedit",
  300. 0,
  301. 1,
  302. 255
  303. ]
  304. ],
  305. "cmdUnderTest": "$TC actions add action skbedit queue_mapping 3 drop index 271",
  306. "expExitCode": "0",
  307. "verifyCmd": "$TC actions get action skbedit index 271",
  308. "matchPattern": "action order [0-9]*: skbedit queue_mapping 3 drop.*index 271 ref",
  309. "matchCount": "1",
  310. "teardown": [
  311. "$TC actions flush action skbedit"
  312. ]
  313. },
  314. {
  315. "id": "ec16",
  316. "name": "Add skbedit action with control jump",
  317. "category": [
  318. "actions",
  319. "skbedit"
  320. ],
  321. "setup": [
  322. [
  323. "$TC actions flush action skbedit",
  324. 0,
  325. 1,
  326. 255
  327. ]
  328. ],
  329. "cmdUnderTest": "$TC actions add action skbedit priority 8 jump 9 index 2",
  330. "expExitCode": "0",
  331. "verifyCmd": "$TC actions get action skbedit index 2",
  332. "matchPattern": "action order [0-9]*: skbedit priority :8 jump 9.*index 2 ref",
  333. "matchCount": "1",
  334. "teardown": [
  335. "$TC actions flush action skbedit"
  336. ]
  337. },
  338. {
  339. "id": "db54",
  340. "name": "Add skbedit action with control continue",
  341. "category": [
  342. "actions",
  343. "skbedit"
  344. ],
  345. "setup": [
  346. [
  347. "$TC actions flush action skbedit",
  348. 0,
  349. 1,
  350. 255
  351. ]
  352. ],
  353. "cmdUnderTest": "$TC actions add action skbedit priority 16 continue index 32",
  354. "expExitCode": "0",
  355. "verifyCmd": "$TC actions get action skbedit index 32",
  356. "matchPattern": "action order [0-9]*: skbedit priority :16 continue.*index 32 ref",
  357. "matchCount": "1",
  358. "teardown": [
  359. "$TC actions flush action skbedit"
  360. ]
  361. },
  362. {
  363. "id": "1055",
  364. "name": "Add skbedit action with cookie",
  365. "category": [
  366. "actions",
  367. "skbedit"
  368. ],
  369. "setup": [
  370. [
  371. "$TC actions flush action skbedit",
  372. 0,
  373. 1,
  374. 255
  375. ]
  376. ],
  377. "cmdUnderTest": "$TC actions add action skbedit priority 16 continue index 32 cookie deadbeef",
  378. "expExitCode": "0",
  379. "verifyCmd": "$TC actions get action skbedit index 32",
  380. "matchPattern": "action order [0-9]*: skbedit priority :16 continue.*index 32 ref.*cookie deadbeef",
  381. "matchCount": "1",
  382. "teardown": [
  383. "$TC actions flush action skbedit"
  384. ]
  385. },
  386. {
  387. "id": "5172",
  388. "name": "List skbedit actions",
  389. "category": [
  390. "actions",
  391. "skbedit"
  392. ],
  393. "setup": [
  394. [
  395. "$TC actions flush action skbedit",
  396. 0,
  397. 1,
  398. 255
  399. ],
  400. "$TC actions add action skbedit ptype otherhost",
  401. "$TC actions add action skbedit ptype broadcast",
  402. "$TC actions add action skbedit mark 59",
  403. "$TC actions add action skbedit mark 409"
  404. ],
  405. "cmdUnderTest": "$TC actions list action skbedit",
  406. "expExitCode": "0",
  407. "verifyCmd": "$TC actions list action skbedit",
  408. "matchPattern": "action order [0-9]*: skbedit",
  409. "matchCount": "4",
  410. "teardown": [
  411. "$TC actions flush action skbedit"
  412. ]
  413. },
  414. {
  415. "id": "a6d6",
  416. "name": "Add skbedit action with index",
  417. "category": [
  418. "actions",
  419. "skbedit"
  420. ],
  421. "setup": [
  422. [
  423. "$TC actions flush action skbedit",
  424. 0,
  425. 1,
  426. 255
  427. ]
  428. ],
  429. "cmdUnderTest": "$TC actions add action skbedit mark 808 index 4040404040",
  430. "expExitCode": "0",
  431. "verifyCmd": "$TC actions list action skbedit",
  432. "matchPattern": "index 4040404040",
  433. "matchCount": "1",
  434. "teardown": [
  435. "$TC actions flush action skbedit"
  436. ]
  437. },
  438. {
  439. "id": "38f3",
  440. "name": "Delete skbedit action",
  441. "category": [
  442. "actions",
  443. "skbedit"
  444. ],
  445. "setup": [
  446. [
  447. "$TC actions flush action skbedit",
  448. 0,
  449. 1,
  450. 255
  451. ],
  452. "$TC actions add action skbedit mark 42 index 9009"
  453. ],
  454. "cmdUnderTest": "$TC actions del action skbedit index 9009",
  455. "expExitCode": "0",
  456. "verifyCmd": "$TC actions list action skbedit",
  457. "matchPattern": "action order [0-9]*: skbedit mark 42",
  458. "matchCount": "0",
  459. "teardown": [
  460. "$TC actions flush action skbedit"
  461. ]
  462. },
  463. {
  464. "id": "ce97",
  465. "name": "Flush skbedit actions",
  466. "category": [
  467. "actions",
  468. "skbedit"
  469. ],
  470. "setup": [
  471. "$TC actions add action skbedit mark 500",
  472. "$TC actions add action skbedit mark 501",
  473. "$TC actions add action skbedit mark 502",
  474. "$TC actions add action skbedit mark 503",
  475. "$TC actions add action skbedit mark 504",
  476. "$TC actions add action skbedit mark 505",
  477. "$TC actions add action skbedit mark 506"
  478. ],
  479. "cmdUnderTest": "$TC actions flush action skbedit",
  480. "expExitCode": "0",
  481. "verifyCmd": "$TC actions list action skbedit",
  482. "matchPattern": "action order [0-9]*: skbedit",
  483. "matchCount": "0",
  484. "teardown": [
  485. "$TC actions flush action skbedit"
  486. ]
  487. }
  488. ]