4 "name": "Add simple ct action",
11 "$TC actions flush action ct",
17 "cmdUnderTest": "$TC actions add action ct index 42",
19 "verifyCmd": "$TC actions list action ct",
20 "matchPattern": "action order [0-9]*: ct zone 0 pipe.*index 42 ref",
23 "$TC actions flush action ct"
28 "name": "Add ct clear action",
35 "$TC actions flush action ct",
41 "cmdUnderTest": "$TC actions add action ct clear index 42",
43 "verifyCmd": "$TC actions list action ct",
44 "matchPattern": "action order [0-9]*: ct clear pipe.*index 42 ref",
47 "$TC actions flush action ct"
52 "name": "Try ct with zone",
59 "$TC actions flush action ct",
65 "cmdUnderTest": "$TC actions add action ct zone 404 index 42",
67 "verifyCmd": "$TC actions list action ct",
68 "matchPattern": "action order [0-9]*: ct zone 404 pipe.*index 42 ref",
71 "$TC actions flush action ct"
76 "name": "Try ct with zone, commit",
83 "$TC actions flush action ct",
89 "cmdUnderTest": "$TC actions add action ct zone 404 commit index 42",
91 "verifyCmd": "$TC actions list action ct",
92 "matchPattern": "action order [0-9]*: ct commit zone 404 pipe.*index 42 ref",
95 "$TC actions flush action ct"
100 "name": "Try ct with zone, commit, mark",
107 "$TC actions flush action ct",
113 "cmdUnderTest": "$TC actions add action ct zone 404 commit mark 0x42 index 42",
115 "verifyCmd": "$TC actions list action ct",
116 "matchPattern": "action order [0-9]*: ct commit mark 66 zone 404 pipe.*index 42 ref",
119 "$TC actions flush action ct"
124 "name": "Try ct with zone, commit, mark, nat",
131 "$TC actions flush action ct",
137 "cmdUnderTest": "$TC actions add action ct zone 404 commit mark 0x42 nat src addr 5.5.5.7 index 42",
139 "verifyCmd": "$TC actions list action ct",
140 "matchPattern": "action order [0-9]*: ct commit mark 66 zone 404 nat src addr 5.5.5.7 pipe.*index 42 ref",
143 "$TC actions flush action ct"
148 "name": "Try ct with full nat ipv4 range syntax",
155 "$TC actions flush action ct",
161 "cmdUnderTest": "$TC actions add action ct commit nat src addr 5.5.5.7-5.5.6.0 port 1000-2000 index 44",
163 "verifyCmd": "$TC actions list action ct",
164 "matchPattern": "action order [0-9]*: ct commit zone 0 nat src addr 5.5.5.7-5.5.6.0 port 1000-2000 pipe.*index 44 ref",
167 "$TC actions flush action ct"
172 "name": "Try ct with full nat ipv6 syntax",
179 "$TC actions flush action ct",
185 "cmdUnderTest": "$TC actions add action ct commit nat src addr 2001::1 port 1000-2000 index 44",
187 "verifyCmd": "$TC actions list action ct",
188 "matchPattern": "action order [0-9]*: ct commit zone 0 nat src addr 2001::1 port 1000-2000 pipe.*index 44 ref",
191 "$TC actions flush action ct"
196 "name": "Try ct with full nat ipv6 range syntax",
203 "$TC actions flush action ct",
209 "cmdUnderTest": "$TC actions add action ct commit nat src addr 2001::1-2001::10 port 1000-2000 index 44",
211 "verifyCmd": "$TC actions list action ct",
212 "matchPattern": "action order [0-9]*: ct commit zone 0 nat src addr 2001::1-2001::10 port 1000-2000 pipe.*index 44 ref",
215 "$TC actions flush action ct"
220 "name": "Try ct with full nat ipv6 range syntax + force",
227 "$TC actions flush action ct",
233 "cmdUnderTest": "$TC actions add action ct commit force nat src addr 2001::1-2001::10 port 1000-2000 index 44",
235 "verifyCmd": "$TC actions list action ct",
236 "matchPattern": "action order [0-9]*: ct commit force zone 0 nat src addr 2001::1-2001::10 port 1000-2000 pipe.*index 44 ref",
239 "$TC actions flush action ct"
244 "name": "Try ct with label",
251 "$TC actions flush action ct",
257 "cmdUnderTest": "$TC actions add action ct label 123123 index 44",
259 "verifyCmd": "$TC actions list action ct",
260 "matchPattern": "action order [0-9]*: ct zone 0 label 12312300000000000000000000000000 pipe.*index 44 ref",
263 "$TC actions flush action ct"
268 "name": "Try ct with label with mask",
275 "$TC actions flush action ct",
281 "cmdUnderTest": "$TC actions add action ct label 12312300000000000000000000000001/ffffffff000000000000000000000001 index 44",
283 "verifyCmd": "$TC actions list action ct",
284 "matchPattern": "action order [0-9]*: ct zone 0 label 12312300000000000000000000000001/ffffffff000000000000000000000001 pipe.*index 44 ref",
287 "$TC actions flush action ct"
292 "name": "Try ct with mark + mask",
299 "$TC actions flush action ct",
305 "cmdUnderTest": "$TC actions add action ct mark 0x42/0xf0 index 42",
307 "verifyCmd": "$TC actions list action ct",
308 "matchPattern": "action order [0-9]*: ct mark 66/0xf0 zone 0 pipe.*index 42 ref",
311 "$TC actions flush action ct"