4 "name": "Add MPLS dec_ttl action with pipe opcode",
11 "$TC actions flush action mpls",
17 "cmdUnderTest": "$TC actions add action mpls dec_ttl pipe index 8",
19 "verifyCmd": "$TC actions list action mpls",
20 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*pipe.*index 8 ref",
23 "$TC actions flush action mpls"
28 "name": "Add mpls dec_ttl action with pass opcode",
35 "$TC actions flush action mpls",
41 "cmdUnderTest": "$TC actions add action mpls dec_ttl pass index 8",
43 "verifyCmd": "$TC actions get action mpls index 8",
44 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*pass.*index 8 ref",
47 "$TC actions flush action mpls"
52 "name": "Add mpls dec_ttl action with drop opcode",
59 "$TC actions flush action mpls",
65 "cmdUnderTest": "$TC actions add action mpls dec_ttl drop index 8",
67 "verifyCmd": "$TC actions get action mpls index 8",
68 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*drop.*index 8 ref",
71 "$TC actions flush action mpls"
76 "name": "Add mpls dec_ttl action with reclassify opcode",
83 "$TC actions flush action mpls",
89 "cmdUnderTest": "$TC actions add action mpls dec_ttl reclassify index 8",
91 "verifyCmd": "$TC actions get action mpls index 8",
92 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*reclassify.*index 8 ref",
95 "$TC actions flush action mpls"
100 "name": "Add mpls dec_ttl action with continue opcode",
107 "$TC actions flush action mpls",
113 "cmdUnderTest": "$TC actions add action mpls dec_ttl continue index 8",
115 "verifyCmd": "$TC actions get action mpls index 8",
116 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*continue.*index 8 ref",
119 "$TC actions flush action mpls"
124 "name": "Add mpls dec_ttl action with jump opcode",
131 "$TC actions flush action mpls",
137 "cmdUnderTest": "$TC actions add action mpls dec_ttl jump 10 index 8",
139 "verifyCmd": "$TC actions list action mpls",
140 "matchPattern": "action order [0-9]+: mpls.*jump 10.*index 8 ref",
143 "$TC actions flush action mpls"
148 "name": "Add mpls dec_ttl action with trap opcode",
155 "$TC actions flush action mpls",
161 "cmdUnderTest": "$TC actions add action mpls dec_ttl trap index 8",
163 "verifyCmd": "$TC actions list action mpls",
164 "matchPattern": "action order [0-9]+: mpls.*dec_ttl trap.*index 8 ref",
167 "$TC actions flush action mpls"
172 "name": "Add mpls dec_ttl action with invalid opcode",
179 "$TC actions flush action mpls",
185 "cmdUnderTest": "$TC actions add action mpls dec_ttl foo index 8",
186 "expExitCode": "255",
187 "verifyCmd": "$TC actions list action mpls",
188 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*foo.*index 8 ref",
194 "name": "Add mpls dec_ttl action with label (invalid)",
201 "$TC actions flush action mpls",
207 "cmdUnderTest": "$TC actions add action mpls dec_ttl label 20",
208 "expExitCode": "255",
209 "verifyCmd": "$TC actions list action mpls",
210 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*label.*20.*pipe",
216 "name": "Add mpls dec_ttl action with tc (invalid)",
223 "$TC actions flush action mpls",
229 "cmdUnderTest": "$TC actions add action mpls dec_ttl tc 3",
230 "expExitCode": "255",
231 "verifyCmd": "$TC actions list action mpls",
232 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*tc.*3.*pipe",
238 "name": "Add mpls dec_ttl action with ttl (invalid)",
245 "$TC actions flush action mpls",
251 "cmdUnderTest": "$TC actions add action mpls dec_ttl ttl 20",
252 "expExitCode": "255",
253 "verifyCmd": "$TC actions list action mpls",
254 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*ttl.*20.*pipe",
260 "name": "Add mpls dec_ttl action with bos (invalid)",
267 "$TC actions flush action mpls",
273 "cmdUnderTest": "$TC actions add action mpls dec_ttl bos 1",
274 "expExitCode": "255",
275 "verifyCmd": "$TC actions list action mpls",
276 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*bos.*1.*pipe",
282 "name": "Add mpls pop action with ip proto",
289 "$TC actions flush action mpls",
295 "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4",
297 "verifyCmd": "$TC actions list action mpls",
298 "matchPattern": "action order [0-9]+: mpls.*pop.*protocol.*ip.*pipe",
301 "$TC actions flush action mpls"
306 "name": "Add mpls pop action with mpls proto",
313 "$TC actions flush action mpls",
319 "cmdUnderTest": "$TC actions add action mpls pop protocol mpls_mc",
321 "verifyCmd": "$TC actions list action mpls",
322 "matchPattern": "action order [0-9]+: mpls.*pop.*protocol.*mpls_mc.*pipe",
325 "$TC actions flush action mpls"
330 "name": "Add mpls pop action with no protocol (invalid)",
337 "$TC actions flush action mpls",
343 "cmdUnderTest": "$TC actions add action mpls pop",
344 "expExitCode": "255",
345 "verifyCmd": "$TC actions list action mpls",
346 "matchPattern": "action order [0-9]+: mpls.*pop.*pipe",
352 "name": "Add mpls pop action with label (invalid)",
359 "$TC actions flush action mpls",
365 "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4 label 20",
366 "expExitCode": "255",
367 "verifyCmd": "$TC actions list action mpls",
368 "matchPattern": "action order [0-9]+: mpls.*pop.*label.*20.*pipe",
374 "name": "Add mpls pop action with tc (invalid)",
381 "$TC actions flush action mpls",
387 "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4 tc 3",
388 "expExitCode": "255",
389 "verifyCmd": "$TC actions list action mpls",
390 "matchPattern": "action order [0-9]+: mpls.*pop.*tc.*3.*pipe",
396 "name": "Add mpls pop action with ttl (invalid)",
403 "$TC actions flush action mpls",
409 "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4 ttl 20",
410 "expExitCode": "255",
411 "verifyCmd": "$TC actions list action mpls",
412 "matchPattern": "action order [0-9]+: mpls.*pop.*ttl.*20.*pipe",
418 "name": "Add mpls pop action with bos (invalid)",
425 "$TC actions flush action mpls",
431 "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4 bos 1",
432 "expExitCode": "255",
433 "verifyCmd": "$TC actions list action mpls",
434 "matchPattern": "action order [0-9]+: mpls.*pop.*bos.*1.*pipe",
440 "name": "Add mpls push action with label",
447 "$TC actions flush action mpls",
453 "cmdUnderTest": "$TC actions add action mpls push label 20",
455 "verifyCmd": "$TC actions list action mpls",
456 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*ttl.*[0-9]+.*pipe",
459 "$TC actions flush action mpls"
464 "name": "Add mpls push action with mpls_mc protocol",
471 "$TC actions flush action mpls",
477 "cmdUnderTest": "$TC actions add action mpls push protocol mpls_mc label 20",
479 "verifyCmd": "$TC actions list action mpls",
480 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_mc.*label.*20.*ttl.*[0-9]+.*pipe",
483 "$TC actions flush action mpls"
488 "name": "Add mpls push action with label, tc and ttl",
495 "$TC actions flush action mpls",
501 "cmdUnderTest": "$TC actions add action mpls push label 20 tc 3 ttl 128",
503 "verifyCmd": "$TC actions list action mpls",
504 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*tc.*3.*ttl.*128.*pipe",
507 "$TC actions flush action mpls"
512 "name": "Add mpls push action with label and bos",
519 "$TC actions flush action mpls",
525 "cmdUnderTest": "$TC actions add action mpls push label 20 bos 1",
527 "verifyCmd": "$TC actions list action mpls",
528 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*bos.*1.*pipe",
531 "$TC actions flush action mpls"
536 "name": "Add mpls push action with no label (invalid)",
543 "$TC actions flush action mpls",
549 "cmdUnderTest": "$TC actions add action mpls push",
550 "expExitCode": "255",
551 "verifyCmd": "$TC actions list action mpls",
552 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*pipe",
558 "name": "Add mpls push action with ipv4 protocol (invalid)",
565 "$TC actions flush action mpls",
571 "cmdUnderTest": "$TC actions add action mpls push protocol ipv4 label 20",
572 "expExitCode": "255",
573 "verifyCmd": "$TC actions list action mpls",
574 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*ttl.*[0-9]+.*pipe",
580 "name": "Add mpls push action with out of range label (invalid)",
587 "$TC actions flush action mpls",
593 "cmdUnderTest": "$TC actions add action mpls push label 1048576",
594 "expExitCode": "255",
595 "verifyCmd": "$TC actions list action mpls",
596 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*1048576.*pipe",
602 "name": "Add mpls push action with out of range tc (invalid)",
609 "$TC actions flush action mpls",
615 "cmdUnderTest": "$TC actions add action mpls push label 20 tc 8",
616 "expExitCode": "255",
617 "verifyCmd": "$TC actions list action mpls",
618 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*tc.*8.*pipe",
624 "name": "Add mpls push action with ttl of 0 (invalid)",
631 "$TC actions flush action mpls",
637 "cmdUnderTest": "$TC actions add action mpls push label 20 ttl 0",
638 "expExitCode": "255",
639 "verifyCmd": "$TC actions list action mpls",
640 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*ttl.*0.*pipe",
646 "name": "Add mpls mod action with mpls label",
653 "$TC actions flush action mpls",
659 "cmdUnderTest": "$TC actions add action mpls mod label 20",
661 "verifyCmd": "$TC actions list action mpls",
662 "matchPattern": "action order [0-9]+: mpls.*modify.*label.*20.*pipe",
665 "$TC actions flush action mpls"
670 "name": "Add mpls mod action with max mpls label",
677 "$TC actions flush action mpls",
683 "cmdUnderTest": "$TC actions add action mpls mod label 0xfffff",
685 "verifyCmd": "$TC actions list action mpls",
686 "matchPattern": "action order [0-9]+: mpls.*modify.*label.*1048575.*pipe",
689 "$TC actions flush action mpls"
694 "name": "Add mpls mod action with mpls label exceeding max (invalid)",
701 "$TC actions flush action mpls",
707 "cmdUnderTest": "$TC actions add action mpls mod label 0x100000",
708 "expExitCode": "255",
709 "verifyCmd": "$TC actions list action mpls",
710 "matchPattern": "action order [0-9]+: mpls.*modify.*label.*1048576.*pipe",
716 "name": "Add mpls mod action with mpls label of MPLS_LABEL_IMPLNULL (invalid)",
723 "$TC actions flush action mpls",
729 "cmdUnderTest": "$TC actions add action mpls mod label 3",
730 "expExitCode": "255",
731 "verifyCmd": "$TC actions list action mpls",
732 "matchPattern": "action order [0-9]+: mpls.*modify.*label.*3.*pipe",
738 "name": "Add mpls mod action with mpls min tc",
745 "$TC actions flush action mpls",
751 "cmdUnderTest": "$TC actions add action mpls mod tc 0",
753 "verifyCmd": "$TC actions list action mpls",
754 "matchPattern": "action order [0-9]+: mpls.*modify.*tc.*0.*pipe",
757 "$TC actions flush action mpls"
762 "name": "Add mpls mod action with mpls max tc",
769 "$TC actions flush action mpls",
775 "cmdUnderTest": "$TC actions add action mpls mod tc 7",
777 "verifyCmd": "$TC actions list action mpls",
778 "matchPattern": "action order [0-9]+: mpls.*modify.*tc.*7.*pipe",
781 "$TC actions flush action mpls"
786 "name": "Add mpls mod action with mpls tc exceeding max (invalid)",
793 "$TC actions flush action mpls",
799 "cmdUnderTest": "$TC actions add action mpls mod tc 8",
800 "expExitCode": "255",
801 "verifyCmd": "$TC actions list action mpls",
802 "matchPattern": "action order [0-9]+: mpls.*modify.*tc.*4.*pipe",
808 "name": "Add mpls mod action with mpls ttl",
815 "$TC actions flush action mpls",
821 "cmdUnderTest": "$TC actions add action mpls mod ttl 128",
823 "verifyCmd": "$TC actions list action mpls",
824 "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*128.*pipe",
827 "$TC actions flush action mpls"
832 "name": "Add mpls mod action with mpls max ttl",
839 "$TC actions flush action mpls",
845 "cmdUnderTest": "$TC actions add action mpls mod ttl 255",
847 "verifyCmd": "$TC actions list action mpls",
848 "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*255.*pipe",
851 "$TC actions flush action mpls"
856 "name": "Add mpls mod action with mpls min ttl",
863 "$TC actions flush action mpls",
869 "cmdUnderTest": "$TC actions add action mpls mod ttl 1",
871 "verifyCmd": "$TC actions list action mpls",
872 "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*1.*pipe",
875 "$TC actions flush action mpls"
880 "name": "Add mpls mod action with mpls ttl of 0 (invalid)",
887 "$TC actions flush action mpls",
893 "cmdUnderTest": "$TC actions add action mpls mod ttl 0",
894 "expExitCode": "255",
895 "verifyCmd": "$TC actions list action mpls",
896 "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*0.*pipe",
902 "name": "Add mpls mod action with mpls ttl exceeding max (invalid)",
909 "$TC actions flush action mpls",
915 "cmdUnderTest": "$TC actions add action mpls mod ttl 256",
916 "expExitCode": "255",
917 "verifyCmd": "$TC actions list action mpls",
918 "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*256.*pipe",
924 "name": "Add mpls mod action with mpls max bos",
931 "$TC actions flush action mpls",
937 "cmdUnderTest": "$TC actions add action mpls mod bos 1",
939 "verifyCmd": "$TC actions list action mpls",
940 "matchPattern": "action order [0-9]+: mpls.*modify.*bos.*1.*pipe",
943 "$TC actions flush action mpls"
948 "name": "Add mpls mod action with mpls min bos",
955 "$TC actions flush action mpls",
961 "cmdUnderTest": "$TC actions add action mpls mod bos 0",
963 "verifyCmd": "$TC actions list action mpls",
964 "matchPattern": "action order [0-9]+: mpls.*modify.*bos.*0.*pipe",
967 "$TC actions flush action mpls"
972 "name": "Add mpls mod action with mpls bos exceeding max (invalid)",
979 "$TC actions flush action mpls",
985 "cmdUnderTest": "$TC actions add action mpls mod bos 2",
986 "expExitCode": "255",
987 "verifyCmd": "$TC actions list action mpls",
988 "matchPattern": "action order [0-9]+: mpls.*modify.*bos.*2.*pipe",
994 "name": "Add mpls mod action with protocol (invalid)",
1001 "$TC actions flush action mpls",
1007 "cmdUnderTest": "$TC actions add action mpls mod protocol ipv4",
1008 "expExitCode": "255",
1009 "verifyCmd": "$TC actions list action mpls",
1010 "matchPattern": "action order [0-9]+: mpls.*modify.*protocol.*ip.*pipe",
1016 "name": "Replace existing mpls push action with new ID",
1023 "$TC actions flush action mpls",
1028 "$TC actions add action mpls push label 20 pipe index 12"
1030 "cmdUnderTest": "$TC actions replace action mpls push label 30 pipe index 12",
1032 "verifyCmd": "$TC actions get action mpls index 12",
1033 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*30.*pipe.*index 12 ref",
1036 "$TC actions flush action mpls"
1041 "name": "Delete mpls pop action",
1048 "$TC actions flush action mpls",
1053 "$TC actions add action mpls pop protocol ipv4 index 44"
1055 "cmdUnderTest": "$TC actions del action mpls index 44",
1057 "verifyCmd": "$TC actions list action mpls",
1058 "matchPattern": "action order [0-9]+: mpls.*pop.*index 44 ref",
1064 "name": "Flush mpls actions",
1071 "$TC actions flush action mpls",
1076 "$TC actions add action mpls push label 10 index 10",
1077 "$TC actions add action mpls push label 20 index 20",
1078 "$TC actions add action mpls push label 30 index 30",
1079 "$TC actions add action mpls push label 40 index 40"
1081 "cmdUnderTest": "$TC actions flush action mpls",
1083 "verifyCmd": "$TC actions list action mpls",
1084 "matchPattern": "action order [0-9]+: mpls.*push.*",