| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392 |
- [
- {
- "id": "a933",
- "name": "Add MPLS dec_ttl action with pipe opcode",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls dec_ttl pipe index 8",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*pipe.*index 8 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "08d1",
- "name": "Add mpls dec_ttl action with pass opcode",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls dec_ttl pass index 8",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action mpls index 8",
- "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*pass.*index 8 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "d786",
- "name": "Add mpls dec_ttl action with drop opcode",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls dec_ttl drop index 8",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action mpls index 8",
- "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*drop.*index 8 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "f334",
- "name": "Add mpls dec_ttl action with reclassify opcode",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls dec_ttl reclassify index 8",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action mpls index 8",
- "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*reclassify.*index 8 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "29bd",
- "name": "Add mpls dec_ttl action with continue opcode",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls dec_ttl continue index 8",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action mpls index 8",
- "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*continue.*index 8 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "48df",
- "name": "Add mpls dec_ttl action with jump opcode",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls dec_ttl jump 10 index 8",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*jump 10.*index 8 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "62eb",
- "name": "Add mpls dec_ttl action with trap opcode",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls dec_ttl trap index 8",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*dec_ttl trap.*index 8 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "09d2",
- "name": "Add mpls dec_ttl action with opcode and cookie",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls dec_ttl pipe index 8 cookie aabbccddeeff",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*dec_ttl pipe.*index 8 ref.*cookie aabbccddeeff",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "c170",
- "name": "Add mpls dec_ttl action with opcode and cookie of max length",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls dec_ttl continue index 8 cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*dec_ttl continue.*index 8 ref.*cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "9118",
- "name": "Add mpls dec_ttl action with invalid opcode",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls dec_ttl foo index 8",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*foo.*index 8 ref",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "6ce1",
- "name": "Add mpls dec_ttl action with label (invalid)",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls dec_ttl label 20",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*label.*20.*pipe",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "352f",
- "name": "Add mpls dec_ttl action with tc (invalid)",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls dec_ttl tc 3",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*tc.*3.*pipe",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "fa1c",
- "name": "Add mpls dec_ttl action with ttl (invalid)",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls dec_ttl ttl 20",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*ttl.*20.*pipe",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "6b79",
- "name": "Add mpls dec_ttl action with bos (invalid)",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls dec_ttl bos 1",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*bos.*1.*pipe",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "d4c4",
- "name": "Add mpls pop action with ip proto",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*pop.*protocol.*ip.*pipe",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "91fb",
- "name": "Add mpls pop action with ip proto and cookie",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4 cookie 12345678",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*pop.*protocol.*ip.*pipe.*ref 1.*cookie 12345678",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "92fe",
- "name": "Add mpls pop action with mpls proto",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls pop protocol mpls_mc",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*pop.*protocol.*mpls_mc.*pipe",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "7e23",
- "name": "Add mpls pop action with no protocol (invalid)",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls pop",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*pop.*pipe",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "6182",
- "name": "Add mpls pop action with label (invalid)",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4 label 20",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*pop.*label.*20.*pipe",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "6475",
- "name": "Add mpls pop action with tc (invalid)",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4 tc 3",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*pop.*tc.*3.*pipe",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "067b",
- "name": "Add mpls pop action with ttl (invalid)",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4 ttl 20",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*pop.*ttl.*20.*pipe",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "7316",
- "name": "Add mpls pop action with bos (invalid)",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4 bos 1",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*pop.*bos.*1.*pipe",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "38cc",
- "name": "Add mpls push action with label",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls push label 20",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*ttl.*[0-9]+.*pipe",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "c281",
- "name": "Add mpls push action with mpls_mc protocol",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls push protocol mpls_mc label 20",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_mc.*label.*20.*ttl.*[0-9]+.*pipe",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "5db4",
- "name": "Add mpls push action with label, tc and ttl",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls push label 20 tc 3 ttl 128",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*tc.*3.*ttl.*128.*pipe",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "7c34",
- "name": "Add mpls push action with label, tc ttl and cookie of max length",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls push label 20 tc 3 ttl 128 cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*tc.*3.*ttl.*128.*pipe.*ref 1.*cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "16eb",
- "name": "Add mpls push action with label and bos",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls push label 20 bos 1",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*bos.*1.*pipe",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "d69d",
- "name": "Add mpls push action with no label (invalid)",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls push",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*pipe",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "e8e4",
- "name": "Add mpls push action with ipv4 protocol (invalid)",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls push protocol ipv4 label 20",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*ttl.*[0-9]+.*pipe",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "ecd0",
- "name": "Add mpls push action with out of range label (invalid)",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls push label 1048576",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*1048576.*pipe",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "d303",
- "name": "Add mpls push action with out of range tc (invalid)",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls push label 20 tc 8",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*tc.*8.*pipe",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "fd6e",
- "name": "Add mpls push action with ttl of 0 (invalid)",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls push label 20 ttl 0",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*ttl.*0.*pipe",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "19e9",
- "name": "Add mpls mod action with mpls label",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls mod label 20",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*modify.*label.*20.*pipe",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "1fde",
- "name": "Add mpls mod action with max mpls label",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls mod label 0xfffff",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*modify.*label.*1048575.*pipe",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "0c50",
- "name": "Add mpls mod action with mpls label exceeding max (invalid)",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls mod label 0x100000",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*modify.*label.*1048576.*pipe",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "10b6",
- "name": "Add mpls mod action with mpls label of MPLS_LABEL_IMPLNULL (invalid)",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls mod label 3",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*modify.*label.*3.*pipe",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "57c9",
- "name": "Add mpls mod action with mpls min tc",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls mod tc 0",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*modify.*tc.*0.*pipe",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "6872",
- "name": "Add mpls mod action with mpls max tc",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls mod tc 7",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*modify.*tc.*7.*pipe",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "a70a",
- "name": "Add mpls mod action with mpls tc exceeding max (invalid)",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls mod tc 8",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*modify.*tc.*4.*pipe",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "6ed5",
- "name": "Add mpls mod action with mpls ttl",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls mod ttl 128",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*128.*pipe",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "77c1",
- "name": "Add mpls mod action with mpls ttl and cookie",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls mod ttl 128 cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*128.*pipe.*ref 1.*cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "b80f",
- "name": "Add mpls mod action with mpls max ttl",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls mod ttl 255",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*255.*pipe",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "8864",
- "name": "Add mpls mod action with mpls min ttl",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls mod ttl 1",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*1.*pipe",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "6c06",
- "name": "Add mpls mod action with mpls ttl of 0 (invalid)",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls mod ttl 0",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*0.*pipe",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "b5d8",
- "name": "Add mpls mod action with mpls ttl exceeding max (invalid)",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls mod ttl 256",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*256.*pipe",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "451f",
- "name": "Add mpls mod action with mpls max bos",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls mod bos 1",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*modify.*bos.*1.*pipe",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "a1ed",
- "name": "Add mpls mod action with mpls min bos",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls mod bos 0",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*modify.*bos.*0.*pipe",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "3dcf",
- "name": "Add mpls mod action with mpls bos exceeding max (invalid)",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls mod bos 2",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*modify.*bos.*2.*pipe",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "db7c",
- "name": "Add mpls mod action with protocol (invalid)",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ]
- ],
- "cmdUnderTest": "$TC actions add action mpls mod protocol ipv4",
- "expExitCode": "255",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*modify.*protocol.*ip.*pipe",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "b070",
- "name": "Replace existing mpls push action with new ID",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ],
- "$TC actions add action mpls push label 20 pipe index 12"
- ],
- "cmdUnderTest": "$TC actions replace action mpls push label 30 pipe index 12",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action mpls index 12",
- "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*30.*pipe.*index 12 ref",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "95a9",
- "name": "Replace existing mpls push action with new label, tc, ttl and cookie",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ],
- "$TC actions add action mpls push label 20 tc 3 ttl 128 index 1 cookie aa11bb22cc33dd44ee55ff66aa11b1b2"
- ],
- "cmdUnderTest": "$TC actions replace action mpls push label 30 tc 2 ttl 125 pipe index 1 cookie aa11bb22cc33",
- "expExitCode": "0",
- "verifyCmd": "$TC actions get action mpls index 1",
- "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*30 tc 2 ttl 125 pipe.*index 1.*cookie aa11bb22cc33",
- "matchCount": "1",
- "teardown": [
- "$TC actions flush action mpls"
- ]
- },
- {
- "id": "6cce",
- "name": "Delete mpls pop action",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ],
- "$TC actions add action mpls pop protocol ipv4 index 44"
- ],
- "cmdUnderTest": "$TC actions del action mpls index 44",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*pop.*index 44 ref",
- "matchCount": "0",
- "teardown": []
- },
- {
- "id": "d138",
- "name": "Flush mpls actions",
- "category": [
- "actions",
- "mpls"
- ],
- "plugins": {
- "requires": "nsPlugin"
- },
- "setup": [
- [
- "$TC actions flush action mpls",
- 0,
- 1,
- 255
- ],
- "$TC actions add action mpls push label 10 index 10",
- "$TC actions add action mpls push label 20 index 20",
- "$TC actions add action mpls push label 30 index 30",
- "$TC actions add action mpls push label 40 index 40"
- ],
- "cmdUnderTest": "$TC actions flush action mpls",
- "expExitCode": "0",
- "verifyCmd": "$TC actions list action mpls",
- "matchPattern": "action order [0-9]+: mpls.*push.*",
- "matchCount": "0",
- "teardown": []
- }
- ]
|