| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692 |
- [
- {
- "id": "6f5a",
- "name": "Add vlan pop action with pipe opcode",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action vlan pop pipe index 8",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action vlan",
- "matchPattern": "action order [0-9]+: vlan.*pop.*pipe.*index 8 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action vlan"
- ]
- },
- {
- "id": "df35",
- "name": "Add vlan pop action with pass opcode",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action vlan pop pass index 8",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action vlan index 8",
- "matchPattern": "action order [0-9]+: vlan.*pop.*pass.*index 8 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action vlan"
- ]
- },
- {
- "id": "b0d4",
- "name": "Add vlan pop action with drop opcode",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action vlan pop drop index 8",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action vlan index 8",
- "matchPattern": "action order [0-9]+: vlan.*pop.*drop.*index 8 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action vlan"
- ]
- },
- {
- "id": "95ee",
- "name": "Add vlan pop action with reclassify opcode",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action vlan pop reclassify index 8",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action vlan index 8",
- "matchPattern": "action order [0-9]+: vlan.*pop.*reclassify.*index 8 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action vlan"
- ]
- },
- {
- "id": "0283",
- "name": "Add vlan pop action with continue opcode",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action vlan pop continue index 8",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action vlan index 8",
- "matchPattern": "action order [0-9]+: vlan.*pop.*continue.*index 8 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action vlan"
- ]
- },
- {
- "id": "b6b9",
- "name": "Add vlan pop action with jump opcode",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action vlan pop jump 10 index 8",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action vlan",
- "matchPattern": "action order [0-9]+: vlan.*jump 10.*index 8 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action vlan"
- ]
- },
- {
- "id": "87c3",
- "name": "Add vlan pop action with trap opcode",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action vlan pop trap index 8",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action vlan",
- "matchPattern": "action order [0-9]+: vlan.*pop trap.*index 8 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action vlan"
- ]
- },
- {
- "id": "a178",
- "name": "Add vlan pop action with invalid opcode",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action vlan pop foo index 8",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action vlan",
- "matchPattern": "action order [0-9]+: vlan.*pop.*foo.*index 8 ref",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "ee6f",
- "name": "Add vlan pop action with index at 32-bit maximum",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action vlan pop index 4294967295",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action vlan",
- "matchPattern": "action order [0-9]+: vlan.*pop.*index 4294967295 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action vlan"
- ]
- },
- {
- "id": "0dfa",
- "name": "Add vlan pop action with index exceeding 32-bit maximum",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action vlan pop reclassify index 429496729599",
- "expExitCode": "255",
- "verifyCmd": "$TC actions get action vlan index 429496729599",
- "matchPattern": "action order [0-9]+: vlan.*pop.reclassify.*index 429496729599",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "2b91",
- "name": "Add vlan invalid action",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action vlan bad_mode",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action vlan",
- "matchPattern": "action order [0-9]+: vlan.*bad_mode",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "57fc",
- "name": "Add vlan push action with invalid protocol type",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action vlan push protocol ABCD",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action vlan",
- "matchPattern": "action order [0-9]+: vlan.*push",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "3989",
- "name": "Add vlan push action with default protocol and priority",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action vlan push id 123 index 18",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action vlan index 18",
- "matchPattern": "action order [0-9]+: vlan.*push id 123 protocol 802.1Q priority 0 pipe.*index 18 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action vlan"
- ]
- },
- {
- "id": "79dc",
- "name": "Add vlan push action with protocol 802.1Q and priority 3",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action vlan push id 77 protocol 802.1Q priority 3 continue index 734",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action vlan index 734",
- "matchPattern": "action order [0-9]+: vlan.*push id 77 protocol 802.1Q priority 3 continue.*index 734 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action vlan"
- ]
- },
- {
- "id": "4d73",
- "name": "Add vlan push action with protocol 802.1AD",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action vlan push id 1024 protocol 802.1AD pass index 10000",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action vlan index 10000",
- "matchPattern": "action order [0-9]+: vlan.*push id 1024 protocol 802.1ad priority 0 pass.*index 10000 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action vlan"
- ]
- },
- {
- "id": "1f4b",
- "name": "Add vlan push action with maximum 12-bit vlan ID",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action vlan push id 4094 index 1",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action vlan index 1",
- "matchPattern": "action order [0-9]+: vlan.*push id 4094.*protocol 802.1Q.*priority 0.*index 1 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action vlan"
- ]
- },
- {
- "id": "1f7b",
- "name": "Add vlan push action with invalid vlan ID",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action vlan push id 5678 index 1",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action vlan",
- "matchPattern": "action order [0-9]+: vlan.*push id 5678.*index 1 ref",
- "matchCount": "0",
- "teardown": [
- "$TC actions flush action vlan"
- ]
- },
- {
- "id": "fe40",
- "name": "Add vlan push action with maximum 3-bit IEEE 802.1p priority",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action vlan push id 4 priority 7 reclassify index 1",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action vlan index 1",
- "matchPattern": "action order [0-9]+: vlan.*push id 4.*protocol 802.1Q.*priority 7.*reclassify.*index 1 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action vlan"
- ]
- },
- {
- "id": "5d02",
- "name": "Add vlan push action with invalid IEEE 802.1p priority",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action vlan push id 5 priority 10 index 1",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action vlan",
- "matchPattern": "action order [0-9]+: vlan.*push id 5.*index 1 ref",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "6812",
- "name": "Add vlan modify action for protocol 802.1Q",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action vlan modify protocol 802.1Q id 5 index 100",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action vlan index 100",
- "matchPattern": "action order [0-9]+: vlan.*modify id 100 protocol 802.1Q priority 0 pipe.*index 100 ref",
- "matchCount": "0",
- "teardown": [
- "$TC actions flush action vlan"
- ]
- },
- {
- "id": "5a31",
- "name": "Add vlan modify action for protocol 802.1AD",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action vlan modify protocol 802.1ad id 500 reclassify index 12",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action vlan index 12",
- "matchPattern": "action order [0-9]+: vlan.*modify id 500 protocol 802.1ad priority 0 reclassify.*index 12 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action vlan"
- ]
- },
- {
- "id": "3deb",
- "name": "Replace existing vlan push action with new ID",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ],
- "$TC actions add action vlan push id 500 pipe index 12"
- ],
- "cmdUnderTest": "$TC actions replace action vlan push id 700 pipe index 12",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action vlan index 12",
- "matchPattern": "action order [0-9]+: vlan.*push id 700 protocol 802.1Q priority 0 pipe.*index 12 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action vlan"
- ]
- },
- {
- "id": "9e76",
- "name": "Replace existing vlan push action with new protocol",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ],
- "$TC actions add action vlan push id 1 protocol 802.1Q pipe index 1"
- ],
- "cmdUnderTest": "$TC actions replace action vlan push id 1 protocol 802.1ad pipe index 1",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action vlan index 1",
- "matchPattern": "action order [0-9]+: vlan.*push id 1 protocol 802.1ad priority 0 pipe.*index 1 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action vlan"
- ]
- },
- {
- "id": "ede4",
- "name": "Replace existing vlan push action with new priority",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ],
- "$TC actions add action vlan push id 1 protocol 802.1Q priority 3 reclassify index 1"
- ],
- "cmdUnderTest": "$TC actions replace action vlan push id 1 priority 4 reclassify index 1",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action vlan index 1",
- "matchPattern": "action order [0-9]+: vlan.*push id 1 protocol 802.1Q priority 4 reclassify.*index 1 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action vlan"
- ]
- },
- {
- "id": "d413",
- "name": "Replace existing vlan pop action with new cookie",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ],
- "$TC actions add action vlan pop continue index 1 cookie 22334455"
- ],
- "cmdUnderTest": "$TC actions replace action vlan pop continue index 1 cookie a1b1c2d1",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action vlan index 1",
- "matchPattern": "action order [0-9]+: vlan.*pop continue.*index 1 ref.*cookie a1b1c2d1",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action vlan"
- ]
- },
- {
- "id": "83a4",
- "name": "Delete vlan pop action",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ],
- "$TC actions add action vlan pop index 44"
- ],
- "cmdUnderTest": "$TC actions del action vlan index 44",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action vlan",
- "matchPattern": "action order [0-9]+: vlan.*pop.*index 44 ref",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "ed1e",
- "name": "Delete vlan push action for protocol 802.1Q",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ],
- "$TC actions add action vlan push id 4094 protocol 802.1Q index 999"
- ],
- "cmdUnderTest": "$TC actions del action vlan index 999",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action vlan",
- "matchPattern": "action order [0-9]+: vlan.*push id 4094 protocol 802.1Q priority 0 pipe.*index 999 ref",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "a2a3",
- "name": "Flush vlan actions",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ],
- "$TC actions add action vlan push id 4 protocol 802.1ad index 10",
- "$TC actions add action vlan push id 4 protocol 802.1ad index 11",
- "$TC actions add action vlan push id 4 protocol 802.1ad index 12",
- "$TC actions add action vlan push id 4 protocol 802.1ad index 13"
- ],
- "cmdUnderTest": "$TC actions flush action vlan",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action vlan",
- "matchPattern": "action order [0-9]+: vlan.*push id 4 protocol 802.1ad",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "1d78",
- "name": "Add vlan push action with cookie",
- "category": [
- "actions",
- "vlan"
- ],
- "setup": [
- [
- "$TC actions flush action vlan",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action vlan push id 4 cookie a0a0a0a0a0a0a0",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action vlan",
- "matchPattern": "action order [0-9]+: vlan.*push id 4.*cookie a0a0a0a0a0a0a0",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action vlan"
- ]
- }
- ]
|