skbmod.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. [
  2. {
  3. "id": "7d50",
  4. "name": "Add skbmod action to set destination mac",
  5. "category": [
  6. "actions",
  7. "skbmod"
  8. ],
  9. "setup": [
  10. [
  11. "$TC actions flush action skbmod",
  12. 0,
  13. 1,
  14. 255
  15. ]
  16. ],
  17. "cmdUnderTest": "$TC actions add action skbmod set dmac 11:22:33:44:55:66 index 5",
  18. "expExitCode": "0",
  19. "verifyCmd": "$TC actions ls action skbmod",
  20. "matchPattern": "action order [0-9]*: skbmod pipe set dmac 11:22:33:44:55:66\\s+index 5",
  21. "matchCount": "1",
  22. "teardown": [
  23. "$TC actions flush action skbmod"
  24. ]
  25. },
  26. {
  27. "id": "9b29",
  28. "name": "Add skbmod action to set source mac",
  29. "category": [
  30. "actions",
  31. "skbmod"
  32. ],
  33. "setup": [
  34. [
  35. "$TC actions flush action skbmod",
  36. 0,
  37. 1,
  38. 255
  39. ]
  40. ],
  41. "cmdUnderTest": "$TC actions add action skbmod set smac 77:88:99:AA:BB:CC index 7",
  42. "expExitCode": "0",
  43. "verifyCmd": "$TC actions get action skbmod index 7",
  44. "matchPattern": "action order [0-9]*: skbmod pipe set smac 77:88:99:aa:bb:cc\\s+index 7",
  45. "matchCount": "1",
  46. "teardown": [
  47. "$TC actions flush action skbmod"
  48. ]
  49. },
  50. {
  51. "id": "1724",
  52. "name": "Add skbmod action with invalid mac",
  53. "category": [
  54. "actions",
  55. "skbmod"
  56. ],
  57. "setup": [
  58. [
  59. "$TC actions flush action skbmod",
  60. 0,
  61. 1,
  62. 255
  63. ]
  64. ],
  65. "cmdUnderTest": "$TC actions add action skbmod set smac 00:44:55:44:55",
  66. "expExitCode": "255",
  67. "verifyCmd": "$TC actions ls action skbmod",
  68. "matchPattern": "action order [0-9]*: skbmod pipe set smac 00:44:55:44:55",
  69. "matchCount": "0",
  70. "teardown": [
  71. "$TC actions flush action skbmod"
  72. ]
  73. },
  74. {
  75. "id": "3cf1",
  76. "name": "Add skbmod action with valid etype",
  77. "category": [
  78. "actions",
  79. "skbmod"
  80. ],
  81. "setup": [
  82. [
  83. "$TC actions flush action skbmod",
  84. 0,
  85. 1,
  86. 255
  87. ]
  88. ],
  89. "cmdUnderTest": "$TC actions add action skbmod set etype 0xfefe",
  90. "expExitCode": "0",
  91. "verifyCmd": "$TC actions ls action skbmod",
  92. "matchPattern": "action order [0-9]*: skbmod pipe set etype 0xFEFE",
  93. "matchCount": "1",
  94. "teardown": [
  95. "$TC actions flush action skbmod"
  96. ]
  97. },
  98. {
  99. "id": "a749",
  100. "name": "Add skbmod action with invalid etype",
  101. "category": [
  102. "actions",
  103. "skbmod"
  104. ],
  105. "setup": [
  106. [
  107. "$TC actions flush action skbmod",
  108. 0,
  109. 1,
  110. 255
  111. ]
  112. ],
  113. "cmdUnderTest": "$TC actions add action skbmod set etype 0xfefef",
  114. "expExitCode": "255",
  115. "verifyCmd": "$TC actions ls action skbmod",
  116. "matchPattern": "action order [0-9]*: skbmod pipe set etype 0xFEFEF",
  117. "matchCount": "0",
  118. "teardown": [
  119. "$TC actions flush action skbmod"
  120. ]
  121. },
  122. {
  123. "id": "bfe6",
  124. "name": "Add skbmod action to swap mac",
  125. "category": [
  126. "actions",
  127. "skbmod"
  128. ],
  129. "setup": [
  130. [
  131. "$TC actions flush action skbmod",
  132. 0,
  133. 1,
  134. 255
  135. ]
  136. ],
  137. "cmdUnderTest": "$TC actions add action skbmod swap mac",
  138. "expExitCode": "0",
  139. "verifyCmd": "$TC actions get action skbmod index 1",
  140. "matchPattern": "action order [0-9]*: skbmod pipe swap mac",
  141. "matchCount": "1",
  142. "teardown": [
  143. "$TC actions flush action skbmod"
  144. ]
  145. },
  146. {
  147. "id": "839b",
  148. "name": "Add skbmod action with control pipe",
  149. "category": [
  150. "actions",
  151. "skbmod"
  152. ],
  153. "setup": [
  154. [
  155. "$TC actions flush action skbmod",
  156. 0,
  157. 1,
  158. 255
  159. ]
  160. ],
  161. "cmdUnderTest": "$TC actions add action skbmod swap mac pipe",
  162. "expExitCode": "0",
  163. "verifyCmd": "$TC actions ls action skbmod",
  164. "matchPattern": "action order [0-9]*: skbmod pipe swap mac",
  165. "matchCount": "1",
  166. "teardown": [
  167. "$TC actions flush action skbmod"
  168. ]
  169. },
  170. {
  171. "id": "c167",
  172. "name": "Add skbmod action with control reclassify",
  173. "category": [
  174. "actions",
  175. "skbmod"
  176. ],
  177. "setup": [
  178. [
  179. "$TC actions flush action skbmod",
  180. 0,
  181. 1,
  182. 255
  183. ]
  184. ],
  185. "cmdUnderTest": "$TC actions add action skbmod set etype 0xbeef reclassify",
  186. "expExitCode": "0",
  187. "verifyCmd": "$TC actions ls action skbmod",
  188. "matchPattern": "action order [0-9]*: skbmod reclassify set etype 0xBEEF",
  189. "matchCount": "1",
  190. "teardown": [
  191. "$TC actions flush action skbmod"
  192. ]
  193. },
  194. {
  195. "id": "0c2f",
  196. "name": "Add skbmod action with control drop",
  197. "category": [
  198. "actions",
  199. "skbmod"
  200. ],
  201. "setup": [
  202. [
  203. "$TC actions flush action skbmod",
  204. 0,
  205. 1,
  206. 255
  207. ]
  208. ],
  209. "cmdUnderTest": "$TC actions add action skbmod set etype 0x0001 drop",
  210. "expExitCode": "0",
  211. "verifyCmd": "$TC actions get action skbmod index 1",
  212. "matchPattern": "action order [0-9]*: skbmod drop set etype 0x1",
  213. "matchCount": "1",
  214. "teardown": [
  215. "$TC actions flush action skbmod"
  216. ]
  217. },
  218. {
  219. "id": "d113",
  220. "name": "Add skbmod action with control continue",
  221. "category": [
  222. "actions",
  223. "skbmod"
  224. ],
  225. "setup": [
  226. [
  227. "$TC actions flush action skbmod",
  228. 0,
  229. 1,
  230. 255
  231. ]
  232. ],
  233. "cmdUnderTest": "$TC actions add action skbmod set etype 0x1 continue",
  234. "expExitCode": "0",
  235. "verifyCmd": "$TC actions ls action skbmod",
  236. "matchPattern": "action order [0-9]*: skbmod continue set etype 0x1",
  237. "matchCount": "1",
  238. "teardown": [
  239. "$TC actions flush action skbmod"
  240. ]
  241. },
  242. {
  243. "id": "7242",
  244. "name": "Add skbmod action with control pass",
  245. "category": [
  246. "actions",
  247. "skbmod"
  248. ],
  249. "setup": [
  250. [
  251. "$TC actions flush action skbmod",
  252. 0,
  253. 1,
  254. 255
  255. ]
  256. ],
  257. "cmdUnderTest": "$TC actions add action skbmod set smac 00:00:00:00:00:01 pass",
  258. "expExitCode": "0",
  259. "verifyCmd": "$TC actions ls action skbmod",
  260. "matchPattern": "action order [0-9]*: skbmod pass set smac 00:00:00:00:00:01",
  261. "matchCount": "1",
  262. "teardown": [
  263. "$TC actions flush action skbmod"
  264. ]
  265. },
  266. {
  267. "id": "6046",
  268. "name": "Add skbmod action with control reclassify and cookie",
  269. "category": [
  270. "actions",
  271. "skbmod"
  272. ],
  273. "setup": [
  274. [
  275. "$TC actions flush action skbmod",
  276. 0,
  277. 1,
  278. 255
  279. ]
  280. ],
  281. "cmdUnderTest": "$TC actions add action skbmod set smac 00:01:02:03:04:01 reclassify index 1 cookie ddeeffaabb11cc22",
  282. "expExitCode": "0",
  283. "verifyCmd": "$TC actions get action skbmod index 1",
  284. "matchPattern": "action order [0-9]*: skbmod reclassify set smac 00:01:02:03:04:01.*index 1 ref.*cookie ddeeffaabb11cc22",
  285. "matchCount": "1",
  286. "teardown": [
  287. "$TC actions flush action skbmod"
  288. ]
  289. },
  290. {
  291. "id": "58cb",
  292. "name": "List skbmod actions",
  293. "category": [
  294. "actions",
  295. "skbmod"
  296. ],
  297. "setup": [
  298. [
  299. "$TC actions flush action skbmod",
  300. 0,
  301. 1,
  302. 255
  303. ],
  304. "$TC actions add action skbmod set etype 0x0001",
  305. "$TC actions add action skbmod set etype 0x0011",
  306. "$TC actions add action skbmod set etype 0x0021",
  307. "$TC actions add action skbmod set etype 0x0031",
  308. "$TC actions add action skbmod set etype 0x0041"
  309. ],
  310. "cmdUnderTest": "$TC actions ls action skbmod",
  311. "expExitCode": "0",
  312. "verifyCmd": "$TC actions ls action skbmod",
  313. "matchPattern": "action order [0-9]*: skbmod",
  314. "matchCount": "5",
  315. "teardown": [
  316. "$TC actions flush action skbmod"
  317. ]
  318. },
  319. {
  320. "id": "9aa8",
  321. "name": "Get a single skbmod action from a list",
  322. "category": [
  323. "actions",
  324. "skbmod"
  325. ],
  326. "setup": [
  327. [
  328. "$TC actions flush action skbmod",
  329. 0,
  330. 1,
  331. 255
  332. ],
  333. "$TC actions add action skbmod set etype 0x0001",
  334. "$TC actions add action skbmod set etype 0x0011",
  335. "$TC actions add action skbmod set etype 0x0021",
  336. "$TC actions add action skbmod set etype 0x0031",
  337. "$TC actions add action skbmod set etype 0x0041"
  338. ],
  339. "cmdUnderTest": "$TC actions ls action skbmod",
  340. "expExitCode": "0",
  341. "verifyCmd": "$TC actions get action skbmod index 4",
  342. "matchPattern": "action order [0-9]*: skbmod pipe set etype 0x31",
  343. "matchCount": "1",
  344. "teardown": [
  345. "$TC actions flush action skbmod"
  346. ]
  347. },
  348. {
  349. "id": "e93a",
  350. "name": "Delete an skbmod action",
  351. "category": [
  352. "actions",
  353. "skbmod"
  354. ],
  355. "setup": [
  356. [
  357. "$TC actions flush action skbmod",
  358. 0,
  359. 1,
  360. 255
  361. ],
  362. "$TC actions add action skbmod set etype 0x1111 index 909"
  363. ],
  364. "cmdUnderTest": "$TC actions del action skbmod index 909",
  365. "expExitCode": "0",
  366. "verifyCmd": "$TC actions ls action skbmod",
  367. "matchPattern": "action order [0-9]*: skbmod pipe set etype 0x1111\\s+index 909",
  368. "matchCount": "0",
  369. "teardown": [
  370. "$TC actions flush action skbmod"
  371. ]
  372. },
  373. {
  374. "id": "40c2",
  375. "name": "Flush skbmod actions",
  376. "category": [
  377. "actions",
  378. "skbmod"
  379. ],
  380. "setup": [
  381. "$TC actions add action skbmod set etype 0x0001",
  382. "$TC actions add action skbmod set etype 0x0011",
  383. "$TC actions add action skbmod set etype 0x0021",
  384. "$TC actions add action skbmod set etype 0x0031",
  385. "$TC actions add action skbmod set etype 0x0041"
  386. ],
  387. "cmdUnderTest": "$TC actions flush action skbmod",
  388. "expExitCode": "0",
  389. "verifyCmd": "$TC actions ls action skbmod",
  390. "matchPattern": "action order [0-9]*: skbmod",
  391. "matchCount": "0",
  392. "teardown": [
  393. "$TC actions flush action skbmod"
  394. ]
  395. }
  396. ]