162306a36Sopenharmony_ci[
262306a36Sopenharmony_ci    {
362306a36Sopenharmony_ci        "id": "7565",
462306a36Sopenharmony_ci        "name": "Add nat action on ingress with default control action",
562306a36Sopenharmony_ci        "category": [
662306a36Sopenharmony_ci            "actions",
762306a36Sopenharmony_ci            "nat"
862306a36Sopenharmony_ci        ],
962306a36Sopenharmony_ci        "setup": [
1062306a36Sopenharmony_ci            [
1162306a36Sopenharmony_ci                "$TC actions flush action nat",
1262306a36Sopenharmony_ci                0,
1362306a36Sopenharmony_ci                1,
1462306a36Sopenharmony_ci                255
1562306a36Sopenharmony_ci            ]
1662306a36Sopenharmony_ci        ],
1762306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat ingress 192.168.1.1 200.200.200.1",
1862306a36Sopenharmony_ci        "expExitCode": "0",
1962306a36Sopenharmony_ci        "verifyCmd": "$TC actions ls action nat",
2062306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat ingress 192.168.1.1/32 200.200.200.1 pass",
2162306a36Sopenharmony_ci        "matchCount": "1",
2262306a36Sopenharmony_ci        "teardown": [
2362306a36Sopenharmony_ci            "$TC actions flush action nat"
2462306a36Sopenharmony_ci        ]
2562306a36Sopenharmony_ci    },
2662306a36Sopenharmony_ci    {
2762306a36Sopenharmony_ci        "id": "fd79",
2862306a36Sopenharmony_ci        "name": "Add nat action on ingress with pipe control action",
2962306a36Sopenharmony_ci        "category": [
3062306a36Sopenharmony_ci            "actions",
3162306a36Sopenharmony_ci            "nat"
3262306a36Sopenharmony_ci        ],
3362306a36Sopenharmony_ci        "setup": [
3462306a36Sopenharmony_ci            [
3562306a36Sopenharmony_ci                "$TC actions flush action nat",
3662306a36Sopenharmony_ci                0,
3762306a36Sopenharmony_ci                1,
3862306a36Sopenharmony_ci                255
3962306a36Sopenharmony_ci            ]
4062306a36Sopenharmony_ci        ],
4162306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat ingress 1.1.1.1 2.2.2.1 pipe index 77",
4262306a36Sopenharmony_ci        "expExitCode": "0",
4362306a36Sopenharmony_ci        "verifyCmd": "$TC actions get action nat index 77",
4462306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat ingress 1.1.1.1/32 2.2.2.1 pipe.*index 77 ref",
4562306a36Sopenharmony_ci        "matchCount": "1",
4662306a36Sopenharmony_ci        "teardown": [
4762306a36Sopenharmony_ci            "$TC actions flush action nat"
4862306a36Sopenharmony_ci        ]
4962306a36Sopenharmony_ci    },
5062306a36Sopenharmony_ci    {
5162306a36Sopenharmony_ci        "id": "eab9",
5262306a36Sopenharmony_ci        "name": "Add nat action on ingress with continue control action",
5362306a36Sopenharmony_ci        "category": [
5462306a36Sopenharmony_ci            "actions",
5562306a36Sopenharmony_ci            "nat"
5662306a36Sopenharmony_ci        ],
5762306a36Sopenharmony_ci        "setup": [
5862306a36Sopenharmony_ci            [
5962306a36Sopenharmony_ci                "$TC actions flush action nat",
6062306a36Sopenharmony_ci                0,
6162306a36Sopenharmony_ci                1,
6262306a36Sopenharmony_ci                255
6362306a36Sopenharmony_ci            ]
6462306a36Sopenharmony_ci        ],
6562306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat ingress 192.168.10.10 192.168.20.20 continue index 1000",
6662306a36Sopenharmony_ci        "expExitCode": "0",
6762306a36Sopenharmony_ci        "verifyCmd": "$TC actions get action nat index 1000",
6862306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat ingress 192.168.10.10/32 192.168.20.20 continue.*index 1000 ref",
6962306a36Sopenharmony_ci        "matchCount": "1",
7062306a36Sopenharmony_ci        "teardown": [
7162306a36Sopenharmony_ci            "$TC actions flush action nat"
7262306a36Sopenharmony_ci        ]
7362306a36Sopenharmony_ci    },
7462306a36Sopenharmony_ci    {
7562306a36Sopenharmony_ci        "id": "c53a",
7662306a36Sopenharmony_ci        "name": "Add nat action on ingress with reclassify control action",
7762306a36Sopenharmony_ci        "category": [
7862306a36Sopenharmony_ci            "actions",
7962306a36Sopenharmony_ci            "nat"
8062306a36Sopenharmony_ci        ],
8162306a36Sopenharmony_ci        "setup": [
8262306a36Sopenharmony_ci            [
8362306a36Sopenharmony_ci                "$TC actions flush action nat",
8462306a36Sopenharmony_ci                0,
8562306a36Sopenharmony_ci                1,
8662306a36Sopenharmony_ci                255
8762306a36Sopenharmony_ci            ]
8862306a36Sopenharmony_ci        ],
8962306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat ingress 192.168.10.10 192.168.20.20 reclassify index 1000",
9062306a36Sopenharmony_ci        "expExitCode": "0",
9162306a36Sopenharmony_ci        "verifyCmd": "$TC actions get action nat index 1000",
9262306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat ingress 192.168.10.10/32 192.168.20.20 reclassify.*index 1000 ref",
9362306a36Sopenharmony_ci        "matchCount": "1",
9462306a36Sopenharmony_ci        "teardown": [
9562306a36Sopenharmony_ci            "$TC actions flush action nat"
9662306a36Sopenharmony_ci        ]
9762306a36Sopenharmony_ci    },
9862306a36Sopenharmony_ci    {
9962306a36Sopenharmony_ci        "id": "76c9",
10062306a36Sopenharmony_ci        "name": "Add nat action on ingress with jump control action",
10162306a36Sopenharmony_ci        "category": [
10262306a36Sopenharmony_ci            "actions",
10362306a36Sopenharmony_ci            "nat"
10462306a36Sopenharmony_ci        ],
10562306a36Sopenharmony_ci        "setup": [
10662306a36Sopenharmony_ci            [
10762306a36Sopenharmony_ci                "$TC actions flush action nat",
10862306a36Sopenharmony_ci                0,
10962306a36Sopenharmony_ci                1,
11062306a36Sopenharmony_ci                255
11162306a36Sopenharmony_ci            ]
11262306a36Sopenharmony_ci        ],
11362306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat ingress 12.18.10.10 12.18.20.20 jump 10 index 22",
11462306a36Sopenharmony_ci        "expExitCode": "0",
11562306a36Sopenharmony_ci        "verifyCmd": "$TC actions get action nat index 22",
11662306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat ingress 12.18.10.10/32 12.18.20.20 jump 10.*index 22 ref",
11762306a36Sopenharmony_ci        "matchCount": "1",
11862306a36Sopenharmony_ci        "teardown": [
11962306a36Sopenharmony_ci            "$TC actions flush action nat"
12062306a36Sopenharmony_ci        ]
12162306a36Sopenharmony_ci    },
12262306a36Sopenharmony_ci    {
12362306a36Sopenharmony_ci        "id": "24c6",
12462306a36Sopenharmony_ci        "name": "Add nat action on ingress with drop control action",
12562306a36Sopenharmony_ci        "category": [
12662306a36Sopenharmony_ci            "actions",
12762306a36Sopenharmony_ci            "nat"
12862306a36Sopenharmony_ci        ],
12962306a36Sopenharmony_ci        "setup": [
13062306a36Sopenharmony_ci            [
13162306a36Sopenharmony_ci                "$TC actions flush action nat",
13262306a36Sopenharmony_ci                0,
13362306a36Sopenharmony_ci                1,
13462306a36Sopenharmony_ci                255
13562306a36Sopenharmony_ci            ]
13662306a36Sopenharmony_ci        ],
13762306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat ingress 1.18.1.1 1.18.2.2 drop index 722",
13862306a36Sopenharmony_ci        "expExitCode": "0",
13962306a36Sopenharmony_ci        "verifyCmd": "$TC actions get action nat index 722",
14062306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat ingress 1.18.1.1/32 1.18.2.2 drop.*index 722 ref",
14162306a36Sopenharmony_ci        "matchCount": "1",
14262306a36Sopenharmony_ci        "teardown": [
14362306a36Sopenharmony_ci            "$TC actions flush action nat"
14462306a36Sopenharmony_ci        ]
14562306a36Sopenharmony_ci    },
14662306a36Sopenharmony_ci    {
14762306a36Sopenharmony_ci        "id": "2120",
14862306a36Sopenharmony_ci        "name": "Add nat action on ingress with maximum index value",
14962306a36Sopenharmony_ci        "category": [
15062306a36Sopenharmony_ci            "actions",
15162306a36Sopenharmony_ci            "nat"
15262306a36Sopenharmony_ci        ],
15362306a36Sopenharmony_ci        "setup": [
15462306a36Sopenharmony_ci            [
15562306a36Sopenharmony_ci                "$TC actions flush action nat",
15662306a36Sopenharmony_ci                0,
15762306a36Sopenharmony_ci                1,
15862306a36Sopenharmony_ci                255
15962306a36Sopenharmony_ci            ]
16062306a36Sopenharmony_ci        ],
16162306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat ingress 1.18.1.1 1.18.2.2 index 4294967295",
16262306a36Sopenharmony_ci        "expExitCode": "0",
16362306a36Sopenharmony_ci        "verifyCmd": "$TC actions get action nat index 4294967295",
16462306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat ingress 1.18.1.1/32 1.18.2.2 pass.*index 4294967295 ref",
16562306a36Sopenharmony_ci        "matchCount": "1",
16662306a36Sopenharmony_ci        "teardown": [
16762306a36Sopenharmony_ci            "$TC actions flush action nat"
16862306a36Sopenharmony_ci        ]
16962306a36Sopenharmony_ci    },
17062306a36Sopenharmony_ci    {
17162306a36Sopenharmony_ci        "id": "3e9d",
17262306a36Sopenharmony_ci        "name": "Add nat action on ingress with invalid index value",
17362306a36Sopenharmony_ci        "category": [
17462306a36Sopenharmony_ci            "actions",
17562306a36Sopenharmony_ci            "nat"
17662306a36Sopenharmony_ci        ],
17762306a36Sopenharmony_ci        "setup": [
17862306a36Sopenharmony_ci            [
17962306a36Sopenharmony_ci                "$TC actions flush action nat",
18062306a36Sopenharmony_ci                0,
18162306a36Sopenharmony_ci                1,
18262306a36Sopenharmony_ci                255
18362306a36Sopenharmony_ci            ]
18462306a36Sopenharmony_ci        ],
18562306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat ingress 1.18.1.1 1.18.2.2 index 4294967295555",
18662306a36Sopenharmony_ci        "expExitCode": "255",
18762306a36Sopenharmony_ci        "verifyCmd": "$TC actions get action nat index 4294967295555",
18862306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat ingress 1.18.1.1/32 1.18.2.2 pass.*index 4294967295555 ref",
18962306a36Sopenharmony_ci        "matchCount": "0",
19062306a36Sopenharmony_ci        "teardown": [
19162306a36Sopenharmony_ci            [
19262306a36Sopenharmony_ci                "$TC actions flush action nat",
19362306a36Sopenharmony_ci                0,
19462306a36Sopenharmony_ci                1,
19562306a36Sopenharmony_ci                255
19662306a36Sopenharmony_ci            ]
19762306a36Sopenharmony_ci        ]
19862306a36Sopenharmony_ci    },
19962306a36Sopenharmony_ci    {
20062306a36Sopenharmony_ci        "id": "f6c9",
20162306a36Sopenharmony_ci        "name": "Add nat action on ingress with invalid IP address",
20262306a36Sopenharmony_ci        "category": [
20362306a36Sopenharmony_ci            "actions",
20462306a36Sopenharmony_ci            "nat"
20562306a36Sopenharmony_ci        ],
20662306a36Sopenharmony_ci        "setup": [
20762306a36Sopenharmony_ci            [
20862306a36Sopenharmony_ci                "$TC actions flush action nat",
20962306a36Sopenharmony_ci                0,
21062306a36Sopenharmony_ci                1,
21162306a36Sopenharmony_ci                255
21262306a36Sopenharmony_ci            ]
21362306a36Sopenharmony_ci        ],
21462306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat ingress 1.1.1.1 1.1888.2.2 index 7",
21562306a36Sopenharmony_ci        "expExitCode": "255",
21662306a36Sopenharmony_ci        "verifyCmd": "$TC actions get action nat index 7",
21762306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat ingress 1.1.1.1/32 1.1888.2.2 pass.*index 7 ref",
21862306a36Sopenharmony_ci        "matchCount": "0",
21962306a36Sopenharmony_ci        "teardown": [
22062306a36Sopenharmony_ci            [
22162306a36Sopenharmony_ci                "$TC actions flush action nat",
22262306a36Sopenharmony_ci                0,
22362306a36Sopenharmony_ci                1,
22462306a36Sopenharmony_ci                255
22562306a36Sopenharmony_ci            ]
22662306a36Sopenharmony_ci        ]
22762306a36Sopenharmony_ci    },
22862306a36Sopenharmony_ci    {
22962306a36Sopenharmony_ci        "id": "be25",
23062306a36Sopenharmony_ci        "name": "Add nat action on ingress with invalid argument",
23162306a36Sopenharmony_ci        "category": [
23262306a36Sopenharmony_ci            "actions",
23362306a36Sopenharmony_ci            "nat"
23462306a36Sopenharmony_ci        ],
23562306a36Sopenharmony_ci        "setup": [
23662306a36Sopenharmony_ci            [
23762306a36Sopenharmony_ci                "$TC actions flush action nat",
23862306a36Sopenharmony_ci                0,
23962306a36Sopenharmony_ci                1,
24062306a36Sopenharmony_ci                255
24162306a36Sopenharmony_ci            ]
24262306a36Sopenharmony_ci        ],
24362306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat ingress 1.1.1.1 1.18.2.2 another_arg index 12",
24462306a36Sopenharmony_ci        "expExitCode": "255",
24562306a36Sopenharmony_ci        "verifyCmd": "$TC actions get action nat index 12",
24662306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat ingress 1.1.1.1/32 1.18.2.2 pass.*another_arg.*index 12 ref",
24762306a36Sopenharmony_ci        "matchCount": "0",
24862306a36Sopenharmony_ci        "teardown": [
24962306a36Sopenharmony_ci            [
25062306a36Sopenharmony_ci                "$TC actions flush action nat",
25162306a36Sopenharmony_ci                0,
25262306a36Sopenharmony_ci                1,
25362306a36Sopenharmony_ci                255
25462306a36Sopenharmony_ci            ]
25562306a36Sopenharmony_ci        ]
25662306a36Sopenharmony_ci    },
25762306a36Sopenharmony_ci    {
25862306a36Sopenharmony_ci        "id": "a7bd",
25962306a36Sopenharmony_ci        "name": "Add nat action on ingress with DEFAULT IP address",
26062306a36Sopenharmony_ci        "category": [
26162306a36Sopenharmony_ci            "actions",
26262306a36Sopenharmony_ci            "nat"
26362306a36Sopenharmony_ci        ],
26462306a36Sopenharmony_ci        "setup": [
26562306a36Sopenharmony_ci            [
26662306a36Sopenharmony_ci                "$TC actions flush action nat",
26762306a36Sopenharmony_ci                0,
26862306a36Sopenharmony_ci                1,
26962306a36Sopenharmony_ci                255
27062306a36Sopenharmony_ci            ]
27162306a36Sopenharmony_ci        ],
27262306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat ingress default 10.10.10.1 index 12",
27362306a36Sopenharmony_ci        "expExitCode": "0",
27462306a36Sopenharmony_ci        "verifyCmd": "$TC actions get action nat index 12",
27562306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat ingress 0.0.0.0/32 10.10.10.1 pass.*index 12 ref",
27662306a36Sopenharmony_ci        "matchCount": "1",
27762306a36Sopenharmony_ci        "teardown": [
27862306a36Sopenharmony_ci            "$TC actions flush action nat"
27962306a36Sopenharmony_ci        ]
28062306a36Sopenharmony_ci    },
28162306a36Sopenharmony_ci    {
28262306a36Sopenharmony_ci        "id": "ee1e",
28362306a36Sopenharmony_ci        "name": "Add nat action on ingress with ANY IP address",
28462306a36Sopenharmony_ci        "category": [
28562306a36Sopenharmony_ci            "actions",
28662306a36Sopenharmony_ci            "nat"
28762306a36Sopenharmony_ci        ],
28862306a36Sopenharmony_ci        "setup": [
28962306a36Sopenharmony_ci            [
29062306a36Sopenharmony_ci                "$TC actions flush action nat",
29162306a36Sopenharmony_ci                0,
29262306a36Sopenharmony_ci                1,
29362306a36Sopenharmony_ci                255
29462306a36Sopenharmony_ci            ]
29562306a36Sopenharmony_ci        ],
29662306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat ingress any 10.10.10.1 index 12",
29762306a36Sopenharmony_ci        "expExitCode": "0",
29862306a36Sopenharmony_ci        "verifyCmd": "$TC actions get action nat index 12",
29962306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat ingress 0.0.0.0/32 10.10.10.1 pass.*index 12 ref",
30062306a36Sopenharmony_ci        "matchCount": "1",
30162306a36Sopenharmony_ci        "teardown": [
30262306a36Sopenharmony_ci            "$TC actions flush action nat"
30362306a36Sopenharmony_ci        ]
30462306a36Sopenharmony_ci    },
30562306a36Sopenharmony_ci    {
30662306a36Sopenharmony_ci        "id": "1de8",
30762306a36Sopenharmony_ci        "name": "Add nat action on ingress with ALL IP address",
30862306a36Sopenharmony_ci        "category": [
30962306a36Sopenharmony_ci            "actions",
31062306a36Sopenharmony_ci            "nat"
31162306a36Sopenharmony_ci        ],
31262306a36Sopenharmony_ci        "setup": [
31362306a36Sopenharmony_ci            [
31462306a36Sopenharmony_ci                "$TC actions flush action nat",
31562306a36Sopenharmony_ci                0,
31662306a36Sopenharmony_ci                1,
31762306a36Sopenharmony_ci                255
31862306a36Sopenharmony_ci            ]
31962306a36Sopenharmony_ci        ],
32062306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat ingress all 10.10.10.1 index 12",
32162306a36Sopenharmony_ci        "expExitCode": "0",
32262306a36Sopenharmony_ci        "verifyCmd": "$TC actions get action nat index 12",
32362306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat ingress 0.0.0.0/32 10.10.10.1 pass.*index 12 ref",
32462306a36Sopenharmony_ci        "matchCount": "1",
32562306a36Sopenharmony_ci        "teardown": [
32662306a36Sopenharmony_ci            "$TC actions flush action nat"
32762306a36Sopenharmony_ci        ]
32862306a36Sopenharmony_ci    },
32962306a36Sopenharmony_ci    {
33062306a36Sopenharmony_ci        "id": "8dba",
33162306a36Sopenharmony_ci        "name": "Add nat action on egress with default control action",
33262306a36Sopenharmony_ci        "category": [
33362306a36Sopenharmony_ci            "actions",
33462306a36Sopenharmony_ci            "nat"
33562306a36Sopenharmony_ci        ],
33662306a36Sopenharmony_ci        "setup": [
33762306a36Sopenharmony_ci            [
33862306a36Sopenharmony_ci                "$TC actions flush action nat",
33962306a36Sopenharmony_ci                0,
34062306a36Sopenharmony_ci                1,
34162306a36Sopenharmony_ci                255
34262306a36Sopenharmony_ci            ]
34362306a36Sopenharmony_ci        ],
34462306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat egress 10.10.10.1 20.20.20.1",
34562306a36Sopenharmony_ci        "expExitCode": "0",
34662306a36Sopenharmony_ci        "verifyCmd": "$TC actions ls action nat",
34762306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat egress 10.10.10.1/32 20.20.20.1 pass",
34862306a36Sopenharmony_ci        "matchCount": "1",
34962306a36Sopenharmony_ci        "teardown": [
35062306a36Sopenharmony_ci            "$TC actions flush action nat"
35162306a36Sopenharmony_ci        ]
35262306a36Sopenharmony_ci    },
35362306a36Sopenharmony_ci    {
35462306a36Sopenharmony_ci        "id": "19a7",
35562306a36Sopenharmony_ci        "name": "Add nat action on egress with pipe control action",
35662306a36Sopenharmony_ci        "category": [
35762306a36Sopenharmony_ci            "actions",
35862306a36Sopenharmony_ci            "nat"
35962306a36Sopenharmony_ci        ],
36062306a36Sopenharmony_ci        "setup": [
36162306a36Sopenharmony_ci            [
36262306a36Sopenharmony_ci                "$TC actions flush action nat",
36362306a36Sopenharmony_ci                0,
36462306a36Sopenharmony_ci                1,
36562306a36Sopenharmony_ci                255
36662306a36Sopenharmony_ci            ]
36762306a36Sopenharmony_ci        ],
36862306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat egress 10.10.10.1 20.20.20.1 pipe",
36962306a36Sopenharmony_ci        "expExitCode": "0",
37062306a36Sopenharmony_ci        "verifyCmd": "$TC actions ls action nat",
37162306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat egress 10.10.10.1/32 20.20.20.1 pipe",
37262306a36Sopenharmony_ci        "matchCount": "1",
37362306a36Sopenharmony_ci        "teardown": [
37462306a36Sopenharmony_ci            "$TC actions flush action nat"
37562306a36Sopenharmony_ci        ]
37662306a36Sopenharmony_ci    },
37762306a36Sopenharmony_ci    {
37862306a36Sopenharmony_ci        "id": "f1d9",
37962306a36Sopenharmony_ci        "name": "Add nat action on egress with continue control action",
38062306a36Sopenharmony_ci        "category": [
38162306a36Sopenharmony_ci            "actions",
38262306a36Sopenharmony_ci            "nat"
38362306a36Sopenharmony_ci        ],
38462306a36Sopenharmony_ci        "setup": [
38562306a36Sopenharmony_ci            [
38662306a36Sopenharmony_ci                "$TC actions flush action nat",
38762306a36Sopenharmony_ci                0,
38862306a36Sopenharmony_ci                1,
38962306a36Sopenharmony_ci                255
39062306a36Sopenharmony_ci            ]
39162306a36Sopenharmony_ci        ],
39262306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat egress 10.10.10.1 20.20.20.1 continue",
39362306a36Sopenharmony_ci        "expExitCode": "0",
39462306a36Sopenharmony_ci        "verifyCmd": "$TC actions ls action nat",
39562306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat egress 10.10.10.1/32 20.20.20.1 continue",
39662306a36Sopenharmony_ci        "matchCount": "1",
39762306a36Sopenharmony_ci        "teardown": [
39862306a36Sopenharmony_ci            "$TC actions flush action nat"
39962306a36Sopenharmony_ci        ]
40062306a36Sopenharmony_ci    },
40162306a36Sopenharmony_ci    {
40262306a36Sopenharmony_ci        "id": "6d4a",
40362306a36Sopenharmony_ci        "name": "Add nat action on egress with reclassify control action",
40462306a36Sopenharmony_ci        "category": [
40562306a36Sopenharmony_ci            "actions",
40662306a36Sopenharmony_ci            "nat"
40762306a36Sopenharmony_ci        ],
40862306a36Sopenharmony_ci        "setup": [
40962306a36Sopenharmony_ci            [
41062306a36Sopenharmony_ci                "$TC actions flush action nat",
41162306a36Sopenharmony_ci                0,
41262306a36Sopenharmony_ci                1,
41362306a36Sopenharmony_ci                255
41462306a36Sopenharmony_ci            ]
41562306a36Sopenharmony_ci        ],
41662306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat egress 10.10.10.1 20.20.20.1 reclassify",
41762306a36Sopenharmony_ci        "expExitCode": "0",
41862306a36Sopenharmony_ci        "verifyCmd": "$TC actions ls action nat",
41962306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat egress 10.10.10.1/32 20.20.20.1 reclassify",
42062306a36Sopenharmony_ci        "matchCount": "1",
42162306a36Sopenharmony_ci        "teardown": [
42262306a36Sopenharmony_ci            "$TC actions flush action nat"
42362306a36Sopenharmony_ci        ]
42462306a36Sopenharmony_ci    },
42562306a36Sopenharmony_ci    {
42662306a36Sopenharmony_ci        "id": "b313",
42762306a36Sopenharmony_ci        "name": "Add nat action on egress with jump control action",
42862306a36Sopenharmony_ci        "category": [
42962306a36Sopenharmony_ci            "actions",
43062306a36Sopenharmony_ci            "nat"
43162306a36Sopenharmony_ci        ],
43262306a36Sopenharmony_ci        "setup": [
43362306a36Sopenharmony_ci            [
43462306a36Sopenharmony_ci                "$TC actions flush action nat",
43562306a36Sopenharmony_ci                0,
43662306a36Sopenharmony_ci                1,
43762306a36Sopenharmony_ci                255
43862306a36Sopenharmony_ci            ]
43962306a36Sopenharmony_ci        ],
44062306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat egress 10.10.10.1 20.20.20.1 jump 777",
44162306a36Sopenharmony_ci        "expExitCode": "0",
44262306a36Sopenharmony_ci        "verifyCmd": "$TC actions ls action nat",
44362306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat egress 10.10.10.1/32 20.20.20.1 jump 777",
44462306a36Sopenharmony_ci        "matchCount": "1",
44562306a36Sopenharmony_ci        "teardown": [
44662306a36Sopenharmony_ci            "$TC actions flush action nat"
44762306a36Sopenharmony_ci        ]
44862306a36Sopenharmony_ci    },
44962306a36Sopenharmony_ci    {
45062306a36Sopenharmony_ci        "id": "d9fc",
45162306a36Sopenharmony_ci        "name": "Add nat action on egress with drop control action",
45262306a36Sopenharmony_ci        "category": [
45362306a36Sopenharmony_ci            "actions",
45462306a36Sopenharmony_ci            "nat"
45562306a36Sopenharmony_ci        ],
45662306a36Sopenharmony_ci        "setup": [
45762306a36Sopenharmony_ci            [
45862306a36Sopenharmony_ci                "$TC actions flush action nat",
45962306a36Sopenharmony_ci                0,
46062306a36Sopenharmony_ci                1,
46162306a36Sopenharmony_ci                255
46262306a36Sopenharmony_ci            ]
46362306a36Sopenharmony_ci        ],
46462306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat egress 10.10.10.1 20.20.20.1 drop",
46562306a36Sopenharmony_ci        "expExitCode": "0",
46662306a36Sopenharmony_ci        "verifyCmd": "$TC actions ls action nat",
46762306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat egress 10.10.10.1/32 20.20.20.1 drop",
46862306a36Sopenharmony_ci        "matchCount": "1",
46962306a36Sopenharmony_ci        "teardown": [
47062306a36Sopenharmony_ci            "$TC actions flush action nat"
47162306a36Sopenharmony_ci        ]
47262306a36Sopenharmony_ci    },
47362306a36Sopenharmony_ci    {
47462306a36Sopenharmony_ci        "id": "a895",
47562306a36Sopenharmony_ci        "name": "Add nat action on egress with DEFAULT IP address",
47662306a36Sopenharmony_ci        "category": [
47762306a36Sopenharmony_ci            "actions",
47862306a36Sopenharmony_ci            "nat"
47962306a36Sopenharmony_ci        ],
48062306a36Sopenharmony_ci        "setup": [
48162306a36Sopenharmony_ci            [
48262306a36Sopenharmony_ci                "$TC actions flush action nat",
48362306a36Sopenharmony_ci                0,
48462306a36Sopenharmony_ci                1,
48562306a36Sopenharmony_ci                255
48662306a36Sopenharmony_ci            ]
48762306a36Sopenharmony_ci        ],
48862306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat egress default 20.20.20.1 pipe index 10",
48962306a36Sopenharmony_ci        "expExitCode": "0",
49062306a36Sopenharmony_ci        "verifyCmd": "$TC actions get action nat index 10",
49162306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat egress 0.0.0.0/32 20.20.20.1 pipe.*index 10 ref",
49262306a36Sopenharmony_ci        "matchCount": "1",
49362306a36Sopenharmony_ci        "teardown": [
49462306a36Sopenharmony_ci            "$TC actions flush action nat"
49562306a36Sopenharmony_ci        ]
49662306a36Sopenharmony_ci    },
49762306a36Sopenharmony_ci    {
49862306a36Sopenharmony_ci        "id": "2572",
49962306a36Sopenharmony_ci        "name": "Add nat action on egress with ANY IP address",
50062306a36Sopenharmony_ci        "category": [
50162306a36Sopenharmony_ci            "actions",
50262306a36Sopenharmony_ci            "nat"
50362306a36Sopenharmony_ci        ],
50462306a36Sopenharmony_ci        "setup": [
50562306a36Sopenharmony_ci            [
50662306a36Sopenharmony_ci                "$TC actions flush action nat",
50762306a36Sopenharmony_ci                0,
50862306a36Sopenharmony_ci                1,
50962306a36Sopenharmony_ci                255
51062306a36Sopenharmony_ci            ]
51162306a36Sopenharmony_ci        ],
51262306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat egress any 20.20.20.1 pipe index 10",
51362306a36Sopenharmony_ci        "expExitCode": "0",
51462306a36Sopenharmony_ci        "verifyCmd": "$TC actions get action nat index 10",
51562306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat egress 0.0.0.0/32 20.20.20.1 pipe.*index 10 ref",
51662306a36Sopenharmony_ci        "matchCount": "1",
51762306a36Sopenharmony_ci        "teardown": [
51862306a36Sopenharmony_ci            "$TC actions flush action nat"
51962306a36Sopenharmony_ci        ]
52062306a36Sopenharmony_ci    },
52162306a36Sopenharmony_ci    {
52262306a36Sopenharmony_ci        "id": "37f3",
52362306a36Sopenharmony_ci        "name": "Add nat action on egress with ALL IP address",
52462306a36Sopenharmony_ci        "category": [
52562306a36Sopenharmony_ci            "actions",
52662306a36Sopenharmony_ci            "nat"
52762306a36Sopenharmony_ci        ],
52862306a36Sopenharmony_ci        "setup": [
52962306a36Sopenharmony_ci            [
53062306a36Sopenharmony_ci                "$TC actions flush action nat",
53162306a36Sopenharmony_ci                0,
53262306a36Sopenharmony_ci                1,
53362306a36Sopenharmony_ci                255
53462306a36Sopenharmony_ci            ]
53562306a36Sopenharmony_ci        ],
53662306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat egress all 20.20.20.1 pipe index 10",
53762306a36Sopenharmony_ci        "expExitCode": "0",
53862306a36Sopenharmony_ci        "verifyCmd": "$TC actions get action nat index 10",
53962306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat egress 0.0.0.0/32 20.20.20.1 pipe.*index 10 ref",
54062306a36Sopenharmony_ci        "matchCount": "1",
54162306a36Sopenharmony_ci        "teardown": [
54262306a36Sopenharmony_ci            "$TC actions flush action nat"
54362306a36Sopenharmony_ci        ]
54462306a36Sopenharmony_ci    },
54562306a36Sopenharmony_ci    {
54662306a36Sopenharmony_ci        "id": "6054",
54762306a36Sopenharmony_ci        "name": "Add nat action on egress with cookie",
54862306a36Sopenharmony_ci        "category": [
54962306a36Sopenharmony_ci            "actions",
55062306a36Sopenharmony_ci            "nat"
55162306a36Sopenharmony_ci        ],
55262306a36Sopenharmony_ci        "setup": [
55362306a36Sopenharmony_ci            [
55462306a36Sopenharmony_ci                "$TC actions flush action nat",
55562306a36Sopenharmony_ci                0,
55662306a36Sopenharmony_ci                1,
55762306a36Sopenharmony_ci                255
55862306a36Sopenharmony_ci            ]
55962306a36Sopenharmony_ci        ],
56062306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat egress all 20.20.20.1 pipe index 10 cookie aa1bc2d3eeff112233445566778800a1",
56162306a36Sopenharmony_ci        "expExitCode": "0",
56262306a36Sopenharmony_ci        "verifyCmd": "$TC actions get action nat index 10",
56362306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat egress 0.0.0.0/32 20.20.20.1 pipe.*index 10 ref.*cookie aa1bc2d3eeff112233445566778800a1",
56462306a36Sopenharmony_ci        "matchCount": "1",
56562306a36Sopenharmony_ci        "teardown": [
56662306a36Sopenharmony_ci            "$TC actions flush action nat"
56762306a36Sopenharmony_ci        ]
56862306a36Sopenharmony_ci    },
56962306a36Sopenharmony_ci    {
57062306a36Sopenharmony_ci        "id": "79d6",
57162306a36Sopenharmony_ci        "name": "Add nat action on ingress with cookie",
57262306a36Sopenharmony_ci        "category": [
57362306a36Sopenharmony_ci            "actions",
57462306a36Sopenharmony_ci            "nat"
57562306a36Sopenharmony_ci        ],
57662306a36Sopenharmony_ci        "setup": [
57762306a36Sopenharmony_ci            [
57862306a36Sopenharmony_ci                "$TC actions flush action nat",
57962306a36Sopenharmony_ci                0,
58062306a36Sopenharmony_ci                1,
58162306a36Sopenharmony_ci                255
58262306a36Sopenharmony_ci            ]
58362306a36Sopenharmony_ci        ],
58462306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions add action nat ingress 192.168.1.1 10.10.10.1 reclassify index 1 cookie 112233445566778899aabbccddeeff11",
58562306a36Sopenharmony_ci        "expExitCode": "0",
58662306a36Sopenharmony_ci        "verifyCmd": "$TC actions get action nat index 1",
58762306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat ingress 192.168.1.1/32 10.10.10.1 reclassify.*index 1 ref.*cookie 112233445566778899aabbccddeeff11",
58862306a36Sopenharmony_ci        "matchCount": "1",
58962306a36Sopenharmony_ci        "teardown": [
59062306a36Sopenharmony_ci            "$TC actions flush action nat"
59162306a36Sopenharmony_ci        ]
59262306a36Sopenharmony_ci    },
59362306a36Sopenharmony_ci    {
59462306a36Sopenharmony_ci        "id": "4b12",
59562306a36Sopenharmony_ci        "name": "Replace nat action with invalid goto chain control",
59662306a36Sopenharmony_ci        "category": [
59762306a36Sopenharmony_ci            "actions",
59862306a36Sopenharmony_ci            "nat"
59962306a36Sopenharmony_ci        ],
60062306a36Sopenharmony_ci        "setup": [
60162306a36Sopenharmony_ci            [
60262306a36Sopenharmony_ci                "$TC actions flush action nat",
60362306a36Sopenharmony_ci                0,
60462306a36Sopenharmony_ci                1,
60562306a36Sopenharmony_ci                255
60662306a36Sopenharmony_ci            ],
60762306a36Sopenharmony_ci            "$TC actions add action nat ingress 1.18.1.1 1.18.2.2 drop index 90"
60862306a36Sopenharmony_ci        ],
60962306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions replace action nat ingress 1.18.1.1 1.18.2.2 goto chain 42 index 90 cookie c1a0c1a0",
61062306a36Sopenharmony_ci        "expExitCode": "255",
61162306a36Sopenharmony_ci        "verifyCmd": "$TC actions get action nat index 90",
61262306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat ingress 1.18.1.1/32 1.18.2.2 drop.*index 90 ref",
61362306a36Sopenharmony_ci        "matchCount": "1",
61462306a36Sopenharmony_ci        "teardown": [
61562306a36Sopenharmony_ci            "$TC actions flush action nat"
61662306a36Sopenharmony_ci        ]
61762306a36Sopenharmony_ci    },
61862306a36Sopenharmony_ci    {
61962306a36Sopenharmony_ci        "id": "b811",
62062306a36Sopenharmony_ci        "name": "Delete nat action with valid index",
62162306a36Sopenharmony_ci        "category": [
62262306a36Sopenharmony_ci            "actions",
62362306a36Sopenharmony_ci            "nat"
62462306a36Sopenharmony_ci        ],
62562306a36Sopenharmony_ci        "setup": [
62662306a36Sopenharmony_ci            [
62762306a36Sopenharmony_ci                "$TC actions flush action nat",
62862306a36Sopenharmony_ci                0,
62962306a36Sopenharmony_ci                1,
63062306a36Sopenharmony_ci                255
63162306a36Sopenharmony_ci            ],
63262306a36Sopenharmony_ci            "$TC actions add action nat ingress 1.1.1.1 2.2.2.2 drop index 20"
63362306a36Sopenharmony_ci        ],
63462306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions del action nat index 20",
63562306a36Sopenharmony_ci        "expExitCode": "0",
63662306a36Sopenharmony_ci        "verifyCmd": "$TC actions ls action nat index 20",
63762306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat ingress 1.1.1.1/32 2.2.2.2 drop.*index 20 ref",
63862306a36Sopenharmony_ci        "matchCount": "0",
63962306a36Sopenharmony_ci        "teardown": [
64062306a36Sopenharmony_ci            "$TC actions flush action nat"
64162306a36Sopenharmony_ci        ]
64262306a36Sopenharmony_ci    },
64362306a36Sopenharmony_ci    {
64462306a36Sopenharmony_ci        "id": "a521",
64562306a36Sopenharmony_ci        "name": "Delete nat action with invalid index",
64662306a36Sopenharmony_ci        "category": [
64762306a36Sopenharmony_ci            "actions",
64862306a36Sopenharmony_ci            "nat"
64962306a36Sopenharmony_ci        ],
65062306a36Sopenharmony_ci        "setup": [
65162306a36Sopenharmony_ci            [
65262306a36Sopenharmony_ci                "$TC actions flush action nat",
65362306a36Sopenharmony_ci                0,
65462306a36Sopenharmony_ci                1,
65562306a36Sopenharmony_ci                255
65662306a36Sopenharmony_ci            ],
65762306a36Sopenharmony_ci            "$TC actions add action nat ingress 1.1.1.1 2.2.2.2 drop index 20"
65862306a36Sopenharmony_ci        ],
65962306a36Sopenharmony_ci        "cmdUnderTest": "$TC actions del action nat index 10",
66062306a36Sopenharmony_ci        "expExitCode": "255",
66162306a36Sopenharmony_ci        "verifyCmd": "$TC actions ls action nat index 20",
66262306a36Sopenharmony_ci        "matchPattern": "action order [0-9]+:  nat ingress 1.1.1.1/32 2.2.2.2 drop.*index 20 ref",
66362306a36Sopenharmony_ci        "matchCount": "1",
66462306a36Sopenharmony_ci        "teardown": [
66562306a36Sopenharmony_ci            "$TC actions flush action nat"
66662306a36Sopenharmony_ci        ]
66762306a36Sopenharmony_ci    }
66862306a36Sopenharmony_ci]
669