0001 [
0002 {
0003 "id": "2002",
0004 "name": "Add valid connmark action with defaults",
0005 "category": [
0006 "actions",
0007 "connmark"
0008 ],
0009 "setup": [
0010 [
0011 "$TC actions flush action connmark",
0012 0,
0013 1,
0014 255
0015 ]
0016 ],
0017 "cmdUnderTest": "$TC actions add action connmark",
0018 "expExitCode": "0",
0019 "verifyCmd": "$TC actions list action connmark",
0020 "matchPattern": "action order [0-9]+: connmark zone 0 pipe",
0021 "matchCount": "1",
0022 "teardown": [
0023 "$TC actions flush action connmark"
0024 ]
0025 },
0026 {
0027 "id": "56a5",
0028 "name": "Add valid connmark action with control pass",
0029 "category": [
0030 "actions",
0031 "connmark"
0032 ],
0033 "setup": [
0034 [
0035 "$TC actions flush action connmark",
0036 0,
0037 1,
0038 255
0039 ]
0040 ],
0041 "cmdUnderTest": "$TC actions add action connmark pass index 1",
0042 "expExitCode": "0",
0043 "verifyCmd": "$TC actions get action connmark index 1",
0044 "matchPattern": "action order [0-9]+: connmark zone 0 pass.*index 1 ref",
0045 "matchCount": "1",
0046 "teardown": [
0047 "$TC actions flush action connmark"
0048 ]
0049 },
0050 {
0051 "id": "7c66",
0052 "name": "Add valid connmark action with control drop",
0053 "category": [
0054 "actions",
0055 "connmark"
0056 ],
0057 "setup": [
0058 [
0059 "$TC actions flush action connmark",
0060 0,
0061 1,
0062 255
0063 ]
0064 ],
0065 "cmdUnderTest": "$TC actions add action connmark drop index 100",
0066 "expExitCode": "0",
0067 "verifyCmd": "$TC actions get action connmark index 100",
0068 "matchPattern": "action order [0-9]+: connmark zone 0 drop.*index 100 ref",
0069 "matchCount": "1",
0070 "teardown": [
0071 "$TC actions flush action connmark"
0072 ]
0073 },
0074 {
0075 "id": "a913",
0076 "name": "Add valid connmark action with control pipe",
0077 "category": [
0078 "actions",
0079 "connmark"
0080 ],
0081 "setup": [
0082 [
0083 "$TC actions flush action connmark",
0084 0,
0085 1,
0086 255
0087 ]
0088 ],
0089 "cmdUnderTest": "$TC actions add action connmark pipe index 455",
0090 "expExitCode": "0",
0091 "verifyCmd": "$TC actions get action connmark index 455",
0092 "matchPattern": "action order [0-9]+: connmark zone 0 pipe.*index 455 ref",
0093 "matchCount": "1",
0094 "teardown": [
0095 "$TC actions flush action connmark"
0096 ]
0097 },
0098 {
0099 "id": "bdd8",
0100 "name": "Add valid connmark action with control reclassify",
0101 "category": [
0102 "actions",
0103 "connmark"
0104 ],
0105 "setup": [
0106 [
0107 "$TC actions flush action connmark",
0108 0,
0109 1,
0110 255
0111 ]
0112 ],
0113 "cmdUnderTest": "$TC actions add action connmark reclassify index 7",
0114 "expExitCode": "0",
0115 "verifyCmd": "$TC actions list action connmark",
0116 "matchPattern": "action order [0-9]+: connmark zone 0 reclassify.*index 7 ref",
0117 "matchCount": "1",
0118 "teardown": [
0119 "$TC actions flush action connmark"
0120 ]
0121 },
0122 {
0123 "id": "b8be",
0124 "name": "Add valid connmark action with control continue",
0125 "category": [
0126 "actions",
0127 "connmark"
0128 ],
0129 "setup": [
0130 [
0131 "$TC actions flush action connmark",
0132 0,
0133 1,
0134 255
0135 ]
0136 ],
0137 "cmdUnderTest": "$TC actions add action connmark continue index 17",
0138 "expExitCode": "0",
0139 "verifyCmd": "$TC actions list action connmark",
0140 "matchPattern": "action order [0-9]+: connmark zone 0 continue.*index 17 ref",
0141 "matchCount": "1",
0142 "teardown": [
0143 "$TC actions flush action connmark"
0144 ]
0145 },
0146 {
0147 "id": "d8a6",
0148 "name": "Add valid connmark action with control jump",
0149 "category": [
0150 "actions",
0151 "connmark"
0152 ],
0153 "setup": [
0154 [
0155 "$TC actions flush action connmark",
0156 0,
0157 1,
0158 255
0159 ]
0160 ],
0161 "cmdUnderTest": "$TC actions add action connmark jump 10 index 17",
0162 "expExitCode": "0",
0163 "verifyCmd": "$TC actions list action connmark",
0164 "matchPattern": "action order [0-9]+: connmark zone 0 jump 10.*index 17 ref",
0165 "matchCount": "1",
0166 "teardown": [
0167 "$TC actions flush action connmark"
0168 ]
0169 },
0170 {
0171 "id": "aae8",
0172 "name": "Add valid connmark action with zone argument",
0173 "category": [
0174 "actions",
0175 "connmark"
0176 ],
0177 "setup": [
0178 [
0179 "$TC actions flush action connmark",
0180 0,
0181 1,
0182 255
0183 ]
0184 ],
0185 "cmdUnderTest": "$TC actions add action connmark zone 100 pipe index 1",
0186 "expExitCode": "0",
0187 "verifyCmd": "$TC actions get action connmark index 1",
0188 "matchPattern": "action order [0-9]+: connmark zone 100 pipe.*index 1 ref",
0189 "matchCount": "1",
0190 "teardown": [
0191 "$TC actions flush action connmark"
0192 ]
0193 },
0194 {
0195 "id": "2f0b",
0196 "name": "Add valid connmark action with invalid zone argument",
0197 "category": [
0198 "actions",
0199 "connmark"
0200 ],
0201 "setup": [
0202 [
0203 "$TC actions flush action connmark",
0204 0,
0205 1,
0206 255
0207 ]
0208 ],
0209 "cmdUnderTest": "$TC actions add action connmark zone 65536 reclassify index 21",
0210 "expExitCode": "255",
0211 "verifyCmd": "$TC actions get action connmark index 1",
0212 "matchPattern": "action order [0-9]+: connmark zone 65536 reclassify.*index 21 ref",
0213 "matchCount": "0",
0214 "teardown": [
0215 "$TC actions flush action connmark"
0216 ]
0217 },
0218 {
0219 "id": "9305",
0220 "name": "Add connmark action with unsupported argument",
0221 "category": [
0222 "actions",
0223 "connmark"
0224 ],
0225 "setup": [
0226 [
0227 "$TC actions flush action connmark",
0228 0,
0229 1,
0230 255
0231 ]
0232 ],
0233 "cmdUnderTest": "$TC actions add action connmark zone 655 unsupp_arg pass index 2",
0234 "expExitCode": "255",
0235 "verifyCmd": "$TC actions get action connmark index 2",
0236 "matchPattern": "action order [0-9]+: connmark zone 655 unsupp_arg pass.*index 2 ref",
0237 "matchCount": "0",
0238 "teardown": [
0239 "$TC actions flush action connmark"
0240 ]
0241 },
0242 {
0243 "id": "71ca",
0244 "name": "Add valid connmark action and replace it",
0245 "category": [
0246 "actions",
0247 "connmark"
0248 ],
0249 "setup": [
0250 [
0251 "$TC actions flush action connmark",
0252 0,
0253 1,
0254 255
0255 ],
0256 "$TC actions add action connmark zone 777 pass index 555"
0257 ],
0258 "cmdUnderTest": "$TC actions replace action connmark zone 555 reclassify index 555",
0259 "expExitCode": "0",
0260 "verifyCmd": "$TC actions get action connmark index 555",
0261 "matchPattern": "action order [0-9]+: connmark zone 555 reclassify.*index 555 ref",
0262 "matchCount": "1",
0263 "teardown": [
0264 "$TC actions flush action connmark"
0265 ]
0266 },
0267 {
0268 "id": "5f8f",
0269 "name": "Add valid connmark action with cookie",
0270 "category": [
0271 "actions",
0272 "connmark"
0273 ],
0274 "setup": [
0275 [
0276 "$TC actions flush action connmark",
0277 0,
0278 1,
0279 255
0280 ]
0281 ],
0282 "cmdUnderTest": "$TC actions add action connmark zone 555 pipe index 5 cookie aabbccddeeff112233445566778800a1",
0283 "expExitCode": "0",
0284 "verifyCmd": "$TC actions get action connmark index 5",
0285 "matchPattern": "action order [0-9]+: connmark zone 555 pipe.*index 5 ref.*cookie aabbccddeeff112233445566778800a1",
0286 "matchCount": "1",
0287 "teardown": [
0288 "$TC actions flush action connmark"
0289 ]
0290 },
0291 {
0292 "id": "c506",
0293 "name": "Replace connmark with invalid goto chain control",
0294 "category": [
0295 "actions",
0296 "connmark"
0297 ],
0298 "setup": [
0299 [
0300 "$TC actions flush action connmark",
0301 0,
0302 1,
0303 255
0304 ],
0305 "$TC actions add action connmark pass index 90"
0306 ],
0307 "cmdUnderTest": "$TC actions replace action connmark goto chain 42 index 90 cookie c1a0c1a0",
0308 "expExitCode": "255",
0309 "verifyCmd": "$TC actions get action connmark index 90",
0310 "matchPattern": "action order [0-9]+: connmark zone 0 pass.*index 90 ref",
0311 "matchCount": "1",
0312 "teardown": [
0313 "$TC actions flush action connmark"
0314 ]
0315 }
0316 ]