xref: /linux/tools/testing/selftests/tc-testing/tc-tests/actions/tunnel_key.json (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
1180390c4SKeara Leibovitz[
2180390c4SKeara Leibovitz    {
3180390c4SKeara Leibovitz        "id": "2b11",
4180390c4SKeara Leibovitz        "name": "Add tunnel_key set action with mandatory parameters",
5180390c4SKeara Leibovitz        "category": [
6180390c4SKeara Leibovitz            "actions",
7180390c4SKeara Leibovitz            "tunnel_key"
8180390c4SKeara Leibovitz        ],
9*d227cc0bSPedro Tammela        "plugins": {
10*d227cc0bSPedro Tammela           "requires": "nsPlugin"
11*d227cc0bSPedro Tammela        },
12180390c4SKeara Leibovitz        "setup": [
13180390c4SKeara Leibovitz            [
14180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
15180390c4SKeara Leibovitz                0,
16180390c4SKeara Leibovitz                1,
17180390c4SKeara Leibovitz                255
18180390c4SKeara Leibovitz            ]
19180390c4SKeara Leibovitz        ],
20180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 20.20.20.2 id 1",
21180390c4SKeara Leibovitz        "expExitCode": "0",
22180390c4SKeara Leibovitz        "verifyCmd": "$TC actions list action tunnel_key",
23180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 10.10.10.1.*dst_ip 20.20.20.2.*key_id 1",
24180390c4SKeara Leibovitz        "matchCount": "1",
25180390c4SKeara Leibovitz        "teardown": [
26180390c4SKeara Leibovitz            "$TC actions flush action tunnel_key"
27180390c4SKeara Leibovitz        ]
28180390c4SKeara Leibovitz    },
29180390c4SKeara Leibovitz    {
30180390c4SKeara Leibovitz        "id": "dc6b",
31180390c4SKeara Leibovitz        "name": "Add tunnel_key set action with missing mandatory src_ip parameter",
32180390c4SKeara Leibovitz        "category": [
33180390c4SKeara Leibovitz            "actions",
34180390c4SKeara Leibovitz            "tunnel_key"
35180390c4SKeara Leibovitz        ],
36*d227cc0bSPedro Tammela        "plugins": {
37*d227cc0bSPedro Tammela           "requires": "nsPlugin"
38*d227cc0bSPedro Tammela        },
39180390c4SKeara Leibovitz        "setup": [
40180390c4SKeara Leibovitz            [
41180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
42180390c4SKeara Leibovitz                0,
43180390c4SKeara Leibovitz                1,
44180390c4SKeara Leibovitz                255
45180390c4SKeara Leibovitz            ]
46180390c4SKeara Leibovitz        ],
47180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key set dst_ip 20.20.20.2 id 100",
48180390c4SKeara Leibovitz        "expExitCode": "255",
49180390c4SKeara Leibovitz        "verifyCmd": "$TC actions list action tunnel_key",
50180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key set.*dst_ip 20.20.20.2.*key_id 100",
51180390c4SKeara Leibovitz        "matchCount": "0",
52180390c4SKeara Leibovitz        "teardown": [
53180390c4SKeara Leibovitz	    [
54180390c4SKeara Leibovitz		"$TC actions flush action tunnel_key",
55180390c4SKeara Leibovitz		0,
56180390c4SKeara Leibovitz		1,
57180390c4SKeara Leibovitz		255
58180390c4SKeara Leibovitz	    ]
59180390c4SKeara Leibovitz        ]
60180390c4SKeara Leibovitz    },
61180390c4SKeara Leibovitz    {
62180390c4SKeara Leibovitz        "id": "7f25",
63180390c4SKeara Leibovitz        "name": "Add tunnel_key set action with missing mandatory dst_ip parameter",
64180390c4SKeara Leibovitz        "category": [
65180390c4SKeara Leibovitz            "actions",
66180390c4SKeara Leibovitz            "tunnel_key"
67180390c4SKeara Leibovitz        ],
68*d227cc0bSPedro Tammela        "plugins": {
69*d227cc0bSPedro Tammela           "requires": "nsPlugin"
70*d227cc0bSPedro Tammela        },
71180390c4SKeara Leibovitz        "setup": [
72180390c4SKeara Leibovitz            [
73180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
74180390c4SKeara Leibovitz                0,
75180390c4SKeara Leibovitz                1,
76180390c4SKeara Leibovitz                255
77180390c4SKeara Leibovitz            ]
78180390c4SKeara Leibovitz        ],
79180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 10.10.10.1 id 100",
80180390c4SKeara Leibovitz        "expExitCode": "255",
81180390c4SKeara Leibovitz        "verifyCmd": "$TC actions list action tunnel_key",
82180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key set.*src_ip 10.10.10.1.*key_id 100",
83180390c4SKeara Leibovitz        "matchCount": "0",
84180390c4SKeara Leibovitz        "teardown": [
85180390c4SKeara Leibovitz	    [
86180390c4SKeara Leibovitz		"$TC actions flush action tunnel_key",
87180390c4SKeara Leibovitz		0,
88180390c4SKeara Leibovitz		1,
89180390c4SKeara Leibovitz		255
90180390c4SKeara Leibovitz	    ]
91180390c4SKeara Leibovitz        ]
92180390c4SKeara Leibovitz    },
93180390c4SKeara Leibovitz    {
94180390c4SKeara Leibovitz        "id": "a5e0",
95180390c4SKeara Leibovitz        "name": "Add tunnel_key set action with invalid src_ip parameter",
96180390c4SKeara Leibovitz        "category": [
97180390c4SKeara Leibovitz            "actions",
98180390c4SKeara Leibovitz            "tunnel_key"
99180390c4SKeara Leibovitz        ],
100*d227cc0bSPedro Tammela        "plugins": {
101*d227cc0bSPedro Tammela           "requires": "nsPlugin"
102*d227cc0bSPedro Tammela        },
103180390c4SKeara Leibovitz        "setup": [
104180390c4SKeara Leibovitz            [
105180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
106180390c4SKeara Leibovitz                0,
107180390c4SKeara Leibovitz                1,
108180390c4SKeara Leibovitz                255
109180390c4SKeara Leibovitz            ]
110180390c4SKeara Leibovitz        ],
111180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 300.168.100.1 dst_ip 192.168.200.1 id 7 index 1",
112180390c4SKeara Leibovitz        "expExitCode": "1",
113180390c4SKeara Leibovitz        "verifyCmd": "$TC actions get action tunnel_key index 1",
114180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key set.*src_ip 300.168.100.1.*dst_ip 192.168.200.1.*key_id 7.*index 1 ref",
115180390c4SKeara Leibovitz        "matchCount": "0",
116180390c4SKeara Leibovitz        "teardown": [
117180390c4SKeara Leibovitz	    [
118180390c4SKeara Leibovitz		"$TC actions flush action tunnel_key",
119180390c4SKeara Leibovitz		0,
120180390c4SKeara Leibovitz		1,
121180390c4SKeara Leibovitz		255
122180390c4SKeara Leibovitz	    ]
123180390c4SKeara Leibovitz        ]
124180390c4SKeara Leibovitz    },
125180390c4SKeara Leibovitz    {
126180390c4SKeara Leibovitz        "id": "eaa8",
127180390c4SKeara Leibovitz        "name": "Add tunnel_key set action with invalid dst_ip parameter",
128180390c4SKeara Leibovitz        "category": [
129180390c4SKeara Leibovitz            "actions",
130180390c4SKeara Leibovitz            "tunnel_key"
131180390c4SKeara Leibovitz        ],
132*d227cc0bSPedro Tammela        "plugins": {
133*d227cc0bSPedro Tammela           "requires": "nsPlugin"
134*d227cc0bSPedro Tammela        },
135180390c4SKeara Leibovitz        "setup": [
136180390c4SKeara Leibovitz            [
137180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
138180390c4SKeara Leibovitz                0,
139180390c4SKeara Leibovitz                1,
140180390c4SKeara Leibovitz                255
141180390c4SKeara Leibovitz            ]
142180390c4SKeara Leibovitz        ],
143180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 192.168.100.1 dst_ip 192.168.800.1 id 10 index 11",
144180390c4SKeara Leibovitz        "expExitCode": "1",
145180390c4SKeara Leibovitz        "verifyCmd": "$TC actions get action tunnel_key index 11",
146180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key set.*src_ip 192.168.100.1.*dst_ip 192.168.800.1.*key_id 10.*index 11 ref",
147180390c4SKeara Leibovitz        "matchCount": "0",
148180390c4SKeara Leibovitz        "teardown": [
149180390c4SKeara Leibovitz	    [
150180390c4SKeara Leibovitz		"$TC actions flush action tunnel_key",
151180390c4SKeara Leibovitz		0,
152180390c4SKeara Leibovitz		1,
153180390c4SKeara Leibovitz		255
154180390c4SKeara Leibovitz	    ]
155180390c4SKeara Leibovitz        ]
156180390c4SKeara Leibovitz    },
157180390c4SKeara Leibovitz    {
158180390c4SKeara Leibovitz        "id": "3b09",
159180390c4SKeara Leibovitz        "name": "Add tunnel_key set action with invalid id parameter",
160180390c4SKeara Leibovitz        "category": [
161180390c4SKeara Leibovitz            "actions",
162180390c4SKeara Leibovitz            "tunnel_key"
163180390c4SKeara Leibovitz        ],
164*d227cc0bSPedro Tammela        "plugins": {
165*d227cc0bSPedro Tammela           "requires": "nsPlugin"
166*d227cc0bSPedro Tammela        },
167180390c4SKeara Leibovitz        "setup": [
168180390c4SKeara Leibovitz            [
169180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
170180390c4SKeara Leibovitz                0,
171180390c4SKeara Leibovitz                1,
172180390c4SKeara Leibovitz                255
173180390c4SKeara Leibovitz            ]
174180390c4SKeara Leibovitz        ],
175180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 112233445566778899 index 1",
176180390c4SKeara Leibovitz        "expExitCode": "255",
177180390c4SKeara Leibovitz        "verifyCmd": "$TC actions get action tunnel_key index 1",
178180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 112233445566778899.*index 1 ref",
179180390c4SKeara Leibovitz        "matchCount": "0",
180180390c4SKeara Leibovitz        "teardown": [
181180390c4SKeara Leibovitz	    [
182180390c4SKeara Leibovitz		"$TC actions flush action tunnel_key",
183180390c4SKeara Leibovitz		0,
184180390c4SKeara Leibovitz		1,
185180390c4SKeara Leibovitz		255
186180390c4SKeara Leibovitz	    ]
187180390c4SKeara Leibovitz        ]
188180390c4SKeara Leibovitz    },
189180390c4SKeara Leibovitz    {
190180390c4SKeara Leibovitz        "id": "9625",
191180390c4SKeara Leibovitz        "name": "Add tunnel_key set action with invalid dst_port parameter",
192180390c4SKeara Leibovitz        "category": [
193180390c4SKeara Leibovitz            "actions",
194180390c4SKeara Leibovitz            "tunnel_key"
195180390c4SKeara Leibovitz        ],
196*d227cc0bSPedro Tammela        "plugins": {
197*d227cc0bSPedro Tammela           "requires": "nsPlugin"
198*d227cc0bSPedro Tammela        },
199180390c4SKeara Leibovitz        "setup": [
200180390c4SKeara Leibovitz            [
201180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
202180390c4SKeara Leibovitz                0,
203180390c4SKeara Leibovitz                1,
204180390c4SKeara Leibovitz                255
205180390c4SKeara Leibovitz            ]
206180390c4SKeara Leibovitz        ],
207180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 11 dst_port 998877 index 1",
208180390c4SKeara Leibovitz        "expExitCode": "255",
209180390c4SKeara Leibovitz        "verifyCmd": "$TC actions get action tunnel_key index 1",
210180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 11.*dst_port 998877.*index 1 ref",
211180390c4SKeara Leibovitz        "matchCount": "0",
212180390c4SKeara Leibovitz        "teardown": [
213180390c4SKeara Leibovitz	    [
214180390c4SKeara Leibovitz		"$TC actions flush action tunnel_key",
215180390c4SKeara Leibovitz		0,
216180390c4SKeara Leibovitz		1,
217180390c4SKeara Leibovitz		255
218180390c4SKeara Leibovitz	    ]
219180390c4SKeara Leibovitz        ]
220180390c4SKeara Leibovitz    },
221180390c4SKeara Leibovitz    {
222180390c4SKeara Leibovitz        "id": "05af",
223180390c4SKeara Leibovitz        "name": "Add tunnel_key set action with optional dst_port parameter",
224180390c4SKeara Leibovitz        "category": [
225180390c4SKeara Leibovitz            "actions",
226180390c4SKeara Leibovitz            "tunnel_key"
227180390c4SKeara Leibovitz        ],
228*d227cc0bSPedro Tammela        "plugins": {
229*d227cc0bSPedro Tammela           "requires": "nsPlugin"
230*d227cc0bSPedro Tammela        },
231180390c4SKeara Leibovitz        "setup": [
232180390c4SKeara Leibovitz            [
233180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
234180390c4SKeara Leibovitz                0,
235180390c4SKeara Leibovitz                1,
236180390c4SKeara Leibovitz                255
237180390c4SKeara Leibovitz            ]
238180390c4SKeara Leibovitz        ],
239180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 192.168.100.1 dst_ip 192.168.200.1 id 789 dst_port 4000 index 10",
240180390c4SKeara Leibovitz        "expExitCode": "0",
241180390c4SKeara Leibovitz        "verifyCmd": "$TC actions get action tunnel_key index 10",
242180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 192.168.100.1.*dst_ip 192.168.200.1.*key_id 789.*dst_port 4000.*index 10 ref",
243180390c4SKeara Leibovitz        "matchCount": "1",
244180390c4SKeara Leibovitz        "teardown": [
245180390c4SKeara Leibovitz            "$TC actions flush action tunnel_key"
246180390c4SKeara Leibovitz        ]
247180390c4SKeara Leibovitz    },
248180390c4SKeara Leibovitz    {
249180390c4SKeara Leibovitz        "id": "da80",
250180390c4SKeara Leibovitz        "name": "Add tunnel_key set action with index at 32-bit maximum",
251180390c4SKeara Leibovitz        "category": [
252180390c4SKeara Leibovitz            "actions",
253180390c4SKeara Leibovitz            "tunnel_key"
254180390c4SKeara Leibovitz        ],
255*d227cc0bSPedro Tammela        "plugins": {
256*d227cc0bSPedro Tammela           "requires": "nsPlugin"
257*d227cc0bSPedro Tammela        },
258180390c4SKeara Leibovitz        "setup": [
259180390c4SKeara Leibovitz            [
260180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
261180390c4SKeara Leibovitz                0,
262180390c4SKeara Leibovitz                1,
263180390c4SKeara Leibovitz                255
264180390c4SKeara Leibovitz            ]
265180390c4SKeara Leibovitz        ],
266180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 11 index 4294967295",
267180390c4SKeara Leibovitz        "expExitCode": "0",
268180390c4SKeara Leibovitz        "verifyCmd": "$TC actions get action tunnel_key index 4294967295",
269180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*id 11.*index 4294967295 ref",
270180390c4SKeara Leibovitz        "matchCount": "1",
271180390c4SKeara Leibovitz        "teardown": [
272180390c4SKeara Leibovitz            "$TC actions flush action tunnel_key"
273180390c4SKeara Leibovitz        ]
274180390c4SKeara Leibovitz    },
275180390c4SKeara Leibovitz    {
276180390c4SKeara Leibovitz        "id": "d407",
277180390c4SKeara Leibovitz        "name": "Add tunnel_key set action with index exceeding 32-bit maximum",
278180390c4SKeara Leibovitz        "category": [
279180390c4SKeara Leibovitz            "actions",
280180390c4SKeara Leibovitz            "tunnel_key"
281180390c4SKeara Leibovitz        ],
282*d227cc0bSPedro Tammela        "plugins": {
283*d227cc0bSPedro Tammela           "requires": "nsPlugin"
284*d227cc0bSPedro Tammela        },
285180390c4SKeara Leibovitz        "setup": [
286180390c4SKeara Leibovitz            [
287180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
288180390c4SKeara Leibovitz                0,
289180390c4SKeara Leibovitz                1,
290180390c4SKeara Leibovitz                255
291180390c4SKeara Leibovitz            ]
292180390c4SKeara Leibovitz        ],
293180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 11 index 4294967295678",
294180390c4SKeara Leibovitz        "expExitCode": "255",
295180390c4SKeara Leibovitz        "verifyCmd": "$TC actions get action tunnel_key index 4294967295678",
296180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key set.*index 4294967295678 ref",
297180390c4SKeara Leibovitz        "matchCount": "0",
298180390c4SKeara Leibovitz        "teardown": [
299180390c4SKeara Leibovitz            [
300180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
301180390c4SKeara Leibovitz                0,
302180390c4SKeara Leibovitz                1,
303180390c4SKeara Leibovitz                255
304180390c4SKeara Leibovitz            ]
305180390c4SKeara Leibovitz        ]
306180390c4SKeara Leibovitz    },
307180390c4SKeara Leibovitz    {
308180390c4SKeara Leibovitz        "id": "5cba",
309180390c4SKeara Leibovitz        "name": "Add tunnel_key set action with id value at 32-bit maximum",
310180390c4SKeara Leibovitz        "category": [
311180390c4SKeara Leibovitz            "actions",
312180390c4SKeara Leibovitz            "tunnel_key"
313180390c4SKeara Leibovitz        ],
314*d227cc0bSPedro Tammela        "plugins": {
315*d227cc0bSPedro Tammela           "requires": "nsPlugin"
316*d227cc0bSPedro Tammela        },
317180390c4SKeara Leibovitz        "setup": [
318180390c4SKeara Leibovitz            [
319180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
320180390c4SKeara Leibovitz                0,
321180390c4SKeara Leibovitz                1,
322180390c4SKeara Leibovitz                255
323180390c4SKeara Leibovitz            ]
324180390c4SKeara Leibovitz        ],
325180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 4294967295 index 1",
326180390c4SKeara Leibovitz        "expExitCode": "0",
327180390c4SKeara Leibovitz        "verifyCmd": "$TC actions get action tunnel_key index 1",
328180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 4294967295.*index 1",
329180390c4SKeara Leibovitz        "matchCount": "1",
330180390c4SKeara Leibovitz        "teardown": [
331180390c4SKeara Leibovitz            "$TC actions flush action tunnel_key"
332180390c4SKeara Leibovitz        ]
333180390c4SKeara Leibovitz    },
334180390c4SKeara Leibovitz    {
335180390c4SKeara Leibovitz        "id": "e84a",
336180390c4SKeara Leibovitz        "name": "Add tunnel_key set action with id value exceeding 32-bit maximum",
337180390c4SKeara Leibovitz        "category": [
338180390c4SKeara Leibovitz            "actions",
339180390c4SKeara Leibovitz            "tunnel_key"
340180390c4SKeara Leibovitz        ],
341*d227cc0bSPedro Tammela        "plugins": {
342*d227cc0bSPedro Tammela           "requires": "nsPlugin"
343*d227cc0bSPedro Tammela        },
344180390c4SKeara Leibovitz        "setup": [
345180390c4SKeara Leibovitz            [
346180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
347180390c4SKeara Leibovitz                0,
348180390c4SKeara Leibovitz                1,
349180390c4SKeara Leibovitz                255
350180390c4SKeara Leibovitz            ]
351180390c4SKeara Leibovitz        ],
352180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 42949672955 index 1",
353180390c4SKeara Leibovitz        "expExitCode": "255",
354180390c4SKeara Leibovitz        "verifyCmd": "$TC actions get action tunnel_key index 4294967295",
355180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 42949672955.*index 1",
356180390c4SKeara Leibovitz        "matchCount": "0",
357180390c4SKeara Leibovitz        "teardown": [
358180390c4SKeara Leibovitz            [
359180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
360180390c4SKeara Leibovitz                0,
361180390c4SKeara Leibovitz                1,
362180390c4SKeara Leibovitz                255
363180390c4SKeara Leibovitz            ]
364180390c4SKeara Leibovitz	]
365180390c4SKeara Leibovitz    },
366180390c4SKeara Leibovitz    {
367180390c4SKeara Leibovitz        "id": "9c19",
368180390c4SKeara Leibovitz        "name": "Add tunnel_key set action with dst_port value at 16-bit maximum",
369180390c4SKeara Leibovitz        "category": [
370180390c4SKeara Leibovitz            "actions",
371180390c4SKeara Leibovitz            "tunnel_key"
372180390c4SKeara Leibovitz        ],
373*d227cc0bSPedro Tammela        "plugins": {
374*d227cc0bSPedro Tammela           "requires": "nsPlugin"
375*d227cc0bSPedro Tammela        },
376180390c4SKeara Leibovitz        "setup": [
377180390c4SKeara Leibovitz            [
378180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
379180390c4SKeara Leibovitz                0,
380180390c4SKeara Leibovitz                1,
381180390c4SKeara Leibovitz                255
382180390c4SKeara Leibovitz            ]
383180390c4SKeara Leibovitz        ],
384180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 429 dst_port 65535 index 1",
385180390c4SKeara Leibovitz        "expExitCode": "0",
386180390c4SKeara Leibovitz        "verifyCmd": "$TC actions get action tunnel_key index 1",
387180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 429.*dst_port 65535.*index 1",
388180390c4SKeara Leibovitz        "matchCount": "1",
389180390c4SKeara Leibovitz        "teardown": [
390180390c4SKeara Leibovitz            "$TC actions flush action tunnel_key"
391180390c4SKeara Leibovitz        ]
392180390c4SKeara Leibovitz    },
393180390c4SKeara Leibovitz    {
394180390c4SKeara Leibovitz        "id": "3bd9",
395180390c4SKeara Leibovitz        "name": "Add tunnel_key set action with dst_port value exceeding 16-bit maximum",
396180390c4SKeara Leibovitz        "category": [
397180390c4SKeara Leibovitz            "actions",
398180390c4SKeara Leibovitz            "tunnel_key"
399180390c4SKeara Leibovitz        ],
400*d227cc0bSPedro Tammela        "plugins": {
401*d227cc0bSPedro Tammela           "requires": "nsPlugin"
402*d227cc0bSPedro Tammela        },
403180390c4SKeara Leibovitz        "setup": [
404180390c4SKeara Leibovitz            [
405180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
406180390c4SKeara Leibovitz                0,
407180390c4SKeara Leibovitz                1,
408180390c4SKeara Leibovitz                255
409180390c4SKeara Leibovitz            ]
410180390c4SKeara Leibovitz        ],
411180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 429 dst_port 65535789 index 1",
412180390c4SKeara Leibovitz        "expExitCode": "255",
413180390c4SKeara Leibovitz        "verifyCmd": "$TC actions get action tunnel_key index 1",
414180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 429.*dst_port 65535789.*index 1",
415180390c4SKeara Leibovitz        "matchCount": "0",
416180390c4SKeara Leibovitz        "teardown": [
417180390c4SKeara Leibovitz            [
418180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
419180390c4SKeara Leibovitz                0,
420180390c4SKeara Leibovitz                1,
421180390c4SKeara Leibovitz                255
422180390c4SKeara Leibovitz            ]
423180390c4SKeara Leibovitz	]
424180390c4SKeara Leibovitz    },
425180390c4SKeara Leibovitz    {
426180390c4SKeara Leibovitz        "id": "68e2",
427180390c4SKeara Leibovitz        "name": "Add tunnel_key unset action",
428180390c4SKeara Leibovitz        "category": [
429180390c4SKeara Leibovitz            "actions",
430180390c4SKeara Leibovitz            "tunnel_key"
431180390c4SKeara Leibovitz        ],
432*d227cc0bSPedro Tammela        "plugins": {
433*d227cc0bSPedro Tammela           "requires": "nsPlugin"
434*d227cc0bSPedro Tammela        },
435180390c4SKeara Leibovitz        "setup": [
436180390c4SKeara Leibovitz            [
437180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
438180390c4SKeara Leibovitz                0,
439180390c4SKeara Leibovitz                1,
440180390c4SKeara Leibovitz                255
441180390c4SKeara Leibovitz            ]
442180390c4SKeara Leibovitz        ],
443180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key unset index 1",
444180390c4SKeara Leibovitz        "expExitCode": "0",
445180390c4SKeara Leibovitz        "verifyCmd": "$TC actions get action tunnel_key index 1",
446180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key.*unset.*index 1 ref",
447180390c4SKeara Leibovitz        "matchCount": "1",
448180390c4SKeara Leibovitz        "teardown": [
449180390c4SKeara Leibovitz            "$TC actions flush action tunnel_key"
450180390c4SKeara Leibovitz        ]
451180390c4SKeara Leibovitz    },
452180390c4SKeara Leibovitz    {
453180390c4SKeara Leibovitz        "id": "6192",
454180390c4SKeara Leibovitz        "name": "Add tunnel_key unset continue action",
455180390c4SKeara Leibovitz        "category": [
456180390c4SKeara Leibovitz            "actions",
457180390c4SKeara Leibovitz            "tunnel_key"
458180390c4SKeara Leibovitz        ],
459*d227cc0bSPedro Tammela        "plugins": {
460*d227cc0bSPedro Tammela           "requires": "nsPlugin"
461*d227cc0bSPedro Tammela        },
462180390c4SKeara Leibovitz        "setup": [
463180390c4SKeara Leibovitz            [
464180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
465180390c4SKeara Leibovitz                0,
466180390c4SKeara Leibovitz                1,
467180390c4SKeara Leibovitz                255
468180390c4SKeara Leibovitz            ]
469180390c4SKeara Leibovitz        ],
470180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key unset continue index 1",
471180390c4SKeara Leibovitz        "expExitCode": "0",
472180390c4SKeara Leibovitz        "verifyCmd": "$TC actions get action tunnel_key index 1",
473180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key.*unset continue.*index 1 ref",
474180390c4SKeara Leibovitz        "matchCount": "1",
475180390c4SKeara Leibovitz        "teardown": [
476180390c4SKeara Leibovitz            "$TC actions flush action tunnel_key"
477180390c4SKeara Leibovitz        ]
478180390c4SKeara Leibovitz    },
479180390c4SKeara Leibovitz    {
480180390c4SKeara Leibovitz        "id": "061d",
481180390c4SKeara Leibovitz        "name": "Add tunnel_key set continue action with cookie",
482180390c4SKeara Leibovitz        "category": [
483180390c4SKeara Leibovitz            "actions",
484180390c4SKeara Leibovitz            "tunnel_key"
485180390c4SKeara Leibovitz        ],
486*d227cc0bSPedro Tammela        "plugins": {
487*d227cc0bSPedro Tammela           "requires": "nsPlugin"
488*d227cc0bSPedro Tammela        },
489180390c4SKeara Leibovitz        "setup": [
490180390c4SKeara Leibovitz            [
491180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
492180390c4SKeara Leibovitz                0,
493180390c4SKeara Leibovitz                1,
494180390c4SKeara Leibovitz                255
495180390c4SKeara Leibovitz            ]
496180390c4SKeara Leibovitz        ],
497180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 192.168.10.1 dst_ip 192.168.20.2 id 123 continue index 1 cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
498180390c4SKeara Leibovitz        "expExitCode": "0",
499180390c4SKeara Leibovitz        "verifyCmd": "$TC actions get action tunnel_key index 1",
500180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 192.168.10.1.*dst_ip 192.168.20.2.*key_id 123.*csum continue.*index 1.*cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
501180390c4SKeara Leibovitz        "matchCount": "1",
502180390c4SKeara Leibovitz        "teardown": [
503180390c4SKeara Leibovitz            "$TC actions flush action tunnel_key"
504180390c4SKeara Leibovitz        ]
505180390c4SKeara Leibovitz    },
506180390c4SKeara Leibovitz    {
507180390c4SKeara Leibovitz        "id": "8acb",
508180390c4SKeara Leibovitz        "name": "Add tunnel_key set continue action with invalid cookie",
509180390c4SKeara Leibovitz        "category": [
510180390c4SKeara Leibovitz            "actions",
511180390c4SKeara Leibovitz            "tunnel_key"
512180390c4SKeara Leibovitz        ],
513*d227cc0bSPedro Tammela        "plugins": {
514*d227cc0bSPedro Tammela           "requires": "nsPlugin"
515*d227cc0bSPedro Tammela        },
516180390c4SKeara Leibovitz        "setup": [
517180390c4SKeara Leibovitz            [
518180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
519180390c4SKeara Leibovitz                0,
520180390c4SKeara Leibovitz                1,
521180390c4SKeara Leibovitz                255
522180390c4SKeara Leibovitz            ]
523180390c4SKeara Leibovitz        ],
524180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 192.168.10.1 dst_ip 192.168.20.2 id 123 continue index 1 cookie aa11bb22cc33dd44ee55ff66aa11b1b2777888",
525180390c4SKeara Leibovitz        "expExitCode": "255",
526180390c4SKeara Leibovitz        "verifyCmd": "$TC actions get action tunnel_key index 1",
527180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 192.168.10.1.*dst_ip 192.168.20.2.*key_id 123.*csum continue.*index 1.*cookie aa11bb22cc33dd44ee55ff66aa11b1b2777888",
528180390c4SKeara Leibovitz        "matchCount": "0",
529180390c4SKeara Leibovitz        "teardown": [
530180390c4SKeara Leibovitz            [
531180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
532180390c4SKeara Leibovitz                0,
533180390c4SKeara Leibovitz                1,
534180390c4SKeara Leibovitz                255
535180390c4SKeara Leibovitz            ]
536180390c4SKeara Leibovitz	]
537180390c4SKeara Leibovitz    },
538180390c4SKeara Leibovitz    {
539180390c4SKeara Leibovitz        "id": "a07e",
540180390c4SKeara Leibovitz        "name": "Add tunnel_key action with no set/unset command specified",
541180390c4SKeara Leibovitz        "category": [
542180390c4SKeara Leibovitz            "actions",
543180390c4SKeara Leibovitz            "tunnel_key"
544180390c4SKeara Leibovitz        ],
545*d227cc0bSPedro Tammela        "plugins": {
546*d227cc0bSPedro Tammela           "requires": "nsPlugin"
547*d227cc0bSPedro Tammela        },
548180390c4SKeara Leibovitz        "setup": [
549180390c4SKeara Leibovitz            [
550180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
551180390c4SKeara Leibovitz                0,
552180390c4SKeara Leibovitz                1,
553180390c4SKeara Leibovitz                255
554180390c4SKeara Leibovitz            ]
555180390c4SKeara Leibovitz        ],
556180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key src_ip 10.10.10.1 dst_ip 20.20.20.2 id 1",
557180390c4SKeara Leibovitz        "expExitCode": "255",
558180390c4SKeara Leibovitz        "verifyCmd": "$TC actions get action tunnel_key index 1",
559180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key.*src_ip 10.10.10.1.*dst_ip 20.20.20.2.*key_id 1",
560180390c4SKeara Leibovitz        "matchCount": "0",
561180390c4SKeara Leibovitz        "teardown": [
562180390c4SKeara Leibovitz            [
563180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
564180390c4SKeara Leibovitz                0,
565180390c4SKeara Leibovitz                1,
566180390c4SKeara Leibovitz                255
567180390c4SKeara Leibovitz            ]
568180390c4SKeara Leibovitz        ]
569180390c4SKeara Leibovitz    },
570180390c4SKeara Leibovitz    {
571180390c4SKeara Leibovitz        "id": "b227",
572180390c4SKeara Leibovitz        "name": "Add tunnel_key action with csum option",
573180390c4SKeara Leibovitz        "category": [
574180390c4SKeara Leibovitz            "actions",
575180390c4SKeara Leibovitz            "tunnel_key"
576180390c4SKeara Leibovitz        ],
577*d227cc0bSPedro Tammela        "plugins": {
578*d227cc0bSPedro Tammela           "requires": "nsPlugin"
579*d227cc0bSPedro Tammela        },
580180390c4SKeara Leibovitz        "setup": [
581180390c4SKeara Leibovitz            [
582180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
583180390c4SKeara Leibovitz                0,
584180390c4SKeara Leibovitz                1,
585180390c4SKeara Leibovitz                255
586180390c4SKeara Leibovitz            ]
587180390c4SKeara Leibovitz        ],
588180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 20.20.20.2 id 1 csum index 99",
589180390c4SKeara Leibovitz        "expExitCode": "0",
590180390c4SKeara Leibovitz        "verifyCmd": "$TC actions get action tunnel_key index 99",
591180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key.*src_ip 10.10.10.1.*dst_ip 20.20.20.2.*key_id 1.*csum pipe.*index 99",
592180390c4SKeara Leibovitz        "matchCount": "1",
593180390c4SKeara Leibovitz        "teardown": [
594180390c4SKeara Leibovitz            "$TC actions flush action tunnel_key"
595180390c4SKeara Leibovitz        ]
596180390c4SKeara Leibovitz    },
597180390c4SKeara Leibovitz    {
598180390c4SKeara Leibovitz        "id": "58a7",
599180390c4SKeara Leibovitz        "name": "Add tunnel_key action with nocsum option",
600180390c4SKeara Leibovitz        "category": [
601180390c4SKeara Leibovitz            "actions",
602180390c4SKeara Leibovitz            "tunnel_key"
603180390c4SKeara Leibovitz        ],
604*d227cc0bSPedro Tammela        "plugins": {
605*d227cc0bSPedro Tammela           "requires": "nsPlugin"
606*d227cc0bSPedro Tammela        },
607180390c4SKeara Leibovitz        "setup": [
608180390c4SKeara Leibovitz            [
609180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
610180390c4SKeara Leibovitz                0,
611180390c4SKeara Leibovitz                1,
612180390c4SKeara Leibovitz                255
613180390c4SKeara Leibovitz            ]
614180390c4SKeara Leibovitz        ],
615180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 10.10.10.2 id 7823 nocsum index 234",
616180390c4SKeara Leibovitz        "expExitCode": "0",
617180390c4SKeara Leibovitz        "verifyCmd": "$TC actions get action tunnel_key index 234",
618180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key.*src_ip 10.10.10.1.*dst_ip 10.10.10.2.*key_id 7823.*nocsum pipe.*index 234",
619180390c4SKeara Leibovitz        "matchCount": "1",
620180390c4SKeara Leibovitz        "teardown": [
621180390c4SKeara Leibovitz            "$TC actions flush action tunnel_key"
622180390c4SKeara Leibovitz        ]
623180390c4SKeara Leibovitz    },
624180390c4SKeara Leibovitz    {
625180390c4SKeara Leibovitz        "id": "2575",
626180390c4SKeara Leibovitz        "name": "Add tunnel_key action with not-supported parameter",
627180390c4SKeara Leibovitz        "category": [
628180390c4SKeara Leibovitz            "actions",
629180390c4SKeara Leibovitz            "tunnel_key"
630180390c4SKeara Leibovitz        ],
631*d227cc0bSPedro Tammela        "plugins": {
632*d227cc0bSPedro Tammela           "requires": "nsPlugin"
633*d227cc0bSPedro Tammela        },
634180390c4SKeara Leibovitz        "setup": [
635180390c4SKeara Leibovitz            [
636180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
637180390c4SKeara Leibovitz                0,
638180390c4SKeara Leibovitz                1,
639180390c4SKeara Leibovitz                255
640180390c4SKeara Leibovitz            ]
641180390c4SKeara Leibovitz        ],
642180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 10.10.10.2 id 7 foobar 999 index 4",
643180390c4SKeara Leibovitz        "expExitCode": "255",
644180390c4SKeara Leibovitz        "verifyCmd": "$TC actions get action tunnel_key index 4",
645180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key.*src_ip 10.10.10.1.*dst_ip 10.10.10.2.*key_id 7.*foobar 999.*index 4",
646180390c4SKeara Leibovitz        "matchCount": "0",
647180390c4SKeara Leibovitz        "teardown": [
648180390c4SKeara Leibovitz            [
649180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
650180390c4SKeara Leibovitz                0,
651180390c4SKeara Leibovitz                1,
652180390c4SKeara Leibovitz                255
653180390c4SKeara Leibovitz            ]
654180390c4SKeara Leibovitz        ]
655180390c4SKeara Leibovitz    },
656180390c4SKeara Leibovitz    {
657180390c4SKeara Leibovitz        "id": "7a88",
658180390c4SKeara Leibovitz        "name": "Add tunnel_key action with cookie parameter",
659180390c4SKeara Leibovitz        "category": [
660180390c4SKeara Leibovitz            "actions",
661180390c4SKeara Leibovitz            "tunnel_key"
662180390c4SKeara Leibovitz        ],
663*d227cc0bSPedro Tammela        "plugins": {
664*d227cc0bSPedro Tammela           "requires": "nsPlugin"
665*d227cc0bSPedro Tammela        },
666180390c4SKeara Leibovitz        "setup": [
667180390c4SKeara Leibovitz            [
668180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
669180390c4SKeara Leibovitz                0,
670180390c4SKeara Leibovitz                1,
671180390c4SKeara Leibovitz                255
672180390c4SKeara Leibovitz            ]
673180390c4SKeara Leibovitz        ],
674180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 10.10.10.2 id 7 index 4 cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
675180390c4SKeara Leibovitz        "expExitCode": "0",
676180390c4SKeara Leibovitz        "verifyCmd": "$TC actions get action tunnel_key index 4",
6775216bd77SDavide Caratti        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 10.10.10.1.*dst_ip 10.10.10.2.*key_id 7.*csum pipe.*index 4 ref.*cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
678180390c4SKeara Leibovitz        "matchCount": "1",
679180390c4SKeara Leibovitz        "teardown": [
680180390c4SKeara Leibovitz            "$TC actions flush action tunnel_key"
681180390c4SKeara Leibovitz        ]
682180390c4SKeara Leibovitz    },
683180390c4SKeara Leibovitz    {
684cba54f9cSPieter Jansen van Vuuren        "id": "4f20",
685cba54f9cSPieter Jansen van Vuuren        "name": "Add tunnel_key action with a single geneve option parameter",
686cba54f9cSPieter Jansen van Vuuren        "category": [
687cba54f9cSPieter Jansen van Vuuren            "actions",
688cba54f9cSPieter Jansen van Vuuren            "tunnel_key"
689cba54f9cSPieter Jansen van Vuuren        ],
690*d227cc0bSPedro Tammela        "plugins": {
691*d227cc0bSPedro Tammela           "requires": "nsPlugin"
692*d227cc0bSPedro Tammela        },
693cba54f9cSPieter Jansen van Vuuren        "setup": [
694cba54f9cSPieter Jansen van Vuuren            [
695cba54f9cSPieter Jansen van Vuuren                "$TC actions flush action tunnel_key",
696cba54f9cSPieter Jansen van Vuuren                0,
697cba54f9cSPieter Jansen van Vuuren                1,
698cba54f9cSPieter Jansen van Vuuren                255
699cba54f9cSPieter Jansen van Vuuren            ]
700cba54f9cSPieter Jansen van Vuuren        ],
701cba54f9cSPieter Jansen van Vuuren        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 42 dst_port 6081 geneve_opts 0102:80:00880022 index 1",
702cba54f9cSPieter Jansen van Vuuren        "expExitCode": "0",
703cba54f9cSPieter Jansen van Vuuren        "verifyCmd": "$TC actions get action tunnel_key index 1",
70454eeea0dSHangbin Liu        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 42.*dst_port 6081.*geneve_opt[s]? 0102:80:00880022.*index 1",
705cba54f9cSPieter Jansen van Vuuren        "matchCount": "1",
706cba54f9cSPieter Jansen van Vuuren        "teardown": [
707cba54f9cSPieter Jansen van Vuuren            "$TC actions flush action tunnel_key"
708cba54f9cSPieter Jansen van Vuuren        ]
709cba54f9cSPieter Jansen van Vuuren    },
710cba54f9cSPieter Jansen van Vuuren    {
711cba54f9cSPieter Jansen van Vuuren        "id": "e33d",
712cba54f9cSPieter Jansen van Vuuren        "name": "Add tunnel_key action with multiple geneve options parameter",
713cba54f9cSPieter Jansen van Vuuren        "category": [
714cba54f9cSPieter Jansen van Vuuren            "actions",
715cba54f9cSPieter Jansen van Vuuren            "tunnel_key"
716cba54f9cSPieter Jansen van Vuuren        ],
717*d227cc0bSPedro Tammela        "plugins": {
718*d227cc0bSPedro Tammela           "requires": "nsPlugin"
719*d227cc0bSPedro Tammela        },
720cba54f9cSPieter Jansen van Vuuren        "setup": [
721cba54f9cSPieter Jansen van Vuuren            [
722cba54f9cSPieter Jansen van Vuuren                "$TC actions flush action tunnel_key",
723cba54f9cSPieter Jansen van Vuuren                0,
724cba54f9cSPieter Jansen van Vuuren                1,
725cba54f9cSPieter Jansen van Vuuren                255
726cba54f9cSPieter Jansen van Vuuren            ]
727cba54f9cSPieter Jansen van Vuuren        ],
728cba54f9cSPieter Jansen van Vuuren        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 42 dst_port 6081 geneve_opts 0102:80:00880022,0408:42:0040007611223344,0111:02:1020304011223344 index 1",
729cba54f9cSPieter Jansen van Vuuren        "expExitCode": "0",
730cba54f9cSPieter Jansen van Vuuren        "verifyCmd": "$TC actions get action tunnel_key index 1",
73154eeea0dSHangbin Liu        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 42.*dst_port 6081.*geneve_opt[s]? 0102:80:00880022,0408:42:0040007611223344,0111:02:1020304011223344.*index 1",
732cba54f9cSPieter Jansen van Vuuren        "matchCount": "1",
733cba54f9cSPieter Jansen van Vuuren        "teardown": [
734cba54f9cSPieter Jansen van Vuuren            "$TC actions flush action tunnel_key"
735cba54f9cSPieter Jansen van Vuuren        ]
736cba54f9cSPieter Jansen van Vuuren    },
737cba54f9cSPieter Jansen van Vuuren    {
738cba54f9cSPieter Jansen van Vuuren        "id": "0778",
739cba54f9cSPieter Jansen van Vuuren        "name": "Add tunnel_key action with invalid class geneve option parameter",
740cba54f9cSPieter Jansen van Vuuren        "category": [
741cba54f9cSPieter Jansen van Vuuren            "actions",
742cba54f9cSPieter Jansen van Vuuren            "tunnel_key"
743cba54f9cSPieter Jansen van Vuuren        ],
744*d227cc0bSPedro Tammela        "plugins": {
745*d227cc0bSPedro Tammela           "requires": "nsPlugin"
746*d227cc0bSPedro Tammela        },
747cba54f9cSPieter Jansen van Vuuren        "setup": [
748cba54f9cSPieter Jansen van Vuuren            [
749cba54f9cSPieter Jansen van Vuuren                "$TC actions flush action tunnel_key",
750cba54f9cSPieter Jansen van Vuuren                0,
751cba54f9cSPieter Jansen van Vuuren                1,
752cba54f9cSPieter Jansen van Vuuren                255
753cba54f9cSPieter Jansen van Vuuren            ]
754cba54f9cSPieter Jansen van Vuuren        ],
755cba54f9cSPieter Jansen van Vuuren        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 42 dst_port 6081 geneve_opts 824212:80:00880022 index 1",
756cba54f9cSPieter Jansen van Vuuren        "expExitCode": "255",
757cba54f9cSPieter Jansen van Vuuren        "verifyCmd": "$TC actions get action tunnel_key index 1",
75854eeea0dSHangbin Liu        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 42.*dst_port 6081.*geneve_opt[s]? 824212:80:00880022.*index 1",
759cba54f9cSPieter Jansen van Vuuren        "matchCount": "0",
760cba54f9cSPieter Jansen van Vuuren        "teardown": [
761cba54f9cSPieter Jansen van Vuuren            "$TC actions flush action tunnel_key"
762cba54f9cSPieter Jansen van Vuuren        ]
763cba54f9cSPieter Jansen van Vuuren    },
764cba54f9cSPieter Jansen van Vuuren    {
765cba54f9cSPieter Jansen van Vuuren        "id": "4ae8",
766cba54f9cSPieter Jansen van Vuuren        "name": "Add tunnel_key action with invalid type geneve option parameter",
767cba54f9cSPieter Jansen van Vuuren        "category": [
768cba54f9cSPieter Jansen van Vuuren            "actions",
769cba54f9cSPieter Jansen van Vuuren            "tunnel_key"
770cba54f9cSPieter Jansen van Vuuren        ],
771*d227cc0bSPedro Tammela        "plugins": {
772*d227cc0bSPedro Tammela           "requires": "nsPlugin"
773*d227cc0bSPedro Tammela        },
774cba54f9cSPieter Jansen van Vuuren        "setup": [
775cba54f9cSPieter Jansen van Vuuren            [
776cba54f9cSPieter Jansen van Vuuren                "$TC actions flush action tunnel_key",
777cba54f9cSPieter Jansen van Vuuren                0,
778cba54f9cSPieter Jansen van Vuuren                1,
779cba54f9cSPieter Jansen van Vuuren                255
780cba54f9cSPieter Jansen van Vuuren            ]
781cba54f9cSPieter Jansen van Vuuren        ],
782cba54f9cSPieter Jansen van Vuuren        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 42 dst_port 6081 geneve_opts 0102:4224:00880022 index 1",
783cba54f9cSPieter Jansen van Vuuren        "expExitCode": "255",
784cba54f9cSPieter Jansen van Vuuren        "verifyCmd": "$TC actions get action tunnel_key index 1",
78554eeea0dSHangbin Liu        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 42.*dst_port 6081.*geneve_opt[s]? 0102:4224:00880022.*index 1",
786cba54f9cSPieter Jansen van Vuuren        "matchCount": "0",
787cba54f9cSPieter Jansen van Vuuren        "teardown": [
788cba54f9cSPieter Jansen van Vuuren            "$TC actions flush action tunnel_key"
789cba54f9cSPieter Jansen van Vuuren        ]
790cba54f9cSPieter Jansen van Vuuren    },
791cba54f9cSPieter Jansen van Vuuren    {
792cba54f9cSPieter Jansen van Vuuren        "id": "4039",
793cba54f9cSPieter Jansen van Vuuren        "name": "Add tunnel_key action with short data length geneve option parameter",
794cba54f9cSPieter Jansen van Vuuren        "category": [
795cba54f9cSPieter Jansen van Vuuren            "actions",
796cba54f9cSPieter Jansen van Vuuren            "tunnel_key"
797cba54f9cSPieter Jansen van Vuuren        ],
798*d227cc0bSPedro Tammela        "plugins": {
799*d227cc0bSPedro Tammela           "requires": "nsPlugin"
800*d227cc0bSPedro Tammela        },
801cba54f9cSPieter Jansen van Vuuren        "setup": [
802cba54f9cSPieter Jansen van Vuuren            [
803cba54f9cSPieter Jansen van Vuuren                "$TC actions flush action tunnel_key",
804cba54f9cSPieter Jansen van Vuuren                0,
805cba54f9cSPieter Jansen van Vuuren                1,
806cba54f9cSPieter Jansen van Vuuren                255
807cba54f9cSPieter Jansen van Vuuren            ]
808cba54f9cSPieter Jansen van Vuuren        ],
809cba54f9cSPieter Jansen van Vuuren        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 42 dst_port 6081 geneve_opts 0102:80:4288 index 1",
810cba54f9cSPieter Jansen van Vuuren        "expExitCode": "255",
811cba54f9cSPieter Jansen van Vuuren        "verifyCmd": "$TC actions get action tunnel_key index 1",
81254eeea0dSHangbin Liu        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 42.*dst_port 6081.*geneve_opt[s]? 0102:80:4288.*index 1",
813cba54f9cSPieter Jansen van Vuuren        "matchCount": "0",
814cba54f9cSPieter Jansen van Vuuren        "teardown": [
815cba54f9cSPieter Jansen van Vuuren            "$TC actions flush action tunnel_key"
816cba54f9cSPieter Jansen van Vuuren        ]
817cba54f9cSPieter Jansen van Vuuren    },
818cba54f9cSPieter Jansen van Vuuren    {
819cba54f9cSPieter Jansen van Vuuren        "id": "26a6",
820cba54f9cSPieter Jansen van Vuuren        "name": "Add tunnel_key action with non-multiple of 4 data length geneve option parameter",
821cba54f9cSPieter Jansen van Vuuren        "category": [
822cba54f9cSPieter Jansen van Vuuren            "actions",
823cba54f9cSPieter Jansen van Vuuren            "tunnel_key"
824cba54f9cSPieter Jansen van Vuuren        ],
825*d227cc0bSPedro Tammela        "plugins": {
826*d227cc0bSPedro Tammela           "requires": "nsPlugin"
827*d227cc0bSPedro Tammela        },
828cba54f9cSPieter Jansen van Vuuren        "setup": [
829cba54f9cSPieter Jansen van Vuuren            [
830cba54f9cSPieter Jansen van Vuuren                "$TC actions flush action tunnel_key",
831cba54f9cSPieter Jansen van Vuuren                0,
832cba54f9cSPieter Jansen van Vuuren                1,
833cba54f9cSPieter Jansen van Vuuren                255
834cba54f9cSPieter Jansen van Vuuren            ]
835cba54f9cSPieter Jansen van Vuuren        ],
836cba54f9cSPieter Jansen van Vuuren        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 42 dst_port 6081 geneve_opts 0102:80:4288428822 index 1",
837cba54f9cSPieter Jansen van Vuuren        "expExitCode": "255",
838cba54f9cSPieter Jansen van Vuuren        "verifyCmd": "$TC actions get action tunnel_key index 1",
83954eeea0dSHangbin Liu        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 42.*dst_port 6081.*geneve_opt[s]? 0102:80:4288428822.*index 1",
840cba54f9cSPieter Jansen van Vuuren        "matchCount": "0",
841cba54f9cSPieter Jansen van Vuuren        "teardown": [
842cba54f9cSPieter Jansen van Vuuren            "$TC actions flush action tunnel_key"
843cba54f9cSPieter Jansen van Vuuren        ]
844cba54f9cSPieter Jansen van Vuuren    },
845cba54f9cSPieter Jansen van Vuuren    {
846cba54f9cSPieter Jansen van Vuuren        "id": "f44d",
847cba54f9cSPieter Jansen van Vuuren        "name": "Add tunnel_key action with incomplete geneve options parameter",
848cba54f9cSPieter Jansen van Vuuren        "category": [
849cba54f9cSPieter Jansen van Vuuren            "actions",
850cba54f9cSPieter Jansen van Vuuren            "tunnel_key"
851cba54f9cSPieter Jansen van Vuuren        ],
852*d227cc0bSPedro Tammela        "plugins": {
853*d227cc0bSPedro Tammela           "requires": "nsPlugin"
854*d227cc0bSPedro Tammela        },
855cba54f9cSPieter Jansen van Vuuren        "setup": [
856cba54f9cSPieter Jansen van Vuuren            [
857cba54f9cSPieter Jansen van Vuuren                "$TC actions flush action tunnel_key",
858cba54f9cSPieter Jansen van Vuuren                0,
859cba54f9cSPieter Jansen van Vuuren                1,
860cba54f9cSPieter Jansen van Vuuren                255
861cba54f9cSPieter Jansen van Vuuren            ]
862cba54f9cSPieter Jansen van Vuuren        ],
863cba54f9cSPieter Jansen van Vuuren        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 42 dst_port 6081 geneve_opts 0102:80:00880022,0408:42: index 1",
864cba54f9cSPieter Jansen van Vuuren        "expExitCode": "255",
865cba54f9cSPieter Jansen van Vuuren        "verifyCmd": "$TC actions get action tunnel_key index 1",
86654eeea0dSHangbin Liu        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 42.*dst_port 6081.*geneve_opt[s]? 0102:80:00880022,0408:42:.*index 1",
867cba54f9cSPieter Jansen van Vuuren        "matchCount": "0",
868cba54f9cSPieter Jansen van Vuuren        "teardown": [
869cba54f9cSPieter Jansen van Vuuren            "$TC actions flush action tunnel_key"
870cba54f9cSPieter Jansen van Vuuren        ]
871cba54f9cSPieter Jansen van Vuuren    },
872cba54f9cSPieter Jansen van Vuuren    {
873180390c4SKeara Leibovitz        "id": "7afc",
874180390c4SKeara Leibovitz        "name": "Replace tunnel_key set action with all parameters",
875180390c4SKeara Leibovitz        "category": [
876180390c4SKeara Leibovitz            "actions",
877180390c4SKeara Leibovitz            "tunnel_key"
878180390c4SKeara Leibovitz        ],
879*d227cc0bSPedro Tammela        "plugins": {
880*d227cc0bSPedro Tammela           "requires": "nsPlugin"
881*d227cc0bSPedro Tammela        },
882180390c4SKeara Leibovitz        "setup": [
883180390c4SKeara Leibovitz            [
884180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
885180390c4SKeara Leibovitz                0,
886180390c4SKeara Leibovitz                1,
887180390c4SKeara Leibovitz                255
888180390c4SKeara Leibovitz            ],
889180390c4SKeara Leibovitz            "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 20.20.20.2 dst_port 3128 csum id 1 index 1"
890180390c4SKeara Leibovitz        ],
891180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions replace action tunnel_key set src_ip 11.11.11.1 dst_ip 21.21.21.2 dst_port 3129 nocsum id 11 index 1",
892180390c4SKeara Leibovitz        "expExitCode": "0",
893180390c4SKeara Leibovitz        "verifyCmd": "$TC actions get action tunnel_key index 1",
894180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 11.11.11.1.*dst_ip 21.21.21.2.*key_id 11.*dst_port 3129.*nocsum pipe.*index 1",
895180390c4SKeara Leibovitz        "matchCount": "1",
896180390c4SKeara Leibovitz        "teardown": [
897180390c4SKeara Leibovitz            "$TC actions flush action tunnel_key"
898180390c4SKeara Leibovitz        ]
899180390c4SKeara Leibovitz    },
900180390c4SKeara Leibovitz    {
901180390c4SKeara Leibovitz        "id": "364d",
902180390c4SKeara Leibovitz        "name": "Replace tunnel_key set action with all parameters and cookie",
903180390c4SKeara Leibovitz        "category": [
904180390c4SKeara Leibovitz            "actions",
905180390c4SKeara Leibovitz            "tunnel_key"
906180390c4SKeara Leibovitz        ],
907*d227cc0bSPedro Tammela        "plugins": {
908*d227cc0bSPedro Tammela           "requires": "nsPlugin"
909*d227cc0bSPedro Tammela        },
910180390c4SKeara Leibovitz        "setup": [
911180390c4SKeara Leibovitz            [
912180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
913180390c4SKeara Leibovitz                0,
914180390c4SKeara Leibovitz                1,
915180390c4SKeara Leibovitz                255
916180390c4SKeara Leibovitz            ],
917b6186d41SBriana Oursler            "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 20.20.20.2 dst_port 3128 nocsum id 1 index 1 cookie 123456"
918180390c4SKeara Leibovitz        ],
919b6186d41SBriana Oursler        "cmdUnderTest": "$TC actions replace action tunnel_key set src_ip 11.11.11.1 dst_ip 21.21.21.2 dst_port 3129 id 11 csum reclassify index 1 cookie 123456",
920180390c4SKeara Leibovitz        "expExitCode": "0",
921180390c4SKeara Leibovitz        "verifyCmd": "$TC actions get action tunnel_key index 1",
922b6186d41SBriana Oursler        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 11.11.11.1.*dst_ip 21.21.21.2.*key_id 11.*dst_port 3129.*csum reclassify.*index 1.*cookie 123456",
923180390c4SKeara Leibovitz        "matchCount": "1",
924180390c4SKeara Leibovitz        "teardown": [
925180390c4SKeara Leibovitz            "$TC actions flush action tunnel_key"
926180390c4SKeara Leibovitz        ]
927180390c4SKeara Leibovitz    },
928180390c4SKeara Leibovitz    {
929180390c4SKeara Leibovitz        "id": "937c",
930180390c4SKeara Leibovitz        "name": "Fetch all existing tunnel_key actions",
931180390c4SKeara Leibovitz        "category": [
932180390c4SKeara Leibovitz            "actions",
933180390c4SKeara Leibovitz            "tunnel_key"
934180390c4SKeara Leibovitz        ],
935*d227cc0bSPedro Tammela        "plugins": {
936*d227cc0bSPedro Tammela           "requires": "nsPlugin"
937*d227cc0bSPedro Tammela        },
938180390c4SKeara Leibovitz        "setup": [
939180390c4SKeara Leibovitz            [
940180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
941180390c4SKeara Leibovitz                0,
942180390c4SKeara Leibovitz                1,
943180390c4SKeara Leibovitz                255
944180390c4SKeara Leibovitz            ],
945180390c4SKeara Leibovitz            "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 20.20.20.2 dst_port 3128 nocsum id 1 pipe index 1",
946180390c4SKeara Leibovitz            "$TC actions add action tunnel_key set src_ip 11.10.10.1 dst_ip 21.20.20.2 dst_port 3129 csum id 2 jump 10 index 2",
947180390c4SKeara Leibovitz            "$TC actions add action tunnel_key set src_ip 12.10.10.1 dst_ip 22.20.20.2 dst_port 3130 csum id 3 pass index 3",
948180390c4SKeara Leibovitz            "$TC actions add action tunnel_key set src_ip 13.10.10.1 dst_ip 23.20.20.2 dst_port 3131 nocsum id 4 continue index 4"
949180390c4SKeara Leibovitz        ],
950180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions list action tunnel_key",
951180390c4SKeara Leibovitz        "expExitCode": "0",
952180390c4SKeara Leibovitz        "verifyCmd": "$TC actions list action tunnel_key",
953180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 10.10.10.1.*dst_ip 20.20.20.2.*key_id 1.*dst_port 3128.*nocsum pipe.*index 1.*set.*src_ip 11.10.10.1.*dst_ip 21.20.20.2.*key_id 2.*dst_port 3129.*csum jump 10.*index 2.*set.*src_ip 12.10.10.1.*dst_ip 22.20.20.2.*key_id 3.*dst_port 3130.*csum pass.*index 3.*set.*src_ip 13.10.10.1.*dst_ip 23.20.20.2.*key_id 4.*dst_port 3131.*nocsum continue.*index 4",
954180390c4SKeara Leibovitz        "matchCount": "1",
955180390c4SKeara Leibovitz        "teardown": [
956180390c4SKeara Leibovitz            "$TC actions flush action tunnel_key"
957180390c4SKeara Leibovitz        ]
958180390c4SKeara Leibovitz    },
959180390c4SKeara Leibovitz    {
960180390c4SKeara Leibovitz        "id": "6783",
961180390c4SKeara Leibovitz        "name": "Flush all existing tunnel_key actions",
962180390c4SKeara Leibovitz        "category": [
963180390c4SKeara Leibovitz            "actions",
964180390c4SKeara Leibovitz            "tunnel_key"
965180390c4SKeara Leibovitz        ],
966*d227cc0bSPedro Tammela        "plugins": {
967*d227cc0bSPedro Tammela           "requires": "nsPlugin"
968*d227cc0bSPedro Tammela        },
969180390c4SKeara Leibovitz        "setup": [
970180390c4SKeara Leibovitz            [
971180390c4SKeara Leibovitz                "$TC actions flush action tunnel_key",
972180390c4SKeara Leibovitz                0,
973180390c4SKeara Leibovitz                1,
974180390c4SKeara Leibovitz                255
975180390c4SKeara Leibovitz            ],
976180390c4SKeara Leibovitz            "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 20.20.20.2 dst_port 3128 nocsum id 1 pipe index 1",
977180390c4SKeara Leibovitz            "$TC actions add action tunnel_key set src_ip 11.10.10.1 dst_ip 21.20.20.2 dst_port 3129 csum id 2 reclassify index 2",
978180390c4SKeara Leibovitz            "$TC actions add action tunnel_key set src_ip 12.10.10.1 dst_ip 22.20.20.2 dst_port 3130 csum id 3 pass index 3",
979180390c4SKeara Leibovitz            "$TC actions add action tunnel_key set src_ip 13.10.10.1 dst_ip 23.20.20.2 dst_port 3131 nocsum id 4 continue index 4"
980180390c4SKeara Leibovitz        ],
981180390c4SKeara Leibovitz        "cmdUnderTest": "$TC actions flush action tunnel_key",
982180390c4SKeara Leibovitz        "expExitCode": "0",
983180390c4SKeara Leibovitz        "verifyCmd": "$TC actions list action tunnel_key",
984180390c4SKeara Leibovitz        "matchPattern": "action order [0-9]+:.*",
985180390c4SKeara Leibovitz        "matchCount": "0",
986180390c4SKeara Leibovitz        "teardown": [
987180390c4SKeara Leibovitz	    "$TC actions flush action tunnel_key"
988180390c4SKeara Leibovitz	]
989e5fdabacSDavide Caratti    },
990e5fdabacSDavide Caratti    {
991e5fdabacSDavide Caratti        "id": "8242",
992e5fdabacSDavide Caratti        "name": "Replace tunnel_key set action with invalid goto chain",
993e5fdabacSDavide Caratti        "category": [
994e5fdabacSDavide Caratti            "actions",
995e5fdabacSDavide Caratti            "tunnel_key"
996e5fdabacSDavide Caratti        ],
997*d227cc0bSPedro Tammela        "plugins": {
998*d227cc0bSPedro Tammela           "requires": "nsPlugin"
999*d227cc0bSPedro Tammela        },
1000e5fdabacSDavide Caratti        "setup": [
1001e5fdabacSDavide Caratti            [
1002e5fdabacSDavide Caratti                "$TC actions flush action tunnel_key",
1003e5fdabacSDavide Caratti                0,
1004e5fdabacSDavide Caratti                1,
1005e5fdabacSDavide Caratti                255
1006e5fdabacSDavide Caratti            ],
1007e5fdabacSDavide Caratti            "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 20.20.20.2 dst_port 3128 nocsum id 1 pass index 90"
1008e5fdabacSDavide Caratti        ],
1009e5fdabacSDavide Caratti        "cmdUnderTest": "$TC actions replace action tunnel_key set src_ip 10.10.10.2 dst_ip 20.20.20.1 dst_port 3129 id 2 csum goto chain 42 index 90 cookie c1a0c1a0",
1010e5fdabacSDavide Caratti        "expExitCode": "255",
1011e5fdabacSDavide Caratti        "verifyCmd": "$TC actions get action tunnel_key index 90",
1012e5fdabacSDavide Caratti        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 10.10.10.1.*dst_ip 20.20.20.2.*key_id 1.*dst_port 3128.*csum pass.*index 90 ref",
1013e5fdabacSDavide Caratti        "matchCount": "1",
1014e5fdabacSDavide Caratti        "teardown": [
1015e5fdabacSDavide Caratti            "$TC actions flush action tunnel_key"
1016e5fdabacSDavide Caratti        ]
10179ae6b787SVlad Buslov    },
10189ae6b787SVlad Buslov    {
10199ae6b787SVlad Buslov        "id": "0cd2",
10209ae6b787SVlad Buslov        "name": "Add tunnel_key set action with no_percpu flag",
10219ae6b787SVlad Buslov        "category": [
10229ae6b787SVlad Buslov            "actions",
10239ae6b787SVlad Buslov            "tunnel_key"
10249ae6b787SVlad Buslov        ],
1025*d227cc0bSPedro Tammela        "plugins": {
1026*d227cc0bSPedro Tammela           "requires": "nsPlugin"
1027*d227cc0bSPedro Tammela        },
10289ae6b787SVlad Buslov        "setup": [
10299ae6b787SVlad Buslov            [
10309ae6b787SVlad Buslov                "$TC actions flush action tunnel_key",
10319ae6b787SVlad Buslov                0,
10329ae6b787SVlad Buslov                1,
10339ae6b787SVlad Buslov                255
10349ae6b787SVlad Buslov            ]
10359ae6b787SVlad Buslov        ],
10369ae6b787SVlad Buslov        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 20.20.20.2 id 1 no_percpu",
10379ae6b787SVlad Buslov        "expExitCode": "0",
10389ae6b787SVlad Buslov        "verifyCmd": "$TC actions list action tunnel_key",
10399ae6b787SVlad Buslov        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 10.10.10.1.*dst_ip 20.20.20.2.*key_id 1.*no_percpu",
10409ae6b787SVlad Buslov        "matchCount": "1",
10419ae6b787SVlad Buslov        "teardown": [
10429ae6b787SVlad Buslov            "$TC actions flush action tunnel_key"
10439ae6b787SVlad Buslov        ]
1044eed791d3SZhengchao Shao    },
1045eed791d3SZhengchao Shao    {
1046eed791d3SZhengchao Shao        "id": "3671",
1047eed791d3SZhengchao Shao        "name": "Delete tunnel_key set action with valid index",
1048eed791d3SZhengchao Shao	"category": [
1049eed791d3SZhengchao Shao            "actions",
1050eed791d3SZhengchao Shao            "tunnel_key"
1051eed791d3SZhengchao Shao        ],
1052*d227cc0bSPedro Tammela        "plugins": {
1053*d227cc0bSPedro Tammela           "requires": "nsPlugin"
1054*d227cc0bSPedro Tammela        },
1055eed791d3SZhengchao Shao        "setup": [
1056eed791d3SZhengchao Shao            [
1057eed791d3SZhengchao Shao                "$TC actions flush action tunnel_key",
1058eed791d3SZhengchao Shao                0,
1059eed791d3SZhengchao Shao                1,
1060eed791d3SZhengchao Shao                255
1061eed791d3SZhengchao Shao            ],
1062eed791d3SZhengchao Shao	    "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 index 1"
1063eed791d3SZhengchao Shao        ],
1064eed791d3SZhengchao Shao        "cmdUnderTest": "$TC actions del action tunnel_key index 1",
1065eed791d3SZhengchao Shao        "expExitCode": "0",
1066eed791d3SZhengchao Shao        "verifyCmd": "$TC actions list action tunnel_key",
1067eed791d3SZhengchao Shao        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*index 1",
1068eed791d3SZhengchao Shao        "matchCount": "0",
1069eed791d3SZhengchao Shao        "teardown": [
1070eed791d3SZhengchao Shao            "$TC actions flush action tunnel_key"
1071eed791d3SZhengchao Shao        ]
1072eed791d3SZhengchao Shao    },
1073eed791d3SZhengchao Shao    {
1074eed791d3SZhengchao Shao        "id": "8597",
1075eed791d3SZhengchao Shao        "name": "Delete tunnel_key set action with invalid index",
1076eed791d3SZhengchao Shao        "category": [
1077eed791d3SZhengchao Shao            "actions",
1078eed791d3SZhengchao Shao            "tunnel_key"
1079eed791d3SZhengchao Shao        ],
1080*d227cc0bSPedro Tammela        "plugins": {
1081*d227cc0bSPedro Tammela           "requires": "nsPlugin"
1082*d227cc0bSPedro Tammela        },
1083eed791d3SZhengchao Shao        "setup": [
1084eed791d3SZhengchao Shao            [
1085eed791d3SZhengchao Shao                "$TC actions flush action tunnel_key",
1086eed791d3SZhengchao Shao                0,
1087eed791d3SZhengchao Shao                1,
1088eed791d3SZhengchao Shao                255
1089eed791d3SZhengchao Shao            ],
1090eed791d3SZhengchao Shao            "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 index 1"
1091eed791d3SZhengchao Shao        ],
1092eed791d3SZhengchao Shao        "cmdUnderTest": "$TC actions del action tunnel_key index 10",
1093eed791d3SZhengchao Shao        "expExitCode": "255",
1094eed791d3SZhengchao Shao        "verifyCmd": "$TC actions list action tunnel_key",
1095eed791d3SZhengchao Shao        "matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*index 1",
1096eed791d3SZhengchao Shao        "matchCount": "1",
1097eed791d3SZhengchao Shao        "teardown": [
1098eed791d3SZhengchao Shao            "$TC actions flush action tunnel_key"
1099eed791d3SZhengchao Shao        ]
1100b8617f8eSDavide Caratti    },
1101b8617f8eSDavide Caratti    {
1102b8617f8eSDavide Caratti        "id": "6bda",
1103b8617f8eSDavide Caratti        "name": "Add tunnel_key action with nofrag option",
1104b8617f8eSDavide Caratti        "category": [
1105b8617f8eSDavide Caratti            "actions",
1106b8617f8eSDavide Caratti            "tunnel_key"
1107b8617f8eSDavide Caratti        ],
1108*d227cc0bSPedro Tammela        "plugins": {
1109*d227cc0bSPedro Tammela           "requires": "nsPlugin"
1110*d227cc0bSPedro Tammela        },
1111b8617f8eSDavide Caratti        "dependsOn": "$TC actions add action tunnel_key help 2>&1 | grep -q nofrag",
1112b8617f8eSDavide Caratti        "setup": [
1113b8617f8eSDavide Caratti            [
1114b8617f8eSDavide Caratti                "$TC action flush action tunnel_key",
1115b8617f8eSDavide Caratti                0,
1116b8617f8eSDavide Caratti                1,
1117b8617f8eSDavide Caratti                255
1118b8617f8eSDavide Caratti            ]
1119b8617f8eSDavide Caratti        ],
1120b8617f8eSDavide Caratti        "cmdUnderTest": "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 10.10.10.2 id 1111 nofrag index 222",
1121b8617f8eSDavide Caratti        "expExitCode": "0",
1122b8617f8eSDavide Caratti        "verifyCmd": "$TC actions get action tunnel_key index 222",
1123b8617f8eSDavide Caratti        "matchPattern": "action order [0-9]+: tunnel_key.*src_ip 10.10.10.1.*dst_ip 10.10.10.2.*key_id 1111.*csum.*nofrag pipe.*index 222",
1124b8617f8eSDavide Caratti        "matchCount": "1",
1125b8617f8eSDavide Caratti        "teardown": [
1126b8617f8eSDavide Caratti            "$TC actions flush action tunnel_key"
1127b8617f8eSDavide Caratti        ]
1128180390c4SKeara Leibovitz    }
1129180390c4SKeara Leibovitz]
1130