| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396 |
- [
- {
- "id": "7d50",
- "name": "Add skbmod action to set destination mac",
- "category": [
- "actions",
- "skbmod"
- ],
- "setup": [
- [
- "$TC actions flush action skbmod",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action skbmod set dmac 11:22:33:44:55:66 index 5",
- "expExitCode": "0",
- "verifyCmd": "$TC actions ls action skbmod",
- "matchPattern": "action order [0-9]*: skbmod pipe set dmac 11:22:33:44:55:66\\s+index 5",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action skbmod"
- ]
- },
- {
- "id": "9b29",
- "name": "Add skbmod action to set source mac",
- "category": [
- "actions",
- "skbmod"
- ],
- "setup": [
- [
- "$TC actions flush action skbmod",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action skbmod set smac 77:88:99:AA:BB:CC index 7",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action skbmod index 7",
- "matchPattern": "action order [0-9]*: skbmod pipe set smac 77:88:99:aa:bb:cc\\s+index 7",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action skbmod"
- ]
- },
- {
- "id": "1724",
- "name": "Add skbmod action with invalid mac",
- "category": [
- "actions",
- "skbmod"
- ],
- "setup": [
- [
- "$TC actions flush action skbmod",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action skbmod set smac 00:44:55:44:55",
- "expExitCode": "255",
- "verifyCmd": "$TC actions ls action skbmod",
- "matchPattern": "action order [0-9]*: skbmod pipe set smac 00:44:55:44:55",
- "matchCount": "0",
- "teardown": [
- "$TC actions flush action skbmod"
- ]
- },
- {
- "id": "3cf1",
- "name": "Add skbmod action with valid etype",
- "category": [
- "actions",
- "skbmod"
- ],
- "setup": [
- [
- "$TC actions flush action skbmod",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action skbmod set etype 0xfefe",
- "expExitCode": "0",
- "verifyCmd": "$TC actions ls action skbmod",
- "matchPattern": "action order [0-9]*: skbmod pipe set etype 0xFEFE",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action skbmod"
- ]
- },
- {
- "id": "a749",
- "name": "Add skbmod action with invalid etype",
- "category": [
- "actions",
- "skbmod"
- ],
- "setup": [
- [
- "$TC actions flush action skbmod",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action skbmod set etype 0xfefef",
- "expExitCode": "255",
- "verifyCmd": "$TC actions ls action skbmod",
- "matchPattern": "action order [0-9]*: skbmod pipe set etype 0xFEFEF",
- "matchCount": "0",
- "teardown": [
- "$TC actions flush action skbmod"
- ]
- },
- {
- "id": "bfe6",
- "name": "Add skbmod action to swap mac",
- "category": [
- "actions",
- "skbmod"
- ],
- "setup": [
- [
- "$TC actions flush action skbmod",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action skbmod swap mac",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action skbmod index 1",
- "matchPattern": "action order [0-9]*: skbmod pipe swap mac",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action skbmod"
- ]
- },
- {
- "id": "839b",
- "name": "Add skbmod action with control pipe",
- "category": [
- "actions",
- "skbmod"
- ],
- "setup": [
- [
- "$TC actions flush action skbmod",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action skbmod swap mac pipe",
- "expExitCode": "0",
- "verifyCmd": "$TC actions ls action skbmod",
- "matchPattern": "action order [0-9]*: skbmod pipe swap mac",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action skbmod"
- ]
- },
- {
- "id": "c167",
- "name": "Add skbmod action with control reclassify",
- "category": [
- "actions",
- "skbmod"
- ],
- "setup": [
- [
- "$TC actions flush action skbmod",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action skbmod set etype 0xbeef reclassify",
- "expExitCode": "0",
- "verifyCmd": "$TC actions ls action skbmod",
- "matchPattern": "action order [0-9]*: skbmod reclassify set etype 0xBEEF",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action skbmod"
- ]
- },
- {
- "id": "0c2f",
- "name": "Add skbmod action with control drop",
- "category": [
- "actions",
- "skbmod"
- ],
- "setup": [
- [
- "$TC actions flush action skbmod",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action skbmod set etype 0x0001 drop",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action skbmod index 1",
- "matchPattern": "action order [0-9]*: skbmod drop set etype 0x1",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action skbmod"
- ]
- },
- {
- "id": "d113",
- "name": "Add skbmod action with control continue",
- "category": [
- "actions",
- "skbmod"
- ],
- "setup": [
- [
- "$TC actions flush action skbmod",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action skbmod set etype 0x1 continue",
- "expExitCode": "0",
- "verifyCmd": "$TC actions ls action skbmod",
- "matchPattern": "action order [0-9]*: skbmod continue set etype 0x1",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action skbmod"
- ]
- },
- {
- "id": "7242",
- "name": "Add skbmod action with control pass",
- "category": [
- "actions",
- "skbmod"
- ],
- "setup": [
- [
- "$TC actions flush action skbmod",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action skbmod set smac 00:00:00:00:00:01 pass",
- "expExitCode": "0",
- "verifyCmd": "$TC actions ls action skbmod",
- "matchPattern": "action order [0-9]*: skbmod pass set smac 00:00:00:00:00:01",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action skbmod"
- ]
- },
- {
- "id": "6046",
- "name": "Add skbmod action with control reclassify and cookie",
- "category": [
- "actions",
- "skbmod"
- ],
- "setup": [
- [
- "$TC actions flush action skbmod",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action skbmod set smac 00:01:02:03:04:01 reclassify index 1 cookie ddeeffaabb11cc22",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action skbmod index 1",
- "matchPattern": "action order [0-9]*: skbmod reclassify set smac 00:01:02:03:04:01.*index 1 ref.*cookie ddeeffaabb11cc22",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action skbmod"
- ]
- },
- {
- "id": "58cb",
- "name": "List skbmod actions",
- "category": [
- "actions",
- "skbmod"
- ],
- "setup": [
- [
- "$TC actions flush action skbmod",
- 0,
- 1,
- 255
- ],
- "$TC actions add action skbmod set etype 0x0001",
- "$TC actions add action skbmod set etype 0x0011",
- "$TC actions add action skbmod set etype 0x0021",
- "$TC actions add action skbmod set etype 0x0031",
- "$TC actions add action skbmod set etype 0x0041"
- ],
- "cmdUnderTest": "$TC actions ls action skbmod",
- "expExitCode": "0",
- "verifyCmd": "$TC actions ls action skbmod",
- "matchPattern": "action order [0-9]*: skbmod",
- "matchCount": "5",
- "teardown": [
- "$TC actions flush action skbmod"
- ]
- },
- {
- "id": "9aa8",
- "name": "Get a single skbmod action from a list",
- "category": [
- "actions",
- "skbmod"
- ],
- "setup": [
- [
- "$TC actions flush action skbmod",
- 0,
- 1,
- 255
- ],
- "$TC actions add action skbmod set etype 0x0001",
- "$TC actions add action skbmod set etype 0x0011",
- "$TC actions add action skbmod set etype 0x0021",
- "$TC actions add action skbmod set etype 0x0031",
- "$TC actions add action skbmod set etype 0x0041"
- ],
- "cmdUnderTest": "$TC actions ls action skbmod",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action skbmod index 4",
- "matchPattern": "action order [0-9]*: skbmod pipe set etype 0x31",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action skbmod"
- ]
- },
- {
- "id": "e93a",
- "name": "Delete an skbmod action",
- "category": [
- "actions",
- "skbmod"
- ],
- "setup": [
- [
- "$TC actions flush action skbmod",
- 0,
- 1,
- 255
- ],
- "$TC actions add action skbmod set etype 0x1111 index 909"
- ],
- "cmdUnderTest": "$TC actions del action skbmod index 909",
- "expExitCode": "0",
- "verifyCmd": "$TC actions ls action skbmod",
- "matchPattern": "action order [0-9]*: skbmod pipe set etype 0x1111\\s+index 909",
- "matchCount": "0",
- "teardown": [
- "$TC actions flush action skbmod"
- ]
- },
- {
- "id": "40c2",
- "name": "Flush skbmod actions",
- "category": [
- "actions",
- "skbmod"
- ],
- "setup": [
- "$TC actions add action skbmod set etype 0x0001",
- "$TC actions add action skbmod set etype 0x0011",
- "$TC actions add action skbmod set etype 0x0021",
- "$TC actions add action skbmod set etype 0x0031",
- "$TC actions add action skbmod set etype 0x0041"
- ],
- "cmdUnderTest": "$TC actions flush action skbmod",
- "expExitCode": "0",
- "verifyCmd": "$TC actions ls action skbmod",
- "matchPattern": "action order [0-9]*: skbmod",
- "matchCount": "0",
- "teardown": [
- "$TC actions flush action skbmod"
- ]
- }
- ]
|