16e52fca3SPaul Blakey[ 26e52fca3SPaul Blakey { 36e52fca3SPaul Blakey "id": "696a", 46e52fca3SPaul Blakey "name": "Add simple ct action", 56e52fca3SPaul Blakey "category": [ 66e52fca3SPaul Blakey "actions", 76e52fca3SPaul Blakey "ct" 86e52fca3SPaul Blakey ], 9*d227cc0bSPedro Tammela "plugins": { 10*d227cc0bSPedro Tammela "requires": "nsPlugin" 11*d227cc0bSPedro Tammela }, 126e52fca3SPaul Blakey "setup": [ 136e52fca3SPaul Blakey [ 146e52fca3SPaul Blakey "$TC actions flush action ct", 156e52fca3SPaul Blakey 0, 166e52fca3SPaul Blakey 1, 176e52fca3SPaul Blakey 255 186e52fca3SPaul Blakey ] 196e52fca3SPaul Blakey ], 206e52fca3SPaul Blakey "cmdUnderTest": "$TC actions add action ct index 42", 216e52fca3SPaul Blakey "expExitCode": "0", 226e52fca3SPaul Blakey "verifyCmd": "$TC actions list action ct", 236e52fca3SPaul Blakey "matchPattern": "action order [0-9]*: ct zone 0 pipe.*index 42 ref", 246e52fca3SPaul Blakey "matchCount": "1", 256e52fca3SPaul Blakey "teardown": [ 266e52fca3SPaul Blakey "$TC actions flush action ct" 276e52fca3SPaul Blakey ] 286e52fca3SPaul Blakey }, 296e52fca3SPaul Blakey { 30c23fcbbcSRoman Mashak "id": "e38c", 31c23fcbbcSRoman Mashak "name": "Add simple ct action with cookie", 32c23fcbbcSRoman Mashak "category": [ 33c23fcbbcSRoman Mashak "actions", 34c23fcbbcSRoman Mashak "ct" 35c23fcbbcSRoman Mashak ], 36*d227cc0bSPedro Tammela "plugins": { 37*d227cc0bSPedro Tammela "requires": "nsPlugin" 38*d227cc0bSPedro Tammela }, 39c23fcbbcSRoman Mashak "setup": [ 40c23fcbbcSRoman Mashak [ 41c23fcbbcSRoman Mashak "$TC actions flush action ct", 42c23fcbbcSRoman Mashak 0, 43c23fcbbcSRoman Mashak 1, 44c23fcbbcSRoman Mashak 255 45c23fcbbcSRoman Mashak ] 46c23fcbbcSRoman Mashak ], 47c23fcbbcSRoman Mashak "cmdUnderTest": "$TC actions add action ct index 42 cookie deadbeef", 48c23fcbbcSRoman Mashak "expExitCode": "0", 49c23fcbbcSRoman Mashak "verifyCmd": "$TC actions list action ct", 50c23fcbbcSRoman Mashak "matchPattern": "action order [0-9]*: ct zone 0 pipe.*index 42 ref.*cookie deadbeef", 51c23fcbbcSRoman Mashak "matchCount": "1", 52c23fcbbcSRoman Mashak "teardown": [ 53c23fcbbcSRoman Mashak "$TC actions flush action ct" 54c23fcbbcSRoman Mashak ] 55c23fcbbcSRoman Mashak }, 56c23fcbbcSRoman Mashak { 576e52fca3SPaul Blakey "id": "9f20", 586e52fca3SPaul Blakey "name": "Add ct clear action", 596e52fca3SPaul Blakey "category": [ 606e52fca3SPaul Blakey "actions", 616e52fca3SPaul Blakey "ct" 626e52fca3SPaul Blakey ], 63*d227cc0bSPedro Tammela "plugins": { 64*d227cc0bSPedro Tammela "requires": "nsPlugin" 65*d227cc0bSPedro Tammela }, 666e52fca3SPaul Blakey "setup": [ 676e52fca3SPaul Blakey [ 686e52fca3SPaul Blakey "$TC actions flush action ct", 696e52fca3SPaul Blakey 0, 706e52fca3SPaul Blakey 1, 716e52fca3SPaul Blakey 255 726e52fca3SPaul Blakey ] 736e52fca3SPaul Blakey ], 746e52fca3SPaul Blakey "cmdUnderTest": "$TC actions add action ct clear index 42", 756e52fca3SPaul Blakey "expExitCode": "0", 766e52fca3SPaul Blakey "verifyCmd": "$TC actions list action ct", 776e52fca3SPaul Blakey "matchPattern": "action order [0-9]*: ct clear pipe.*index 42 ref", 786e52fca3SPaul Blakey "matchCount": "1", 796e52fca3SPaul Blakey "teardown": [ 806e52fca3SPaul Blakey "$TC actions flush action ct" 816e52fca3SPaul Blakey ] 826e52fca3SPaul Blakey }, 836e52fca3SPaul Blakey { 84c23fcbbcSRoman Mashak "id": "0bc1", 85c23fcbbcSRoman Mashak "name": "Add ct clear action with cookie of max length", 86c23fcbbcSRoman Mashak "category": [ 87c23fcbbcSRoman Mashak "actions", 88c23fcbbcSRoman Mashak "ct" 89c23fcbbcSRoman Mashak ], 90*d227cc0bSPedro Tammela "plugins": { 91*d227cc0bSPedro Tammela "requires": "nsPlugin" 92*d227cc0bSPedro Tammela }, 93c23fcbbcSRoman Mashak "setup": [ 94c23fcbbcSRoman Mashak [ 95c23fcbbcSRoman Mashak "$TC actions flush action ct", 96c23fcbbcSRoman Mashak 0, 97c23fcbbcSRoman Mashak 1, 98c23fcbbcSRoman Mashak 255 99c23fcbbcSRoman Mashak ] 100c23fcbbcSRoman Mashak ], 101c23fcbbcSRoman Mashak "cmdUnderTest": "$TC actions add action ct clear index 42 cookie aa11bb22cc33dd44ee55ff66aa11b1b2", 102c23fcbbcSRoman Mashak "expExitCode": "0", 103c23fcbbcSRoman Mashak "verifyCmd": "$TC actions list action ct", 104c23fcbbcSRoman Mashak "matchPattern": "action order [0-9]*: ct clear pipe.*index 42 ref.*cookie aa11bb22cc33dd44ee55ff66aa11b1b2", 105c23fcbbcSRoman Mashak "matchCount": "1", 106c23fcbbcSRoman Mashak "teardown": [ 107c23fcbbcSRoman Mashak "$TC actions flush action ct" 108c23fcbbcSRoman Mashak ] 109c23fcbbcSRoman Mashak }, 110c23fcbbcSRoman Mashak { 1116e52fca3SPaul Blakey "id": "5bea", 1126e52fca3SPaul Blakey "name": "Try ct with zone", 1136e52fca3SPaul Blakey "category": [ 1146e52fca3SPaul Blakey "actions", 1156e52fca3SPaul Blakey "ct" 1166e52fca3SPaul Blakey ], 117*d227cc0bSPedro Tammela "plugins": { 118*d227cc0bSPedro Tammela "requires": "nsPlugin" 119*d227cc0bSPedro Tammela }, 1206e52fca3SPaul Blakey "setup": [ 1216e52fca3SPaul Blakey [ 1226e52fca3SPaul Blakey "$TC actions flush action ct", 1236e52fca3SPaul Blakey 0, 1246e52fca3SPaul Blakey 1, 1256e52fca3SPaul Blakey 255 1266e52fca3SPaul Blakey ] 1276e52fca3SPaul Blakey ], 1286e52fca3SPaul Blakey "cmdUnderTest": "$TC actions add action ct zone 404 index 42", 1296e52fca3SPaul Blakey "expExitCode": "0", 1306e52fca3SPaul Blakey "verifyCmd": "$TC actions list action ct", 1316e52fca3SPaul Blakey "matchPattern": "action order [0-9]*: ct zone 404 pipe.*index 42 ref", 1326e52fca3SPaul Blakey "matchCount": "1", 1336e52fca3SPaul Blakey "teardown": [ 1346e52fca3SPaul Blakey "$TC actions flush action ct" 1356e52fca3SPaul Blakey ] 1366e52fca3SPaul Blakey }, 1376e52fca3SPaul Blakey { 1386e52fca3SPaul Blakey "id": "d5d6", 1396e52fca3SPaul Blakey "name": "Try ct with zone, commit", 1406e52fca3SPaul Blakey "category": [ 1416e52fca3SPaul Blakey "actions", 1426e52fca3SPaul Blakey "ct" 1436e52fca3SPaul Blakey ], 144*d227cc0bSPedro Tammela "plugins": { 145*d227cc0bSPedro Tammela "requires": "nsPlugin" 146*d227cc0bSPedro Tammela }, 1476e52fca3SPaul Blakey "setup": [ 1486e52fca3SPaul Blakey [ 1496e52fca3SPaul Blakey "$TC actions flush action ct", 1506e52fca3SPaul Blakey 0, 1516e52fca3SPaul Blakey 1, 1526e52fca3SPaul Blakey 255 1536e52fca3SPaul Blakey ] 1546e52fca3SPaul Blakey ], 1556e52fca3SPaul Blakey "cmdUnderTest": "$TC actions add action ct zone 404 commit index 42", 1566e52fca3SPaul Blakey "expExitCode": "0", 1576e52fca3SPaul Blakey "verifyCmd": "$TC actions list action ct", 1586e52fca3SPaul Blakey "matchPattern": "action order [0-9]*: ct commit zone 404 pipe.*index 42 ref", 1596e52fca3SPaul Blakey "matchCount": "1", 1606e52fca3SPaul Blakey "teardown": [ 1616e52fca3SPaul Blakey "$TC actions flush action ct" 1626e52fca3SPaul Blakey ] 1636e52fca3SPaul Blakey }, 1646e52fca3SPaul Blakey { 1656e52fca3SPaul Blakey "id": "029f", 1666e52fca3SPaul Blakey "name": "Try ct with zone, commit, mark", 1676e52fca3SPaul Blakey "category": [ 1686e52fca3SPaul Blakey "actions", 1696e52fca3SPaul Blakey "ct" 1706e52fca3SPaul Blakey ], 171*d227cc0bSPedro Tammela "plugins": { 172*d227cc0bSPedro Tammela "requires": "nsPlugin" 173*d227cc0bSPedro Tammela }, 1746e52fca3SPaul Blakey "setup": [ 1756e52fca3SPaul Blakey [ 1766e52fca3SPaul Blakey "$TC actions flush action ct", 1776e52fca3SPaul Blakey 0, 1786e52fca3SPaul Blakey 1, 1796e52fca3SPaul Blakey 255 1806e52fca3SPaul Blakey ] 1816e52fca3SPaul Blakey ], 1826e52fca3SPaul Blakey "cmdUnderTest": "$TC actions add action ct zone 404 commit mark 0x42 index 42", 1836e52fca3SPaul Blakey "expExitCode": "0", 1846e52fca3SPaul Blakey "verifyCmd": "$TC actions list action ct", 1856e52fca3SPaul Blakey "matchPattern": "action order [0-9]*: ct commit mark 66 zone 404 pipe.*index 42 ref", 1866e52fca3SPaul Blakey "matchCount": "1", 1876e52fca3SPaul Blakey "teardown": [ 1886e52fca3SPaul Blakey "$TC actions flush action ct" 1896e52fca3SPaul Blakey ] 1906e52fca3SPaul Blakey }, 1916e52fca3SPaul Blakey { 1926e52fca3SPaul Blakey "id": "a58d", 1936e52fca3SPaul Blakey "name": "Try ct with zone, commit, mark, nat", 1946e52fca3SPaul Blakey "category": [ 1956e52fca3SPaul Blakey "actions", 1966e52fca3SPaul Blakey "ct" 1976e52fca3SPaul Blakey ], 198*d227cc0bSPedro Tammela "plugins": { 199*d227cc0bSPedro Tammela "requires": "nsPlugin" 200*d227cc0bSPedro Tammela }, 2016e52fca3SPaul Blakey "setup": [ 2026e52fca3SPaul Blakey [ 2036e52fca3SPaul Blakey "$TC actions flush action ct", 2046e52fca3SPaul Blakey 0, 2056e52fca3SPaul Blakey 1, 2066e52fca3SPaul Blakey 255 2076e52fca3SPaul Blakey ] 2086e52fca3SPaul Blakey ], 2096e52fca3SPaul Blakey "cmdUnderTest": "$TC actions add action ct zone 404 commit mark 0x42 nat src addr 5.5.5.7 index 42", 2106e52fca3SPaul Blakey "expExitCode": "0", 2116e52fca3SPaul Blakey "verifyCmd": "$TC actions list action ct", 2126e52fca3SPaul Blakey "matchPattern": "action order [0-9]*: ct commit mark 66 zone 404 nat src addr 5.5.5.7 pipe.*index 42 ref", 2136e52fca3SPaul Blakey "matchCount": "1", 2146e52fca3SPaul Blakey "teardown": [ 2156e52fca3SPaul Blakey "$TC actions flush action ct" 2166e52fca3SPaul Blakey ] 2176e52fca3SPaul Blakey }, 2186e52fca3SPaul Blakey { 2196e52fca3SPaul Blakey "id": "901b", 2206e52fca3SPaul Blakey "name": "Try ct with full nat ipv4 range syntax", 2216e52fca3SPaul Blakey "category": [ 2226e52fca3SPaul Blakey "actions", 2236e52fca3SPaul Blakey "ct" 2246e52fca3SPaul Blakey ], 225*d227cc0bSPedro Tammela "plugins": { 226*d227cc0bSPedro Tammela "requires": "nsPlugin" 227*d227cc0bSPedro Tammela }, 2286e52fca3SPaul Blakey "setup": [ 2296e52fca3SPaul Blakey [ 2306e52fca3SPaul Blakey "$TC actions flush action ct", 2316e52fca3SPaul Blakey 0, 2326e52fca3SPaul Blakey 1, 2336e52fca3SPaul Blakey 255 2346e52fca3SPaul Blakey ] 2356e52fca3SPaul Blakey ], 2366e52fca3SPaul Blakey "cmdUnderTest": "$TC actions add action ct commit nat src addr 5.5.5.7-5.5.6.0 port 1000-2000 index 44", 2376e52fca3SPaul Blakey "expExitCode": "0", 2386e52fca3SPaul Blakey "verifyCmd": "$TC actions list action ct", 2396e52fca3SPaul Blakey "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", 2406e52fca3SPaul Blakey "matchCount": "1", 2416e52fca3SPaul Blakey "teardown": [ 2426e52fca3SPaul Blakey "$TC actions flush action ct" 2436e52fca3SPaul Blakey ] 2446e52fca3SPaul Blakey }, 2456e52fca3SPaul Blakey { 2466e52fca3SPaul Blakey "id": "072b", 2476e52fca3SPaul Blakey "name": "Try ct with full nat ipv6 syntax", 2486e52fca3SPaul Blakey "category": [ 2496e52fca3SPaul Blakey "actions", 2506e52fca3SPaul Blakey "ct" 2516e52fca3SPaul Blakey ], 252*d227cc0bSPedro Tammela "plugins": { 253*d227cc0bSPedro Tammela "requires": "nsPlugin" 254*d227cc0bSPedro Tammela }, 2556e52fca3SPaul Blakey "setup": [ 2566e52fca3SPaul Blakey [ 2576e52fca3SPaul Blakey "$TC actions flush action ct", 2586e52fca3SPaul Blakey 0, 2596e52fca3SPaul Blakey 1, 2606e52fca3SPaul Blakey 255 2616e52fca3SPaul Blakey ] 2626e52fca3SPaul Blakey ], 2636e52fca3SPaul Blakey "cmdUnderTest": "$TC actions add action ct commit nat src addr 2001::1 port 1000-2000 index 44", 2646e52fca3SPaul Blakey "expExitCode": "0", 2656e52fca3SPaul Blakey "verifyCmd": "$TC actions list action ct", 2666e52fca3SPaul Blakey "matchPattern": "action order [0-9]*: ct commit zone 0 nat src addr 2001::1 port 1000-2000 pipe.*index 44 ref", 2676e52fca3SPaul Blakey "matchCount": "1", 2686e52fca3SPaul Blakey "teardown": [ 2696e52fca3SPaul Blakey "$TC actions flush action ct" 2706e52fca3SPaul Blakey ] 2716e52fca3SPaul Blakey }, 2726e52fca3SPaul Blakey { 2736e52fca3SPaul Blakey "id": "3420", 2746e52fca3SPaul Blakey "name": "Try ct with full nat ipv6 range syntax", 2756e52fca3SPaul Blakey "category": [ 2766e52fca3SPaul Blakey "actions", 2776e52fca3SPaul Blakey "ct" 2786e52fca3SPaul Blakey ], 279*d227cc0bSPedro Tammela "plugins": { 280*d227cc0bSPedro Tammela "requires": "nsPlugin" 281*d227cc0bSPedro Tammela }, 2826e52fca3SPaul Blakey "setup": [ 2836e52fca3SPaul Blakey [ 2846e52fca3SPaul Blakey "$TC actions flush action ct", 2856e52fca3SPaul Blakey 0, 2866e52fca3SPaul Blakey 1, 2876e52fca3SPaul Blakey 255 2886e52fca3SPaul Blakey ] 2896e52fca3SPaul Blakey ], 2906e52fca3SPaul Blakey "cmdUnderTest": "$TC actions add action ct commit nat src addr 2001::1-2001::10 port 1000-2000 index 44", 2916e52fca3SPaul Blakey "expExitCode": "0", 2926e52fca3SPaul Blakey "verifyCmd": "$TC actions list action ct", 2936e52fca3SPaul Blakey "matchPattern": "action order [0-9]*: ct commit zone 0 nat src addr 2001::1-2001::10 port 1000-2000 pipe.*index 44 ref", 2946e52fca3SPaul Blakey "matchCount": "1", 2956e52fca3SPaul Blakey "teardown": [ 2966e52fca3SPaul Blakey "$TC actions flush action ct" 2976e52fca3SPaul Blakey ] 2986e52fca3SPaul Blakey }, 2996e52fca3SPaul Blakey { 3006e52fca3SPaul Blakey "id": "4470", 3016e52fca3SPaul Blakey "name": "Try ct with full nat ipv6 range syntax + force", 3026e52fca3SPaul Blakey "category": [ 3036e52fca3SPaul Blakey "actions", 3046e52fca3SPaul Blakey "ct" 3056e52fca3SPaul Blakey ], 306*d227cc0bSPedro Tammela "plugins": { 307*d227cc0bSPedro Tammela "requires": "nsPlugin" 308*d227cc0bSPedro Tammela }, 3096e52fca3SPaul Blakey "setup": [ 3106e52fca3SPaul Blakey [ 3116e52fca3SPaul Blakey "$TC actions flush action ct", 3126e52fca3SPaul Blakey 0, 3136e52fca3SPaul Blakey 1, 3146e52fca3SPaul Blakey 255 3156e52fca3SPaul Blakey ] 3166e52fca3SPaul Blakey ], 3176e52fca3SPaul Blakey "cmdUnderTest": "$TC actions add action ct commit force nat src addr 2001::1-2001::10 port 1000-2000 index 44", 3186e52fca3SPaul Blakey "expExitCode": "0", 3196e52fca3SPaul Blakey "verifyCmd": "$TC actions list action ct", 3206e52fca3SPaul Blakey "matchPattern": "action order [0-9]*: ct commit force zone 0 nat src addr 2001::1-2001::10 port 1000-2000 pipe.*index 44 ref", 3216e52fca3SPaul Blakey "matchCount": "1", 3226e52fca3SPaul Blakey "teardown": [ 3236e52fca3SPaul Blakey "$TC actions flush action ct" 3246e52fca3SPaul Blakey ] 3256e52fca3SPaul Blakey }, 3266e52fca3SPaul Blakey { 3276e52fca3SPaul Blakey "id": "5d88", 3286e52fca3SPaul Blakey "name": "Try ct with label", 3296e52fca3SPaul Blakey "category": [ 3306e52fca3SPaul Blakey "actions", 3316e52fca3SPaul Blakey "ct" 3326e52fca3SPaul Blakey ], 333*d227cc0bSPedro Tammela "plugins": { 334*d227cc0bSPedro Tammela "requires": "nsPlugin" 335*d227cc0bSPedro Tammela }, 3366e52fca3SPaul Blakey "setup": [ 3376e52fca3SPaul Blakey [ 3386e52fca3SPaul Blakey "$TC actions flush action ct", 3396e52fca3SPaul Blakey 0, 3406e52fca3SPaul Blakey 1, 3416e52fca3SPaul Blakey 255 3426e52fca3SPaul Blakey ] 3436e52fca3SPaul Blakey ], 3446e52fca3SPaul Blakey "cmdUnderTest": "$TC actions add action ct label 123123 index 44", 3456e52fca3SPaul Blakey "expExitCode": "0", 3466e52fca3SPaul Blakey "verifyCmd": "$TC actions list action ct", 3476e52fca3SPaul Blakey "matchPattern": "action order [0-9]*: ct zone 0 label 12312300000000000000000000000000 pipe.*index 44 ref", 3486e52fca3SPaul Blakey "matchCount": "1", 3496e52fca3SPaul Blakey "teardown": [ 3506e52fca3SPaul Blakey "$TC actions flush action ct" 3516e52fca3SPaul Blakey ] 3526e52fca3SPaul Blakey }, 3536e52fca3SPaul Blakey { 3546e52fca3SPaul Blakey "id": "04d4", 3556e52fca3SPaul Blakey "name": "Try ct with label with mask", 3566e52fca3SPaul Blakey "category": [ 3576e52fca3SPaul Blakey "actions", 3586e52fca3SPaul Blakey "ct" 3596e52fca3SPaul Blakey ], 360*d227cc0bSPedro Tammela "plugins": { 361*d227cc0bSPedro Tammela "requires": "nsPlugin" 362*d227cc0bSPedro Tammela }, 3636e52fca3SPaul Blakey "setup": [ 3646e52fca3SPaul Blakey [ 3656e52fca3SPaul Blakey "$TC actions flush action ct", 3666e52fca3SPaul Blakey 0, 3676e52fca3SPaul Blakey 1, 3686e52fca3SPaul Blakey 255 3696e52fca3SPaul Blakey ] 3706e52fca3SPaul Blakey ], 3716e52fca3SPaul Blakey "cmdUnderTest": "$TC actions add action ct label 12312300000000000000000000000001/ffffffff000000000000000000000001 index 44", 3726e52fca3SPaul Blakey "expExitCode": "0", 3736e52fca3SPaul Blakey "verifyCmd": "$TC actions list action ct", 3746e52fca3SPaul Blakey "matchPattern": "action order [0-9]*: ct zone 0 label 12312300000000000000000000000001/ffffffff000000000000000000000001 pipe.*index 44 ref", 3756e52fca3SPaul Blakey "matchCount": "1", 3766e52fca3SPaul Blakey "teardown": [ 3776e52fca3SPaul Blakey "$TC actions flush action ct" 3786e52fca3SPaul Blakey ] 3796e52fca3SPaul Blakey }, 3806e52fca3SPaul Blakey { 3816e52fca3SPaul Blakey "id": "9751", 3826e52fca3SPaul Blakey "name": "Try ct with mark + mask", 3836e52fca3SPaul Blakey "category": [ 3846e52fca3SPaul Blakey "actions", 3856e52fca3SPaul Blakey "ct" 3866e52fca3SPaul Blakey ], 387*d227cc0bSPedro Tammela "plugins": { 388*d227cc0bSPedro Tammela "requires": "nsPlugin" 389*d227cc0bSPedro Tammela }, 3906e52fca3SPaul Blakey "setup": [ 3916e52fca3SPaul Blakey [ 3926e52fca3SPaul Blakey "$TC actions flush action ct", 3936e52fca3SPaul Blakey 0, 3946e52fca3SPaul Blakey 1, 3956e52fca3SPaul Blakey 255 3966e52fca3SPaul Blakey ] 3976e52fca3SPaul Blakey ], 3986e52fca3SPaul Blakey "cmdUnderTest": "$TC actions add action ct mark 0x42/0xf0 index 42", 3996e52fca3SPaul Blakey "expExitCode": "0", 4006e52fca3SPaul Blakey "verifyCmd": "$TC actions list action ct", 4016e52fca3SPaul Blakey "matchPattern": "action order [0-9]*: ct mark 66/0xf0 zone 0 pipe.*index 42 ref", 4026e52fca3SPaul Blakey "matchCount": "1", 4036e52fca3SPaul Blakey "teardown": [ 4046e52fca3SPaul Blakey "$TC actions flush action ct" 4056e52fca3SPaul Blakey ] 4069ae6b787SVlad Buslov }, 4079ae6b787SVlad Buslov { 408c23fcbbcSRoman Mashak "id": "2faa", 409c23fcbbcSRoman Mashak "name": "Try ct with mark + mask and cookie", 410c23fcbbcSRoman Mashak "category": [ 411c23fcbbcSRoman Mashak "actions", 412c23fcbbcSRoman Mashak "ct" 413c23fcbbcSRoman Mashak ], 414*d227cc0bSPedro Tammela "plugins": { 415*d227cc0bSPedro Tammela "requires": "nsPlugin" 416*d227cc0bSPedro Tammela }, 417c23fcbbcSRoman Mashak "setup": [ 418c23fcbbcSRoman Mashak [ 419c23fcbbcSRoman Mashak "$TC actions flush action ct", 420c23fcbbcSRoman Mashak 0, 421c23fcbbcSRoman Mashak 1, 422c23fcbbcSRoman Mashak 255 423c23fcbbcSRoman Mashak ] 424c23fcbbcSRoman Mashak ], 425c23fcbbcSRoman Mashak "cmdUnderTest": "$TC actions add action ct mark 0x42/0xf0 index 42 cookie aa11bb22cc33dd44ee55ff66aa11b1b2", 426c23fcbbcSRoman Mashak "expExitCode": "0", 427c23fcbbcSRoman Mashak "verifyCmd": "$TC actions list action ct", 428c23fcbbcSRoman Mashak "matchPattern": "action order [0-9]*: ct mark 66/0xf0 zone 0 pipe.*index 42 ref.*cookie aa11bb22cc33dd44ee55ff66aa11b1b2", 429c23fcbbcSRoman Mashak "matchCount": "1", 430c23fcbbcSRoman Mashak "teardown": [ 431c23fcbbcSRoman Mashak "$TC actions flush action ct" 432c23fcbbcSRoman Mashak ] 433c23fcbbcSRoman Mashak }, 434c23fcbbcSRoman Mashak { 4359ae6b787SVlad Buslov "id": "3991", 4369ae6b787SVlad Buslov "name": "Add simple ct action with no_percpu flag", 4379ae6b787SVlad Buslov "category": [ 4389ae6b787SVlad Buslov "actions", 4399ae6b787SVlad Buslov "ct" 4409ae6b787SVlad Buslov ], 441*d227cc0bSPedro Tammela "plugins": { 442*d227cc0bSPedro Tammela "requires": "nsPlugin" 443*d227cc0bSPedro Tammela }, 4449ae6b787SVlad Buslov "setup": [ 4459ae6b787SVlad Buslov [ 4469ae6b787SVlad Buslov "$TC actions flush action ct", 4479ae6b787SVlad Buslov 0, 4489ae6b787SVlad Buslov 1, 4499ae6b787SVlad Buslov 255 4509ae6b787SVlad Buslov ] 4519ae6b787SVlad Buslov ], 4529ae6b787SVlad Buslov "cmdUnderTest": "$TC actions add action ct no_percpu", 4539ae6b787SVlad Buslov "expExitCode": "0", 4549ae6b787SVlad Buslov "verifyCmd": "$TC actions list action ct", 4559ae6b787SVlad Buslov "matchPattern": "action order [0-9]*: ct zone 0 pipe.*no_percpu", 4569ae6b787SVlad Buslov "matchCount": "1", 4579ae6b787SVlad Buslov "teardown": [ 4589ae6b787SVlad Buslov "$TC actions flush action ct" 4599ae6b787SVlad Buslov ] 460e4690564SMarcelo Ricardo Leitner }, 461e4690564SMarcelo Ricardo Leitner { 462e4690564SMarcelo Ricardo Leitner "id": "3992", 463e4690564SMarcelo Ricardo Leitner "name": "Add ct action triggering DNAT tuple conflict", 464e4690564SMarcelo Ricardo Leitner "category": [ 465e4690564SMarcelo Ricardo Leitner "actions", 466e4690564SMarcelo Ricardo Leitner "ct", 467e4690564SMarcelo Ricardo Leitner "scapy" 468e4690564SMarcelo Ricardo Leitner ], 469e4690564SMarcelo Ricardo Leitner "plugins": { 470*d227cc0bSPedro Tammela "requires": "nsPlugin" 471*d227cc0bSPedro Tammela }, 472*d227cc0bSPedro Tammela "plugins": { 473e4690564SMarcelo Ricardo Leitner "requires": [ 474e4690564SMarcelo Ricardo Leitner "nsPlugin", 475e4690564SMarcelo Ricardo Leitner "scapyPlugin" 476e4690564SMarcelo Ricardo Leitner ] 477e4690564SMarcelo Ricardo Leitner }, 478e4690564SMarcelo Ricardo Leitner "setup": [ 479e4690564SMarcelo Ricardo Leitner [ 480e4690564SMarcelo Ricardo Leitner "$TC qdisc del dev $DEV1 ingress", 481e4690564SMarcelo Ricardo Leitner 0, 482e4690564SMarcelo Ricardo Leitner 1, 483e4690564SMarcelo Ricardo Leitner 2, 484e4690564SMarcelo Ricardo Leitner 255 485e4690564SMarcelo Ricardo Leitner ], 486e4690564SMarcelo Ricardo Leitner "$TC qdisc add dev $DEV1 ingress" 487e4690564SMarcelo Ricardo Leitner ], 488e4690564SMarcelo Ricardo Leitner "cmdUnderTest": "$TC filter add dev $DEV1 ingress protocol ip prio 1 flower ct_state -trk action ct commit nat dst addr 20.0.0.1 port 10 pipe action drop", 489e4690564SMarcelo Ricardo Leitner "scapy": [ 490e4690564SMarcelo Ricardo Leitner { 491e4690564SMarcelo Ricardo Leitner "iface": "$DEV0", 492e4690564SMarcelo Ricardo Leitner "count": 1, 493e4690564SMarcelo Ricardo Leitner "packet": "Ether(type=0x800)/IP(src='10.0.0.10',dst='10.0.0.10')/TCP(sport=5000,dport=10)" 494e4690564SMarcelo Ricardo Leitner }, 495e4690564SMarcelo Ricardo Leitner { 496e4690564SMarcelo Ricardo Leitner "iface": "$DEV0", 497e4690564SMarcelo Ricardo Leitner "count": 1, 498e4690564SMarcelo Ricardo Leitner "packet": "Ether(type=0x800)/IP(src='10.0.0.10',dst='10.0.0.20')/TCP(sport=5000,dport=10)" 499e4690564SMarcelo Ricardo Leitner } 500e4690564SMarcelo Ricardo Leitner ], 501e4690564SMarcelo Ricardo Leitner "expExitCode": "0", 502e4690564SMarcelo Ricardo Leitner "verifyCmd": "cat /proc/net/nf_conntrack", 503e4690564SMarcelo Ricardo Leitner "matchPattern": "dst=10.0.0.20", 504e4690564SMarcelo Ricardo Leitner "matchCount": "1", 505e4690564SMarcelo Ricardo Leitner "teardown": [ 506e4690564SMarcelo Ricardo Leitner "$TC qdisc del dev $DEV1 ingress" 507e4690564SMarcelo Ricardo Leitner ] 5086e52fca3SPaul Blakey } 5096e52fca3SPaul Blakey] 510