skbmod.json 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. [
  2. {
  3. "id": "7d50",
  4. "name": "Add skbmod action to set destination mac",
  5. "category": [
  6. "actions",
  7. "skbmod"
  8. ],
  9. "plugins": {
  10. "requires": "nsPlugin"
  11. },
  12. "setup": [
  13. [
  14. "$TC actions flush action skbmod",
  15. 0,
  16. 1,
  17. 255
  18. ]
  19. ],
  20. "cmdUnderTest": "$TC actions add action skbmod set dmac 11:22:33:44:55:66 index 5",
  21. "expExitCode": "0",
  22. "verifyCmd": "$TC actions ls action skbmod",
  23. "matchPattern": "action order [0-9]*: skbmod pipe set dmac 11:22:33:44:55:66\\s+index 5",
  24. "matchCount": "1",
  25. "teardown": [
  26. "$TC actions flush action skbmod"
  27. ]
  28. },
  29. {
  30. "id": "9b29",
  31. "name": "Add skbmod action to set source mac",
  32. "category": [
  33. "actions",
  34. "skbmod"
  35. ],
  36. "plugins": {
  37. "requires": "nsPlugin"
  38. },
  39. "setup": [
  40. [
  41. "$TC actions flush action skbmod",
  42. 0,
  43. 1,
  44. 255
  45. ]
  46. ],
  47. "cmdUnderTest": "$TC actions add action skbmod set smac 77:88:99:AA:BB:CC index 7",
  48. "expExitCode": "0",
  49. "verifyCmd": "$TC actions get action skbmod index 7",
  50. "matchPattern": "action order [0-9]*: skbmod pipe set smac 77:88:99:aa:bb:cc\\s+index 7",
  51. "matchCount": "1",
  52. "teardown": [
  53. "$TC actions flush action skbmod"
  54. ]
  55. },
  56. {
  57. "id": "1724",
  58. "name": "Add skbmod action with invalid mac",
  59. "category": [
  60. "actions",
  61. "skbmod"
  62. ],
  63. "plugins": {
  64. "requires": "nsPlugin"
  65. },
  66. "setup": [
  67. [
  68. "$TC actions flush action skbmod",
  69. 0,
  70. 1,
  71. 255
  72. ]
  73. ],
  74. "cmdUnderTest": "$TC actions add action skbmod set smac 00:44:55:44:55",
  75. "expExitCode": "255",
  76. "verifyCmd": "$TC actions ls action skbmod",
  77. "matchPattern": "action order [0-9]*: skbmod pipe set smac 00:44:55:44:55",
  78. "matchCount": "0",
  79. "teardown": [
  80. "$TC actions flush action skbmod"
  81. ]
  82. },
  83. {
  84. "id": "3cf1",
  85. "name": "Add skbmod action with valid etype",
  86. "category": [
  87. "actions",
  88. "skbmod"
  89. ],
  90. "plugins": {
  91. "requires": "nsPlugin"
  92. },
  93. "setup": [
  94. [
  95. "$TC actions flush action skbmod",
  96. 0,
  97. 1,
  98. 255
  99. ]
  100. ],
  101. "cmdUnderTest": "$TC actions add action skbmod set etype 0xfefe",
  102. "expExitCode": "0",
  103. "verifyCmd": "$TC actions ls action skbmod",
  104. "matchPattern": "action order [0-9]*: skbmod pipe set etype 0xFEFE",
  105. "matchCount": "1",
  106. "teardown": [
  107. "$TC actions flush action skbmod"
  108. ]
  109. },
  110. {
  111. "id": "a749",
  112. "name": "Add skbmod action with invalid etype",
  113. "category": [
  114. "actions",
  115. "skbmod"
  116. ],
  117. "plugins": {
  118. "requires": "nsPlugin"
  119. },
  120. "setup": [
  121. [
  122. "$TC actions flush action skbmod",
  123. 0,
  124. 1,
  125. 255
  126. ]
  127. ],
  128. "cmdUnderTest": "$TC actions add action skbmod set etype 0xfefef",
  129. "expExitCode": "255",
  130. "verifyCmd": "$TC actions ls action skbmod",
  131. "matchPattern": "action order [0-9]*: skbmod pipe set etype 0xFEFEF",
  132. "matchCount": "0",
  133. "teardown": [
  134. "$TC actions flush action skbmod"
  135. ]
  136. },
  137. {
  138. "id": "bfe6",
  139. "name": "Add skbmod action to swap mac",
  140. "category": [
  141. "actions",
  142. "skbmod"
  143. ],
  144. "plugins": {
  145. "requires": "nsPlugin"
  146. },
  147. "setup": [
  148. [
  149. "$TC actions flush action skbmod",
  150. 0,
  151. 1,
  152. 255
  153. ]
  154. ],
  155. "cmdUnderTest": "$TC actions add action skbmod swap mac",
  156. "expExitCode": "0",
  157. "verifyCmd": "$TC actions get action skbmod index 1",
  158. "matchPattern": "action order [0-9]*: skbmod pipe swap mac",
  159. "matchCount": "1",
  160. "teardown": [
  161. "$TC actions flush action skbmod"
  162. ]
  163. },
  164. {
  165. "id": "839b",
  166. "name": "Add skbmod action with control pipe",
  167. "category": [
  168. "actions",
  169. "skbmod"
  170. ],
  171. "plugins": {
  172. "requires": "nsPlugin"
  173. },
  174. "setup": [
  175. [
  176. "$TC actions flush action skbmod",
  177. 0,
  178. 1,
  179. 255
  180. ]
  181. ],
  182. "cmdUnderTest": "$TC actions add action skbmod swap mac pipe",
  183. "expExitCode": "0",
  184. "verifyCmd": "$TC actions ls action skbmod",
  185. "matchPattern": "action order [0-9]*: skbmod pipe swap mac",
  186. "matchCount": "1",
  187. "teardown": [
  188. "$TC actions flush action skbmod"
  189. ]
  190. },
  191. {
  192. "id": "c167",
  193. "name": "Add skbmod action with control reclassify",
  194. "category": [
  195. "actions",
  196. "skbmod"
  197. ],
  198. "plugins": {
  199. "requires": "nsPlugin"
  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 0xbeef reclassify",
  210. "expExitCode": "0",
  211. "verifyCmd": "$TC actions ls action skbmod",
  212. "matchPattern": "action order [0-9]*: skbmod reclassify set etype 0xBEEF",
  213. "matchCount": "1",
  214. "teardown": [
  215. "$TC actions flush action skbmod"
  216. ]
  217. },
  218. {
  219. "id": "0c2f",
  220. "name": "Add skbmod action with control drop",
  221. "category": [
  222. "actions",
  223. "skbmod"
  224. ],
  225. "plugins": {
  226. "requires": "nsPlugin"
  227. },
  228. "setup": [
  229. [
  230. "$TC actions flush action skbmod",
  231. 0,
  232. 1,
  233. 255
  234. ]
  235. ],
  236. "cmdUnderTest": "$TC actions add action skbmod set etype 0x0001 drop",
  237. "expExitCode": "0",
  238. "verifyCmd": "$TC actions get action skbmod index 1",
  239. "matchPattern": "action order [0-9]*: skbmod drop set etype 0x1",
  240. "matchCount": "1",
  241. "teardown": [
  242. "$TC actions flush action skbmod"
  243. ]
  244. },
  245. {
  246. "id": "d113",
  247. "name": "Add skbmod action with control continue",
  248. "category": [
  249. "actions",
  250. "skbmod"
  251. ],
  252. "plugins": {
  253. "requires": "nsPlugin"
  254. },
  255. "setup": [
  256. [
  257. "$TC actions flush action skbmod",
  258. 0,
  259. 1,
  260. 255
  261. ]
  262. ],
  263. "cmdUnderTest": "$TC actions add action skbmod set etype 0x1 continue",
  264. "expExitCode": "0",
  265. "verifyCmd": "$TC actions ls action skbmod",
  266. "matchPattern": "action order [0-9]*: skbmod continue set etype 0x1",
  267. "matchCount": "1",
  268. "teardown": [
  269. "$TC actions flush action skbmod"
  270. ]
  271. },
  272. {
  273. "id": "7242",
  274. "name": "Add skbmod action with control pass",
  275. "category": [
  276. "actions",
  277. "skbmod"
  278. ],
  279. "plugins": {
  280. "requires": "nsPlugin"
  281. },
  282. "setup": [
  283. [
  284. "$TC actions flush action skbmod",
  285. 0,
  286. 1,
  287. 255
  288. ]
  289. ],
  290. "cmdUnderTest": "$TC actions add action skbmod set smac 00:00:00:00:00:01 pass",
  291. "expExitCode": "0",
  292. "verifyCmd": "$TC actions ls action skbmod",
  293. "matchPattern": "action order [0-9]*: skbmod pass set smac 00:00:00:00:00:01",
  294. "matchCount": "1",
  295. "teardown": [
  296. "$TC actions flush action skbmod"
  297. ]
  298. },
  299. {
  300. "id": "6046",
  301. "name": "Add skbmod action with control reclassify and cookie",
  302. "category": [
  303. "actions",
  304. "skbmod"
  305. ],
  306. "plugins": {
  307. "requires": "nsPlugin"
  308. },
  309. "setup": [
  310. [
  311. "$TC actions flush action skbmod",
  312. 0,
  313. 1,
  314. 255
  315. ]
  316. ],
  317. "cmdUnderTest": "$TC actions add action skbmod set smac 00:01:02:03:04:01 reclassify index 1 cookie ddeeffaabb11cc22",
  318. "expExitCode": "0",
  319. "verifyCmd": "$TC actions get action skbmod index 1",
  320. "matchPattern": "action order [0-9]*: skbmod reclassify set smac 00:01:02:03:04:01.*index 1 ref.*cookie ddeeffaabb11cc22",
  321. "matchCount": "1",
  322. "teardown": [
  323. "$TC actions flush action skbmod"
  324. ]
  325. },
  326. {
  327. "id": "58cb",
  328. "name": "List skbmod actions",
  329. "category": [
  330. "actions",
  331. "skbmod"
  332. ],
  333. "plugins": {
  334. "requires": "nsPlugin"
  335. },
  336. "setup": [
  337. [
  338. "$TC actions flush action skbmod",
  339. 0,
  340. 1,
  341. 255
  342. ],
  343. "$TC actions add action skbmod set etype 0x0001",
  344. "$TC actions add action skbmod set etype 0x0011",
  345. "$TC actions add action skbmod set etype 0x0021",
  346. "$TC actions add action skbmod set etype 0x0031",
  347. "$TC actions add action skbmod set etype 0x0041"
  348. ],
  349. "cmdUnderTest": "$TC actions ls action skbmod",
  350. "expExitCode": "0",
  351. "verifyCmd": "$TC actions ls action skbmod",
  352. "matchPattern": "action order [0-9]*: skbmod",
  353. "matchCount": "5",
  354. "teardown": [
  355. "$TC actions flush action skbmod"
  356. ]
  357. },
  358. {
  359. "id": "9aa8",
  360. "name": "Get a single skbmod action from a list",
  361. "category": [
  362. "actions",
  363. "skbmod"
  364. ],
  365. "plugins": {
  366. "requires": "nsPlugin"
  367. },
  368. "setup": [
  369. [
  370. "$TC actions flush action skbmod",
  371. 0,
  372. 1,
  373. 255
  374. ],
  375. "$TC actions add action skbmod set etype 0x0001",
  376. "$TC actions add action skbmod set etype 0x0011",
  377. "$TC actions add action skbmod set etype 0x0021",
  378. "$TC actions add action skbmod set etype 0x0031",
  379. "$TC actions add action skbmod set etype 0x0041"
  380. ],
  381. "cmdUnderTest": "$TC actions ls action skbmod",
  382. "expExitCode": "0",
  383. "verifyCmd": "$TC actions get action skbmod index 4",
  384. "matchPattern": "action order [0-9]*: skbmod pipe set etype 0x31",
  385. "matchCount": "1",
  386. "teardown": [
  387. "$TC actions flush action skbmod"
  388. ]
  389. },
  390. {
  391. "id": "e93a",
  392. "name": "Delete an skbmod action",
  393. "category": [
  394. "actions",
  395. "skbmod"
  396. ],
  397. "plugins": {
  398. "requires": "nsPlugin"
  399. },
  400. "setup": [
  401. [
  402. "$TC actions flush action skbmod",
  403. 0,
  404. 1,
  405. 255
  406. ],
  407. "$TC actions add action skbmod set etype 0x1111 index 909"
  408. ],
  409. "cmdUnderTest": "$TC actions del action skbmod index 909",
  410. "expExitCode": "0",
  411. "verifyCmd": "$TC actions ls action skbmod",
  412. "matchPattern": "action order [0-9]*: skbmod pipe set etype 0x1111\\s+index 909",
  413. "matchCount": "0",
  414. "teardown": [
  415. "$TC actions flush action skbmod"
  416. ]
  417. },
  418. {
  419. "id": "40c2",
  420. "name": "Flush skbmod actions",
  421. "category": [
  422. "actions",
  423. "skbmod"
  424. ],
  425. "plugins": {
  426. "requires": "nsPlugin"
  427. },
  428. "setup": [
  429. "$TC actions add action skbmod set etype 0x0001",
  430. "$TC actions add action skbmod set etype 0x0011",
  431. "$TC actions add action skbmod set etype 0x0021",
  432. "$TC actions add action skbmod set etype 0x0031",
  433. "$TC actions add action skbmod set etype 0x0041"
  434. ],
  435. "cmdUnderTest": "$TC actions flush action skbmod",
  436. "expExitCode": "0",
  437. "verifyCmd": "$TC actions ls action skbmod",
  438. "matchPattern": "action order [0-9]*: skbmod",
  439. "matchCount": "0",
  440. "teardown": [
  441. "$TC actions flush action skbmod"
  442. ]
  443. },
  444. {
  445. "id": "b651",
  446. "name": "Replace skbmod action with invalid goto_chain control",
  447. "category": [
  448. "actions",
  449. "skbmod"
  450. ],
  451. "plugins": {
  452. "requires": "nsPlugin"
  453. },
  454. "setup": [
  455. [
  456. "$TC actions flush action skbmod",
  457. 0,
  458. 1,
  459. 255
  460. ],
  461. "$TC actions add action skbmod set etype 0x1111 pass index 90"
  462. ],
  463. "cmdUnderTest": "$TC actions replace action skbmod set etype 0x1111 goto chain 42 index 90 cookie c1a0c1a0",
  464. "expExitCode": "255",
  465. "verifyCmd": "$TC actions ls action skbmod",
  466. "matchPattern": "action order [0-9]*: skbmod pass set etype 0x1111\\s+index 90 ref",
  467. "matchCount": "1",
  468. "teardown": [
  469. "$TC actions flush action skbmod"
  470. ]
  471. },
  472. {
  473. "id": "fe09",
  474. "name": "Add skbmod action to mark ECN bits",
  475. "category": [
  476. "actions",
  477. "skbmod"
  478. ],
  479. "plugins": {
  480. "requires": "nsPlugin"
  481. },
  482. "setup": [
  483. [
  484. "$TC actions flush action skbmod",
  485. 0,
  486. 1,
  487. 255
  488. ]
  489. ],
  490. "cmdUnderTest": "$TC actions add action skbmod ecn",
  491. "expExitCode": "0",
  492. "verifyCmd": "$TC actions get action skbmod index 1",
  493. "matchPattern": "action order [0-9]*: skbmod pipe ecn",
  494. "matchCount": "1",
  495. "teardown": [
  496. "$TC actions flush action skbmod"
  497. ]
  498. }
  499. ]