4 "name": "Add MPLS dec_ttl action with pipe opcode",
10 "requires": "nsPlugin"
14 "$TC actions flush action mpls",
20 "cmdUnderTest": "$TC actions add action mpls dec_ttl pipe index 8",
22 "verifyCmd": "$TC actions list action mpls",
23 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*pipe.*index 8 ref",
26 "$TC actions flush action mpls"
31 "name": "Add mpls dec_ttl action with pass opcode",
37 "requires": "nsPlugin"
41 "$TC actions flush action mpls",
47 "cmdUnderTest": "$TC actions add action mpls dec_ttl pass index 8",
49 "verifyCmd": "$TC actions get action mpls index 8",
50 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*pass.*index 8 ref",
53 "$TC actions flush action mpls"
58 "name": "Add mpls dec_ttl action with drop opcode",
64 "requires": "nsPlugin"
68 "$TC actions flush action mpls",
74 "cmdUnderTest": "$TC actions add action mpls dec_ttl drop index 8",
76 "verifyCmd": "$TC actions get action mpls index 8",
77 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*drop.*index 8 ref",
80 "$TC actions flush action mpls"
85 "name": "Add mpls dec_ttl action with reclassify opcode",
91 "requires": "nsPlugin"
95 "$TC actions flush action mpls",
101 "cmdUnderTest": "$TC actions add action mpls dec_ttl reclassify index 8",
103 "verifyCmd": "$TC actions get action mpls index 8",
104 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*reclassify.*index 8 ref",
107 "$TC actions flush action mpls"
112 "name": "Add mpls dec_ttl action with continue opcode",
118 "requires": "nsPlugin"
122 "$TC actions flush action mpls",
128 "cmdUnderTest": "$TC actions add action mpls dec_ttl continue index 8",
130 "verifyCmd": "$TC actions get action mpls index 8",
131 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*continue.*index 8 ref",
134 "$TC actions flush action mpls"
139 "name": "Add mpls dec_ttl action with jump opcode",
145 "requires": "nsPlugin"
149 "$TC actions flush action mpls",
155 "cmdUnderTest": "$TC actions add action mpls dec_ttl jump 10 index 8",
157 "verifyCmd": "$TC actions list action mpls",
158 "matchPattern": "action order [0-9]+: mpls.*jump 10.*index 8 ref",
161 "$TC actions flush action mpls"
166 "name": "Add mpls dec_ttl action with trap opcode",
172 "requires": "nsPlugin"
176 "$TC actions flush action mpls",
182 "cmdUnderTest": "$TC actions add action mpls dec_ttl trap index 8",
184 "verifyCmd": "$TC actions list action mpls",
185 "matchPattern": "action order [0-9]+: mpls.*dec_ttl trap.*index 8 ref",
188 "$TC actions flush action mpls"
193 "name": "Add mpls dec_ttl action with opcode and cookie",
199 "requires": "nsPlugin"
203 "$TC actions flush action mpls",
209 "cmdUnderTest": "$TC actions add action mpls dec_ttl pipe index 8 cookie aabbccddeeff",
211 "verifyCmd": "$TC actions list action mpls",
212 "matchPattern": "action order [0-9]+: mpls.*dec_ttl pipe.*index 8 ref.*cookie aabbccddeeff",
215 "$TC actions flush action mpls"
220 "name": "Add mpls dec_ttl action with opcode and cookie of max length",
226 "requires": "nsPlugin"
230 "$TC actions flush action mpls",
236 "cmdUnderTest": "$TC actions add action mpls dec_ttl continue index 8 cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
238 "verifyCmd": "$TC actions list action mpls",
239 "matchPattern": "action order [0-9]+: mpls.*dec_ttl continue.*index 8 ref.*cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
242 "$TC actions flush action mpls"
247 "name": "Add mpls dec_ttl action with invalid opcode",
253 "requires": "nsPlugin"
257 "$TC actions flush action mpls",
263 "cmdUnderTest": "$TC actions add action mpls dec_ttl foo index 8",
264 "expExitCode": "255",
265 "verifyCmd": "$TC actions list action mpls",
266 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*foo.*index 8 ref",
272 "name": "Add mpls dec_ttl action with label (invalid)",
278 "requires": "nsPlugin"
282 "$TC actions flush action mpls",
288 "cmdUnderTest": "$TC actions add action mpls dec_ttl label 20",
289 "expExitCode": "255",
290 "verifyCmd": "$TC actions list action mpls",
291 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*label.*20.*pipe",
297 "name": "Add mpls dec_ttl action with tc (invalid)",
303 "requires": "nsPlugin"
307 "$TC actions flush action mpls",
313 "cmdUnderTest": "$TC actions add action mpls dec_ttl tc 3",
314 "expExitCode": "255",
315 "verifyCmd": "$TC actions list action mpls",
316 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*tc.*3.*pipe",
322 "name": "Add mpls dec_ttl action with ttl (invalid)",
328 "requires": "nsPlugin"
332 "$TC actions flush action mpls",
338 "cmdUnderTest": "$TC actions add action mpls dec_ttl ttl 20",
339 "expExitCode": "255",
340 "verifyCmd": "$TC actions list action mpls",
341 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*ttl.*20.*pipe",
347 "name": "Add mpls dec_ttl action with bos (invalid)",
353 "requires": "nsPlugin"
357 "$TC actions flush action mpls",
363 "cmdUnderTest": "$TC actions add action mpls dec_ttl bos 1",
364 "expExitCode": "255",
365 "verifyCmd": "$TC actions list action mpls",
366 "matchPattern": "action order [0-9]+: mpls.*dec_ttl.*bos.*1.*pipe",
372 "name": "Add mpls pop action with ip proto",
378 "requires": "nsPlugin"
382 "$TC actions flush action mpls",
388 "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4",
390 "verifyCmd": "$TC actions list action mpls",
391 "matchPattern": "action order [0-9]+: mpls.*pop.*protocol.*ip.*pipe",
394 "$TC actions flush action mpls"
399 "name": "Add mpls pop action with ip proto and cookie",
405 "requires": "nsPlugin"
409 "$TC actions flush action mpls",
415 "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4 cookie 12345678",
417 "verifyCmd": "$TC actions list action mpls",
418 "matchPattern": "action order [0-9]+: mpls.*pop.*protocol.*ip.*pipe.*ref 1.*cookie 12345678",
421 "$TC actions flush action mpls"
426 "name": "Add mpls pop action with mpls proto",
432 "requires": "nsPlugin"
436 "$TC actions flush action mpls",
442 "cmdUnderTest": "$TC actions add action mpls pop protocol mpls_mc",
444 "verifyCmd": "$TC actions list action mpls",
445 "matchPattern": "action order [0-9]+: mpls.*pop.*protocol.*mpls_mc.*pipe",
448 "$TC actions flush action mpls"
453 "name": "Add mpls pop action with no protocol (invalid)",
459 "requires": "nsPlugin"
463 "$TC actions flush action mpls",
469 "cmdUnderTest": "$TC actions add action mpls pop",
470 "expExitCode": "255",
471 "verifyCmd": "$TC actions list action mpls",
472 "matchPattern": "action order [0-9]+: mpls.*pop.*pipe",
478 "name": "Add mpls pop action with label (invalid)",
484 "requires": "nsPlugin"
488 "$TC actions flush action mpls",
494 "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4 label 20",
495 "expExitCode": "255",
496 "verifyCmd": "$TC actions list action mpls",
497 "matchPattern": "action order [0-9]+: mpls.*pop.*label.*20.*pipe",
503 "name": "Add mpls pop action with tc (invalid)",
509 "requires": "nsPlugin"
513 "$TC actions flush action mpls",
519 "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4 tc 3",
520 "expExitCode": "255",
521 "verifyCmd": "$TC actions list action mpls",
522 "matchPattern": "action order [0-9]+: mpls.*pop.*tc.*3.*pipe",
528 "name": "Add mpls pop action with ttl (invalid)",
534 "requires": "nsPlugin"
538 "$TC actions flush action mpls",
544 "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4 ttl 20",
545 "expExitCode": "255",
546 "verifyCmd": "$TC actions list action mpls",
547 "matchPattern": "action order [0-9]+: mpls.*pop.*ttl.*20.*pipe",
553 "name": "Add mpls pop action with bos (invalid)",
559 "requires": "nsPlugin"
563 "$TC actions flush action mpls",
569 "cmdUnderTest": "$TC actions add action mpls pop protocol ipv4 bos 1",
570 "expExitCode": "255",
571 "verifyCmd": "$TC actions list action mpls",
572 "matchPattern": "action order [0-9]+: mpls.*pop.*bos.*1.*pipe",
578 "name": "Add mpls push action with label",
584 "requires": "nsPlugin"
588 "$TC actions flush action mpls",
594 "cmdUnderTest": "$TC actions add action mpls push label 20",
596 "verifyCmd": "$TC actions list action mpls",
597 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*ttl.*[0-9]+.*pipe",
600 "$TC actions flush action mpls"
605 "name": "Add mpls push action with mpls_mc protocol",
611 "requires": "nsPlugin"
615 "$TC actions flush action mpls",
621 "cmdUnderTest": "$TC actions add action mpls push protocol mpls_mc label 20",
623 "verifyCmd": "$TC actions list action mpls",
624 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_mc.*label.*20.*ttl.*[0-9]+.*pipe",
627 "$TC actions flush action mpls"
632 "name": "Add mpls push action with label, tc and ttl",
638 "requires": "nsPlugin"
642 "$TC actions flush action mpls",
648 "cmdUnderTest": "$TC actions add action mpls push label 20 tc 3 ttl 128",
650 "verifyCmd": "$TC actions list action mpls",
651 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*tc.*3.*ttl.*128.*pipe",
654 "$TC actions flush action mpls"
659 "name": "Add mpls push action with label, tc ttl and cookie of max length",
665 "requires": "nsPlugin"
669 "$TC actions flush action mpls",
675 "cmdUnderTest": "$TC actions add action mpls push label 20 tc 3 ttl 128 cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
677 "verifyCmd": "$TC actions list action mpls",
678 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*tc.*3.*ttl.*128.*pipe.*ref 1.*cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
681 "$TC actions flush action mpls"
686 "name": "Add mpls push action with label and bos",
692 "requires": "nsPlugin"
696 "$TC actions flush action mpls",
702 "cmdUnderTest": "$TC actions add action mpls push label 20 bos 1",
704 "verifyCmd": "$TC actions list action mpls",
705 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*bos.*1.*pipe",
708 "$TC actions flush action mpls"
713 "name": "Add mpls push action with no label (invalid)",
719 "requires": "nsPlugin"
723 "$TC actions flush action mpls",
729 "cmdUnderTest": "$TC actions add action mpls push",
730 "expExitCode": "255",
731 "verifyCmd": "$TC actions list action mpls",
732 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*pipe",
738 "name": "Add mpls push action with ipv4 protocol (invalid)",
744 "requires": "nsPlugin"
748 "$TC actions flush action mpls",
754 "cmdUnderTest": "$TC actions add action mpls push protocol ipv4 label 20",
755 "expExitCode": "255",
756 "verifyCmd": "$TC actions list action mpls",
757 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*ttl.*[0-9]+.*pipe",
763 "name": "Add mpls push action with out of range label (invalid)",
769 "requires": "nsPlugin"
773 "$TC actions flush action mpls",
779 "cmdUnderTest": "$TC actions add action mpls push label 1048576",
780 "expExitCode": "255",
781 "verifyCmd": "$TC actions list action mpls",
782 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*1048576.*pipe",
788 "name": "Add mpls push action with out of range tc (invalid)",
794 "requires": "nsPlugin"
798 "$TC actions flush action mpls",
804 "cmdUnderTest": "$TC actions add action mpls push label 20 tc 8",
805 "expExitCode": "255",
806 "verifyCmd": "$TC actions list action mpls",
807 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*tc.*8.*pipe",
813 "name": "Add mpls push action with ttl of 0 (invalid)",
819 "requires": "nsPlugin"
823 "$TC actions flush action mpls",
829 "cmdUnderTest": "$TC actions add action mpls push label 20 ttl 0",
830 "expExitCode": "255",
831 "verifyCmd": "$TC actions list action mpls",
832 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*20.*ttl.*0.*pipe",
838 "name": "Add mpls mod action with mpls label",
844 "requires": "nsPlugin"
848 "$TC actions flush action mpls",
854 "cmdUnderTest": "$TC actions add action mpls mod label 20",
856 "verifyCmd": "$TC actions list action mpls",
857 "matchPattern": "action order [0-9]+: mpls.*modify.*label.*20.*pipe",
860 "$TC actions flush action mpls"
865 "name": "Add mpls mod action with max mpls label",
871 "requires": "nsPlugin"
875 "$TC actions flush action mpls",
881 "cmdUnderTest": "$TC actions add action mpls mod label 0xfffff",
883 "verifyCmd": "$TC actions list action mpls",
884 "matchPattern": "action order [0-9]+: mpls.*modify.*label.*1048575.*pipe",
887 "$TC actions flush action mpls"
892 "name": "Add mpls mod action with mpls label exceeding max (invalid)",
898 "requires": "nsPlugin"
902 "$TC actions flush action mpls",
908 "cmdUnderTest": "$TC actions add action mpls mod label 0x100000",
909 "expExitCode": "255",
910 "verifyCmd": "$TC actions list action mpls",
911 "matchPattern": "action order [0-9]+: mpls.*modify.*label.*1048576.*pipe",
917 "name": "Add mpls mod action with mpls label of MPLS_LABEL_IMPLNULL (invalid)",
923 "requires": "nsPlugin"
927 "$TC actions flush action mpls",
933 "cmdUnderTest": "$TC actions add action mpls mod label 3",
934 "expExitCode": "255",
935 "verifyCmd": "$TC actions list action mpls",
936 "matchPattern": "action order [0-9]+: mpls.*modify.*label.*3.*pipe",
942 "name": "Add mpls mod action with mpls min tc",
948 "requires": "nsPlugin"
952 "$TC actions flush action mpls",
958 "cmdUnderTest": "$TC actions add action mpls mod tc 0",
960 "verifyCmd": "$TC actions list action mpls",
961 "matchPattern": "action order [0-9]+: mpls.*modify.*tc.*0.*pipe",
964 "$TC actions flush action mpls"
969 "name": "Add mpls mod action with mpls max tc",
975 "requires": "nsPlugin"
979 "$TC actions flush action mpls",
985 "cmdUnderTest": "$TC actions add action mpls mod tc 7",
987 "verifyCmd": "$TC actions list action mpls",
988 "matchPattern": "action order [0-9]+: mpls.*modify.*tc.*7.*pipe",
991 "$TC actions flush action mpls"
996 "name": "Add mpls mod action with mpls tc exceeding max (invalid)",
1002 "requires": "nsPlugin"
1006 "$TC actions flush action mpls",
1012 "cmdUnderTest": "$TC actions add action mpls mod tc 8",
1013 "expExitCode": "255",
1014 "verifyCmd": "$TC actions list action mpls",
1015 "matchPattern": "action order [0-9]+: mpls.*modify.*tc.*4.*pipe",
1021 "name": "Add mpls mod action with mpls ttl",
1027 "requires": "nsPlugin"
1031 "$TC actions flush action mpls",
1037 "cmdUnderTest": "$TC actions add action mpls mod ttl 128",
1039 "verifyCmd": "$TC actions list action mpls",
1040 "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*128.*pipe",
1043 "$TC actions flush action mpls"
1048 "name": "Add mpls mod action with mpls ttl and cookie",
1054 "requires": "nsPlugin"
1058 "$TC actions flush action mpls",
1064 "cmdUnderTest": "$TC actions add action mpls mod ttl 128 cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
1066 "verifyCmd": "$TC actions list action mpls",
1067 "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*128.*pipe.*ref 1.*cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
1070 "$TC actions flush action mpls"
1075 "name": "Add mpls mod action with mpls max ttl",
1081 "requires": "nsPlugin"
1085 "$TC actions flush action mpls",
1091 "cmdUnderTest": "$TC actions add action mpls mod ttl 255",
1093 "verifyCmd": "$TC actions list action mpls",
1094 "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*255.*pipe",
1097 "$TC actions flush action mpls"
1102 "name": "Add mpls mod action with mpls min ttl",
1108 "requires": "nsPlugin"
1112 "$TC actions flush action mpls",
1118 "cmdUnderTest": "$TC actions add action mpls mod ttl 1",
1120 "verifyCmd": "$TC actions list action mpls",
1121 "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*1.*pipe",
1124 "$TC actions flush action mpls"
1129 "name": "Add mpls mod action with mpls ttl of 0 (invalid)",
1135 "requires": "nsPlugin"
1139 "$TC actions flush action mpls",
1145 "cmdUnderTest": "$TC actions add action mpls mod ttl 0",
1146 "expExitCode": "255",
1147 "verifyCmd": "$TC actions list action mpls",
1148 "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*0.*pipe",
1154 "name": "Add mpls mod action with mpls ttl exceeding max (invalid)",
1160 "requires": "nsPlugin"
1164 "$TC actions flush action mpls",
1170 "cmdUnderTest": "$TC actions add action mpls mod ttl 256",
1171 "expExitCode": "255",
1172 "verifyCmd": "$TC actions list action mpls",
1173 "matchPattern": "action order [0-9]+: mpls.*modify.*ttl.*256.*pipe",
1179 "name": "Add mpls mod action with mpls max bos",
1185 "requires": "nsPlugin"
1189 "$TC actions flush action mpls",
1195 "cmdUnderTest": "$TC actions add action mpls mod bos 1",
1197 "verifyCmd": "$TC actions list action mpls",
1198 "matchPattern": "action order [0-9]+: mpls.*modify.*bos.*1.*pipe",
1201 "$TC actions flush action mpls"
1206 "name": "Add mpls mod action with mpls min bos",
1212 "requires": "nsPlugin"
1216 "$TC actions flush action mpls",
1222 "cmdUnderTest": "$TC actions add action mpls mod bos 0",
1224 "verifyCmd": "$TC actions list action mpls",
1225 "matchPattern": "action order [0-9]+: mpls.*modify.*bos.*0.*pipe",
1228 "$TC actions flush action mpls"
1233 "name": "Add mpls mod action with mpls bos exceeding max (invalid)",
1239 "requires": "nsPlugin"
1243 "$TC actions flush action mpls",
1249 "cmdUnderTest": "$TC actions add action mpls mod bos 2",
1250 "expExitCode": "255",
1251 "verifyCmd": "$TC actions list action mpls",
1252 "matchPattern": "action order [0-9]+: mpls.*modify.*bos.*2.*pipe",
1258 "name": "Add mpls mod action with protocol (invalid)",
1264 "requires": "nsPlugin"
1268 "$TC actions flush action mpls",
1274 "cmdUnderTest": "$TC actions add action mpls mod protocol ipv4",
1275 "expExitCode": "255",
1276 "verifyCmd": "$TC actions list action mpls",
1277 "matchPattern": "action order [0-9]+: mpls.*modify.*protocol.*ip.*pipe",
1283 "name": "Replace existing mpls push action with new ID",
1289 "requires": "nsPlugin"
1293 "$TC actions flush action mpls",
1298 "$TC actions add action mpls push label 20 pipe index 12"
1300 "cmdUnderTest": "$TC actions replace action mpls push label 30 pipe index 12",
1302 "verifyCmd": "$TC actions get action mpls index 12",
1303 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*30.*pipe.*index 12 ref",
1306 "$TC actions flush action mpls"
1311 "name": "Replace existing mpls push action with new label, tc, ttl and cookie",
1317 "requires": "nsPlugin"
1321 "$TC actions flush action mpls",
1326 "$TC actions add action mpls push label 20 tc 3 ttl 128 index 1 cookie aa11bb22cc33dd44ee55ff66aa11b1b2"
1328 "cmdUnderTest": "$TC actions replace action mpls push label 30 tc 2 ttl 125 pipe index 1 cookie aa11bb22cc33",
1330 "verifyCmd": "$TC actions get action mpls index 1",
1331 "matchPattern": "action order [0-9]+: mpls.*push.*protocol.*mpls_uc.*label.*30 tc 2 ttl 125 pipe.*index 1.*cookie aa11bb22cc33",
1334 "$TC actions flush action mpls"
1339 "name": "Delete mpls pop action",
1345 "requires": "nsPlugin"
1349 "$TC actions flush action mpls",
1354 "$TC actions add action mpls pop protocol ipv4 index 44"
1356 "cmdUnderTest": "$TC actions del action mpls index 44",
1358 "verifyCmd": "$TC actions list action mpls",
1359 "matchPattern": "action order [0-9]+: mpls.*pop.*index 44 ref",
1365 "name": "Flush mpls actions",
1371 "requires": "nsPlugin"
1375 "$TC actions flush action mpls",
1380 "$TC actions add action mpls push label 10 index 10",
1381 "$TC actions add action mpls push label 20 index 20",
1382 "$TC actions add action mpls push label 30 index 30",
1383 "$TC actions add action mpls push label 40 index 40"
1385 "cmdUnderTest": "$TC actions flush action mpls",
1387 "verifyCmd": "$TC actions list action mpls",
1388 "matchPattern": "action order [0-9]+: mpls.*push.*",