1736ac814SKeara Leibovitz[ 2736ac814SKeara Leibovitz { 3736ac814SKeara Leibovitz "id": "7565", 4736ac814SKeara Leibovitz "name": "Add nat action on ingress with default control action", 5736ac814SKeara Leibovitz "category": [ 6736ac814SKeara Leibovitz "actions", 7736ac814SKeara Leibovitz "nat" 8736ac814SKeara Leibovitz ], 9*d227cc0bSPedro Tammela "plugins": { 10*d227cc0bSPedro Tammela "requires": "nsPlugin" 11*d227cc0bSPedro Tammela }, 12736ac814SKeara Leibovitz "setup": [ 13736ac814SKeara Leibovitz [ 14736ac814SKeara Leibovitz "$TC actions flush action nat", 15736ac814SKeara Leibovitz 0, 16736ac814SKeara Leibovitz 1, 17736ac814SKeara Leibovitz 255 18736ac814SKeara Leibovitz ] 19736ac814SKeara Leibovitz ], 20736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat ingress 192.168.1.1 200.200.200.1", 21736ac814SKeara Leibovitz "expExitCode": "0", 22736ac814SKeara Leibovitz "verifyCmd": "$TC actions ls action nat", 23736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat ingress 192.168.1.1/32 200.200.200.1 pass", 24736ac814SKeara Leibovitz "matchCount": "1", 25736ac814SKeara Leibovitz "teardown": [ 26736ac814SKeara Leibovitz "$TC actions flush action nat" 27736ac814SKeara Leibovitz ] 28736ac814SKeara Leibovitz }, 29736ac814SKeara Leibovitz { 30736ac814SKeara Leibovitz "id": "fd79", 31736ac814SKeara Leibovitz "name": "Add nat action on ingress with pipe control action", 32736ac814SKeara Leibovitz "category": [ 33736ac814SKeara Leibovitz "actions", 34736ac814SKeara Leibovitz "nat" 35736ac814SKeara Leibovitz ], 36*d227cc0bSPedro Tammela "plugins": { 37*d227cc0bSPedro Tammela "requires": "nsPlugin" 38*d227cc0bSPedro Tammela }, 39736ac814SKeara Leibovitz "setup": [ 40736ac814SKeara Leibovitz [ 41736ac814SKeara Leibovitz "$TC actions flush action nat", 42736ac814SKeara Leibovitz 0, 43736ac814SKeara Leibovitz 1, 44736ac814SKeara Leibovitz 255 45736ac814SKeara Leibovitz ] 46736ac814SKeara Leibovitz ], 47736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat ingress 1.1.1.1 2.2.2.1 pipe index 77", 48736ac814SKeara Leibovitz "expExitCode": "0", 49736ac814SKeara Leibovitz "verifyCmd": "$TC actions get action nat index 77", 50736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat ingress 1.1.1.1/32 2.2.2.1 pipe.*index 77 ref", 51736ac814SKeara Leibovitz "matchCount": "1", 52736ac814SKeara Leibovitz "teardown": [ 53736ac814SKeara Leibovitz "$TC actions flush action nat" 54736ac814SKeara Leibovitz ] 55736ac814SKeara Leibovitz }, 56736ac814SKeara Leibovitz { 57736ac814SKeara Leibovitz "id": "eab9", 58736ac814SKeara Leibovitz "name": "Add nat action on ingress with continue control action", 59736ac814SKeara Leibovitz "category": [ 60736ac814SKeara Leibovitz "actions", 61736ac814SKeara Leibovitz "nat" 62736ac814SKeara Leibovitz ], 63*d227cc0bSPedro Tammela "plugins": { 64*d227cc0bSPedro Tammela "requires": "nsPlugin" 65*d227cc0bSPedro Tammela }, 66736ac814SKeara Leibovitz "setup": [ 67736ac814SKeara Leibovitz [ 68736ac814SKeara Leibovitz "$TC actions flush action nat", 69736ac814SKeara Leibovitz 0, 70736ac814SKeara Leibovitz 1, 71736ac814SKeara Leibovitz 255 72736ac814SKeara Leibovitz ] 73736ac814SKeara Leibovitz ], 74736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat ingress 192.168.10.10 192.168.20.20 continue index 1000", 75736ac814SKeara Leibovitz "expExitCode": "0", 76736ac814SKeara Leibovitz "verifyCmd": "$TC actions get action nat index 1000", 77736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat ingress 192.168.10.10/32 192.168.20.20 continue.*index 1000 ref", 78736ac814SKeara Leibovitz "matchCount": "1", 79736ac814SKeara Leibovitz "teardown": [ 80736ac814SKeara Leibovitz "$TC actions flush action nat" 81736ac814SKeara Leibovitz ] 82736ac814SKeara Leibovitz }, 83736ac814SKeara Leibovitz { 84736ac814SKeara Leibovitz "id": "c53a", 85736ac814SKeara Leibovitz "name": "Add nat action on ingress with reclassify control action", 86736ac814SKeara Leibovitz "category": [ 87736ac814SKeara Leibovitz "actions", 88736ac814SKeara Leibovitz "nat" 89736ac814SKeara Leibovitz ], 90*d227cc0bSPedro Tammela "plugins": { 91*d227cc0bSPedro Tammela "requires": "nsPlugin" 92*d227cc0bSPedro Tammela }, 93736ac814SKeara Leibovitz "setup": [ 94736ac814SKeara Leibovitz [ 95736ac814SKeara Leibovitz "$TC actions flush action nat", 96736ac814SKeara Leibovitz 0, 97736ac814SKeara Leibovitz 1, 98736ac814SKeara Leibovitz 255 99736ac814SKeara Leibovitz ] 100736ac814SKeara Leibovitz ], 101736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat ingress 192.168.10.10 192.168.20.20 reclassify index 1000", 102736ac814SKeara Leibovitz "expExitCode": "0", 103736ac814SKeara Leibovitz "verifyCmd": "$TC actions get action nat index 1000", 104736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat ingress 192.168.10.10/32 192.168.20.20 reclassify.*index 1000 ref", 105736ac814SKeara Leibovitz "matchCount": "1", 106736ac814SKeara Leibovitz "teardown": [ 107736ac814SKeara Leibovitz "$TC actions flush action nat" 108736ac814SKeara Leibovitz ] 109736ac814SKeara Leibovitz }, 110736ac814SKeara Leibovitz { 111736ac814SKeara Leibovitz "id": "76c9", 112736ac814SKeara Leibovitz "name": "Add nat action on ingress with jump control action", 113736ac814SKeara Leibovitz "category": [ 114736ac814SKeara Leibovitz "actions", 115736ac814SKeara Leibovitz "nat" 116736ac814SKeara Leibovitz ], 117*d227cc0bSPedro Tammela "plugins": { 118*d227cc0bSPedro Tammela "requires": "nsPlugin" 119*d227cc0bSPedro Tammela }, 120736ac814SKeara Leibovitz "setup": [ 121736ac814SKeara Leibovitz [ 122736ac814SKeara Leibovitz "$TC actions flush action nat", 123736ac814SKeara Leibovitz 0, 124736ac814SKeara Leibovitz 1, 125736ac814SKeara Leibovitz 255 126736ac814SKeara Leibovitz ] 127736ac814SKeara Leibovitz ], 128736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat ingress 12.18.10.10 12.18.20.20 jump 10 index 22", 129736ac814SKeara Leibovitz "expExitCode": "0", 130736ac814SKeara Leibovitz "verifyCmd": "$TC actions get action nat index 22", 131736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat ingress 12.18.10.10/32 12.18.20.20 jump 10.*index 22 ref", 132736ac814SKeara Leibovitz "matchCount": "1", 133736ac814SKeara Leibovitz "teardown": [ 134736ac814SKeara Leibovitz "$TC actions flush action nat" 135736ac814SKeara Leibovitz ] 136736ac814SKeara Leibovitz }, 137736ac814SKeara Leibovitz { 138736ac814SKeara Leibovitz "id": "24c6", 139736ac814SKeara Leibovitz "name": "Add nat action on ingress with drop control action", 140736ac814SKeara Leibovitz "category": [ 141736ac814SKeara Leibovitz "actions", 142736ac814SKeara Leibovitz "nat" 143736ac814SKeara Leibovitz ], 144*d227cc0bSPedro Tammela "plugins": { 145*d227cc0bSPedro Tammela "requires": "nsPlugin" 146*d227cc0bSPedro Tammela }, 147736ac814SKeara Leibovitz "setup": [ 148736ac814SKeara Leibovitz [ 149736ac814SKeara Leibovitz "$TC actions flush action nat", 150736ac814SKeara Leibovitz 0, 151736ac814SKeara Leibovitz 1, 152736ac814SKeara Leibovitz 255 153736ac814SKeara Leibovitz ] 154736ac814SKeara Leibovitz ], 155736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat ingress 1.18.1.1 1.18.2.2 drop index 722", 156736ac814SKeara Leibovitz "expExitCode": "0", 157736ac814SKeara Leibovitz "verifyCmd": "$TC actions get action nat index 722", 158736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat ingress 1.18.1.1/32 1.18.2.2 drop.*index 722 ref", 159736ac814SKeara Leibovitz "matchCount": "1", 160736ac814SKeara Leibovitz "teardown": [ 161736ac814SKeara Leibovitz "$TC actions flush action nat" 162736ac814SKeara Leibovitz ] 163736ac814SKeara Leibovitz }, 164736ac814SKeara Leibovitz { 165736ac814SKeara Leibovitz "id": "2120", 166736ac814SKeara Leibovitz "name": "Add nat action on ingress with maximum index value", 167736ac814SKeara Leibovitz "category": [ 168736ac814SKeara Leibovitz "actions", 169736ac814SKeara Leibovitz "nat" 170736ac814SKeara Leibovitz ], 171*d227cc0bSPedro Tammela "plugins": { 172*d227cc0bSPedro Tammela "requires": "nsPlugin" 173*d227cc0bSPedro Tammela }, 174736ac814SKeara Leibovitz "setup": [ 175736ac814SKeara Leibovitz [ 176736ac814SKeara Leibovitz "$TC actions flush action nat", 177736ac814SKeara Leibovitz 0, 178736ac814SKeara Leibovitz 1, 179736ac814SKeara Leibovitz 255 180736ac814SKeara Leibovitz ] 181736ac814SKeara Leibovitz ], 182736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat ingress 1.18.1.1 1.18.2.2 index 4294967295", 183736ac814SKeara Leibovitz "expExitCode": "0", 184736ac814SKeara Leibovitz "verifyCmd": "$TC actions get action nat index 4294967295", 185736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat ingress 1.18.1.1/32 1.18.2.2 pass.*index 4294967295 ref", 186736ac814SKeara Leibovitz "matchCount": "1", 187736ac814SKeara Leibovitz "teardown": [ 188736ac814SKeara Leibovitz "$TC actions flush action nat" 189736ac814SKeara Leibovitz ] 190736ac814SKeara Leibovitz }, 191736ac814SKeara Leibovitz { 192736ac814SKeara Leibovitz "id": "3e9d", 193736ac814SKeara Leibovitz "name": "Add nat action on ingress with invalid index value", 194736ac814SKeara Leibovitz "category": [ 195736ac814SKeara Leibovitz "actions", 196736ac814SKeara Leibovitz "nat" 197736ac814SKeara Leibovitz ], 198*d227cc0bSPedro Tammela "plugins": { 199*d227cc0bSPedro Tammela "requires": "nsPlugin" 200*d227cc0bSPedro Tammela }, 201736ac814SKeara Leibovitz "setup": [ 202736ac814SKeara Leibovitz [ 203736ac814SKeara Leibovitz "$TC actions flush action nat", 204736ac814SKeara Leibovitz 0, 205736ac814SKeara Leibovitz 1, 206736ac814SKeara Leibovitz 255 207736ac814SKeara Leibovitz ] 208736ac814SKeara Leibovitz ], 209736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat ingress 1.18.1.1 1.18.2.2 index 4294967295555", 210736ac814SKeara Leibovitz "expExitCode": "255", 211736ac814SKeara Leibovitz "verifyCmd": "$TC actions get action nat index 4294967295555", 212736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat ingress 1.18.1.1/32 1.18.2.2 pass.*index 4294967295555 ref", 213736ac814SKeara Leibovitz "matchCount": "0", 214736ac814SKeara Leibovitz "teardown": [ 215736ac814SKeara Leibovitz [ 216736ac814SKeara Leibovitz "$TC actions flush action nat", 217736ac814SKeara Leibovitz 0, 218736ac814SKeara Leibovitz 1, 219736ac814SKeara Leibovitz 255 220736ac814SKeara Leibovitz ] 221736ac814SKeara Leibovitz ] 222736ac814SKeara Leibovitz }, 223736ac814SKeara Leibovitz { 224736ac814SKeara Leibovitz "id": "f6c9", 225736ac814SKeara Leibovitz "name": "Add nat action on ingress with invalid IP address", 226736ac814SKeara Leibovitz "category": [ 227736ac814SKeara Leibovitz "actions", 228736ac814SKeara Leibovitz "nat" 229736ac814SKeara Leibovitz ], 230*d227cc0bSPedro Tammela "plugins": { 231*d227cc0bSPedro Tammela "requires": "nsPlugin" 232*d227cc0bSPedro Tammela }, 233736ac814SKeara Leibovitz "setup": [ 234736ac814SKeara Leibovitz [ 235736ac814SKeara Leibovitz "$TC actions flush action nat", 236736ac814SKeara Leibovitz 0, 237736ac814SKeara Leibovitz 1, 238736ac814SKeara Leibovitz 255 239736ac814SKeara Leibovitz ] 240736ac814SKeara Leibovitz ], 241736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat ingress 1.1.1.1 1.1888.2.2 index 7", 242736ac814SKeara Leibovitz "expExitCode": "255", 243736ac814SKeara Leibovitz "verifyCmd": "$TC actions get action nat index 7", 244736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat ingress 1.1.1.1/32 1.1888.2.2 pass.*index 7 ref", 245736ac814SKeara Leibovitz "matchCount": "0", 246736ac814SKeara Leibovitz "teardown": [ 247736ac814SKeara Leibovitz [ 248736ac814SKeara Leibovitz "$TC actions flush action nat", 249736ac814SKeara Leibovitz 0, 250736ac814SKeara Leibovitz 1, 251736ac814SKeara Leibovitz 255 252736ac814SKeara Leibovitz ] 253736ac814SKeara Leibovitz ] 254736ac814SKeara Leibovitz }, 255736ac814SKeara Leibovitz { 256736ac814SKeara Leibovitz "id": "be25", 257736ac814SKeara Leibovitz "name": "Add nat action on ingress with invalid argument", 258736ac814SKeara Leibovitz "category": [ 259736ac814SKeara Leibovitz "actions", 260736ac814SKeara Leibovitz "nat" 261736ac814SKeara Leibovitz ], 262*d227cc0bSPedro Tammela "plugins": { 263*d227cc0bSPedro Tammela "requires": "nsPlugin" 264*d227cc0bSPedro Tammela }, 265736ac814SKeara Leibovitz "setup": [ 266736ac814SKeara Leibovitz [ 267736ac814SKeara Leibovitz "$TC actions flush action nat", 268736ac814SKeara Leibovitz 0, 269736ac814SKeara Leibovitz 1, 270736ac814SKeara Leibovitz 255 271736ac814SKeara Leibovitz ] 272736ac814SKeara Leibovitz ], 273736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat ingress 1.1.1.1 1.18.2.2 another_arg index 12", 274736ac814SKeara Leibovitz "expExitCode": "255", 275736ac814SKeara Leibovitz "verifyCmd": "$TC actions get action nat index 12", 276736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat ingress 1.1.1.1/32 1.18.2.2 pass.*another_arg.*index 12 ref", 277736ac814SKeara Leibovitz "matchCount": "0", 278736ac814SKeara Leibovitz "teardown": [ 279736ac814SKeara Leibovitz [ 280736ac814SKeara Leibovitz "$TC actions flush action nat", 281736ac814SKeara Leibovitz 0, 282736ac814SKeara Leibovitz 1, 283736ac814SKeara Leibovitz 255 284736ac814SKeara Leibovitz ] 285736ac814SKeara Leibovitz ] 286736ac814SKeara Leibovitz }, 287736ac814SKeara Leibovitz { 288736ac814SKeara Leibovitz "id": "a7bd", 289736ac814SKeara Leibovitz "name": "Add nat action on ingress with DEFAULT IP address", 290736ac814SKeara Leibovitz "category": [ 291736ac814SKeara Leibovitz "actions", 292736ac814SKeara Leibovitz "nat" 293736ac814SKeara Leibovitz ], 294*d227cc0bSPedro Tammela "plugins": { 295*d227cc0bSPedro Tammela "requires": "nsPlugin" 296*d227cc0bSPedro Tammela }, 297736ac814SKeara Leibovitz "setup": [ 298736ac814SKeara Leibovitz [ 299736ac814SKeara Leibovitz "$TC actions flush action nat", 300736ac814SKeara Leibovitz 0, 301736ac814SKeara Leibovitz 1, 302736ac814SKeara Leibovitz 255 303736ac814SKeara Leibovitz ] 304736ac814SKeara Leibovitz ], 305736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat ingress default 10.10.10.1 index 12", 306736ac814SKeara Leibovitz "expExitCode": "0", 307736ac814SKeara Leibovitz "verifyCmd": "$TC actions get action nat index 12", 308736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat ingress 0.0.0.0/32 10.10.10.1 pass.*index 12 ref", 309736ac814SKeara Leibovitz "matchCount": "1", 310736ac814SKeara Leibovitz "teardown": [ 311736ac814SKeara Leibovitz "$TC actions flush action nat" 312736ac814SKeara Leibovitz ] 313736ac814SKeara Leibovitz }, 314736ac814SKeara Leibovitz { 315736ac814SKeara Leibovitz "id": "ee1e", 316736ac814SKeara Leibovitz "name": "Add nat action on ingress with ANY IP address", 317736ac814SKeara Leibovitz "category": [ 318736ac814SKeara Leibovitz "actions", 319736ac814SKeara Leibovitz "nat" 320736ac814SKeara Leibovitz ], 321*d227cc0bSPedro Tammela "plugins": { 322*d227cc0bSPedro Tammela "requires": "nsPlugin" 323*d227cc0bSPedro Tammela }, 324736ac814SKeara Leibovitz "setup": [ 325736ac814SKeara Leibovitz [ 326736ac814SKeara Leibovitz "$TC actions flush action nat", 327736ac814SKeara Leibovitz 0, 328736ac814SKeara Leibovitz 1, 329736ac814SKeara Leibovitz 255 330736ac814SKeara Leibovitz ] 331736ac814SKeara Leibovitz ], 332736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat ingress any 10.10.10.1 index 12", 333736ac814SKeara Leibovitz "expExitCode": "0", 334736ac814SKeara Leibovitz "verifyCmd": "$TC actions get action nat index 12", 335736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat ingress 0.0.0.0/32 10.10.10.1 pass.*index 12 ref", 336736ac814SKeara Leibovitz "matchCount": "1", 337736ac814SKeara Leibovitz "teardown": [ 338736ac814SKeara Leibovitz "$TC actions flush action nat" 339736ac814SKeara Leibovitz ] 340736ac814SKeara Leibovitz }, 341736ac814SKeara Leibovitz { 342736ac814SKeara Leibovitz "id": "1de8", 343736ac814SKeara Leibovitz "name": "Add nat action on ingress with ALL IP address", 344736ac814SKeara Leibovitz "category": [ 345736ac814SKeara Leibovitz "actions", 346736ac814SKeara Leibovitz "nat" 347736ac814SKeara Leibovitz ], 348*d227cc0bSPedro Tammela "plugins": { 349*d227cc0bSPedro Tammela "requires": "nsPlugin" 350*d227cc0bSPedro Tammela }, 351736ac814SKeara Leibovitz "setup": [ 352736ac814SKeara Leibovitz [ 353736ac814SKeara Leibovitz "$TC actions flush action nat", 354736ac814SKeara Leibovitz 0, 355736ac814SKeara Leibovitz 1, 356736ac814SKeara Leibovitz 255 357736ac814SKeara Leibovitz ] 358736ac814SKeara Leibovitz ], 359736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat ingress all 10.10.10.1 index 12", 360736ac814SKeara Leibovitz "expExitCode": "0", 361736ac814SKeara Leibovitz "verifyCmd": "$TC actions get action nat index 12", 362736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat ingress 0.0.0.0/32 10.10.10.1 pass.*index 12 ref", 363736ac814SKeara Leibovitz "matchCount": "1", 364736ac814SKeara Leibovitz "teardown": [ 365736ac814SKeara Leibovitz "$TC actions flush action nat" 366736ac814SKeara Leibovitz ] 367736ac814SKeara Leibovitz }, 368736ac814SKeara Leibovitz { 369736ac814SKeara Leibovitz "id": "8dba", 370736ac814SKeara Leibovitz "name": "Add nat action on egress with default control action", 371736ac814SKeara Leibovitz "category": [ 372736ac814SKeara Leibovitz "actions", 373736ac814SKeara Leibovitz "nat" 374736ac814SKeara Leibovitz ], 375*d227cc0bSPedro Tammela "plugins": { 376*d227cc0bSPedro Tammela "requires": "nsPlugin" 377*d227cc0bSPedro Tammela }, 378736ac814SKeara Leibovitz "setup": [ 379736ac814SKeara Leibovitz [ 380736ac814SKeara Leibovitz "$TC actions flush action nat", 381736ac814SKeara Leibovitz 0, 382736ac814SKeara Leibovitz 1, 383736ac814SKeara Leibovitz 255 384736ac814SKeara Leibovitz ] 385736ac814SKeara Leibovitz ], 386736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat egress 10.10.10.1 20.20.20.1", 387736ac814SKeara Leibovitz "expExitCode": "0", 388736ac814SKeara Leibovitz "verifyCmd": "$TC actions ls action nat", 389736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat egress 10.10.10.1/32 20.20.20.1 pass", 390736ac814SKeara Leibovitz "matchCount": "1", 391736ac814SKeara Leibovitz "teardown": [ 392736ac814SKeara Leibovitz "$TC actions flush action nat" 393736ac814SKeara Leibovitz ] 394736ac814SKeara Leibovitz }, 395736ac814SKeara Leibovitz { 396736ac814SKeara Leibovitz "id": "19a7", 397736ac814SKeara Leibovitz "name": "Add nat action on egress with pipe control action", 398736ac814SKeara Leibovitz "category": [ 399736ac814SKeara Leibovitz "actions", 400736ac814SKeara Leibovitz "nat" 401736ac814SKeara Leibovitz ], 402*d227cc0bSPedro Tammela "plugins": { 403*d227cc0bSPedro Tammela "requires": "nsPlugin" 404*d227cc0bSPedro Tammela }, 405736ac814SKeara Leibovitz "setup": [ 406736ac814SKeara Leibovitz [ 407736ac814SKeara Leibovitz "$TC actions flush action nat", 408736ac814SKeara Leibovitz 0, 409736ac814SKeara Leibovitz 1, 410736ac814SKeara Leibovitz 255 411736ac814SKeara Leibovitz ] 412736ac814SKeara Leibovitz ], 413736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat egress 10.10.10.1 20.20.20.1 pipe", 414736ac814SKeara Leibovitz "expExitCode": "0", 415736ac814SKeara Leibovitz "verifyCmd": "$TC actions ls action nat", 416736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat egress 10.10.10.1/32 20.20.20.1 pipe", 417736ac814SKeara Leibovitz "matchCount": "1", 418736ac814SKeara Leibovitz "teardown": [ 419736ac814SKeara Leibovitz "$TC actions flush action nat" 420736ac814SKeara Leibovitz ] 421736ac814SKeara Leibovitz }, 422736ac814SKeara Leibovitz { 423736ac814SKeara Leibovitz "id": "f1d9", 424736ac814SKeara Leibovitz "name": "Add nat action on egress with continue control action", 425736ac814SKeara Leibovitz "category": [ 426736ac814SKeara Leibovitz "actions", 427736ac814SKeara Leibovitz "nat" 428736ac814SKeara Leibovitz ], 429*d227cc0bSPedro Tammela "plugins": { 430*d227cc0bSPedro Tammela "requires": "nsPlugin" 431*d227cc0bSPedro Tammela }, 432736ac814SKeara Leibovitz "setup": [ 433736ac814SKeara Leibovitz [ 434736ac814SKeara Leibovitz "$TC actions flush action nat", 435736ac814SKeara Leibovitz 0, 436736ac814SKeara Leibovitz 1, 437736ac814SKeara Leibovitz 255 438736ac814SKeara Leibovitz ] 439736ac814SKeara Leibovitz ], 440736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat egress 10.10.10.1 20.20.20.1 continue", 441736ac814SKeara Leibovitz "expExitCode": "0", 442736ac814SKeara Leibovitz "verifyCmd": "$TC actions ls action nat", 443736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat egress 10.10.10.1/32 20.20.20.1 continue", 444736ac814SKeara Leibovitz "matchCount": "1", 445736ac814SKeara Leibovitz "teardown": [ 446736ac814SKeara Leibovitz "$TC actions flush action nat" 447736ac814SKeara Leibovitz ] 448736ac814SKeara Leibovitz }, 449736ac814SKeara Leibovitz { 450736ac814SKeara Leibovitz "id": "6d4a", 451736ac814SKeara Leibovitz "name": "Add nat action on egress with reclassify control action", 452736ac814SKeara Leibovitz "category": [ 453736ac814SKeara Leibovitz "actions", 454736ac814SKeara Leibovitz "nat" 455736ac814SKeara Leibovitz ], 456*d227cc0bSPedro Tammela "plugins": { 457*d227cc0bSPedro Tammela "requires": "nsPlugin" 458*d227cc0bSPedro Tammela }, 459736ac814SKeara Leibovitz "setup": [ 460736ac814SKeara Leibovitz [ 461736ac814SKeara Leibovitz "$TC actions flush action nat", 462736ac814SKeara Leibovitz 0, 463736ac814SKeara Leibovitz 1, 464736ac814SKeara Leibovitz 255 465736ac814SKeara Leibovitz ] 466736ac814SKeara Leibovitz ], 467736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat egress 10.10.10.1 20.20.20.1 reclassify", 468736ac814SKeara Leibovitz "expExitCode": "0", 469736ac814SKeara Leibovitz "verifyCmd": "$TC actions ls action nat", 470736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat egress 10.10.10.1/32 20.20.20.1 reclassify", 471736ac814SKeara Leibovitz "matchCount": "1", 472736ac814SKeara Leibovitz "teardown": [ 473736ac814SKeara Leibovitz "$TC actions flush action nat" 474736ac814SKeara Leibovitz ] 475736ac814SKeara Leibovitz }, 476736ac814SKeara Leibovitz { 477736ac814SKeara Leibovitz "id": "b313", 478736ac814SKeara Leibovitz "name": "Add nat action on egress with jump control action", 479736ac814SKeara Leibovitz "category": [ 480736ac814SKeara Leibovitz "actions", 481736ac814SKeara Leibovitz "nat" 482736ac814SKeara Leibovitz ], 483*d227cc0bSPedro Tammela "plugins": { 484*d227cc0bSPedro Tammela "requires": "nsPlugin" 485*d227cc0bSPedro Tammela }, 486736ac814SKeara Leibovitz "setup": [ 487736ac814SKeara Leibovitz [ 488736ac814SKeara Leibovitz "$TC actions flush action nat", 489736ac814SKeara Leibovitz 0, 490736ac814SKeara Leibovitz 1, 491736ac814SKeara Leibovitz 255 492736ac814SKeara Leibovitz ] 493736ac814SKeara Leibovitz ], 494736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat egress 10.10.10.1 20.20.20.1 jump 777", 495736ac814SKeara Leibovitz "expExitCode": "0", 496736ac814SKeara Leibovitz "verifyCmd": "$TC actions ls action nat", 497736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat egress 10.10.10.1/32 20.20.20.1 jump 777", 498736ac814SKeara Leibovitz "matchCount": "1", 499736ac814SKeara Leibovitz "teardown": [ 500736ac814SKeara Leibovitz "$TC actions flush action nat" 501736ac814SKeara Leibovitz ] 502736ac814SKeara Leibovitz }, 503736ac814SKeara Leibovitz { 504736ac814SKeara Leibovitz "id": "d9fc", 505736ac814SKeara Leibovitz "name": "Add nat action on egress with drop control action", 506736ac814SKeara Leibovitz "category": [ 507736ac814SKeara Leibovitz "actions", 508736ac814SKeara Leibovitz "nat" 509736ac814SKeara Leibovitz ], 510*d227cc0bSPedro Tammela "plugins": { 511*d227cc0bSPedro Tammela "requires": "nsPlugin" 512*d227cc0bSPedro Tammela }, 513736ac814SKeara Leibovitz "setup": [ 514736ac814SKeara Leibovitz [ 515736ac814SKeara Leibovitz "$TC actions flush action nat", 516736ac814SKeara Leibovitz 0, 517736ac814SKeara Leibovitz 1, 518736ac814SKeara Leibovitz 255 519736ac814SKeara Leibovitz ] 520736ac814SKeara Leibovitz ], 521736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat egress 10.10.10.1 20.20.20.1 drop", 522736ac814SKeara Leibovitz "expExitCode": "0", 523736ac814SKeara Leibovitz "verifyCmd": "$TC actions ls action nat", 524736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat egress 10.10.10.1/32 20.20.20.1 drop", 525736ac814SKeara Leibovitz "matchCount": "1", 526736ac814SKeara Leibovitz "teardown": [ 527736ac814SKeara Leibovitz "$TC actions flush action nat" 528736ac814SKeara Leibovitz ] 529736ac814SKeara Leibovitz }, 530736ac814SKeara Leibovitz { 531736ac814SKeara Leibovitz "id": "a895", 532736ac814SKeara Leibovitz "name": "Add nat action on egress with DEFAULT IP address", 533736ac814SKeara Leibovitz "category": [ 534736ac814SKeara Leibovitz "actions", 535736ac814SKeara Leibovitz "nat" 536736ac814SKeara Leibovitz ], 537*d227cc0bSPedro Tammela "plugins": { 538*d227cc0bSPedro Tammela "requires": "nsPlugin" 539*d227cc0bSPedro Tammela }, 540736ac814SKeara Leibovitz "setup": [ 541736ac814SKeara Leibovitz [ 542736ac814SKeara Leibovitz "$TC actions flush action nat", 543736ac814SKeara Leibovitz 0, 544736ac814SKeara Leibovitz 1, 545736ac814SKeara Leibovitz 255 546736ac814SKeara Leibovitz ] 547736ac814SKeara Leibovitz ], 548736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat egress default 20.20.20.1 pipe index 10", 549736ac814SKeara Leibovitz "expExitCode": "0", 550736ac814SKeara Leibovitz "verifyCmd": "$TC actions get action nat index 10", 551736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat egress 0.0.0.0/32 20.20.20.1 pipe.*index 10 ref", 552736ac814SKeara Leibovitz "matchCount": "1", 553736ac814SKeara Leibovitz "teardown": [ 554736ac814SKeara Leibovitz "$TC actions flush action nat" 555736ac814SKeara Leibovitz ] 556736ac814SKeara Leibovitz }, 557736ac814SKeara Leibovitz { 558736ac814SKeara Leibovitz "id": "2572", 559736ac814SKeara Leibovitz "name": "Add nat action on egress with ANY IP address", 560736ac814SKeara Leibovitz "category": [ 561736ac814SKeara Leibovitz "actions", 562736ac814SKeara Leibovitz "nat" 563736ac814SKeara Leibovitz ], 564*d227cc0bSPedro Tammela "plugins": { 565*d227cc0bSPedro Tammela "requires": "nsPlugin" 566*d227cc0bSPedro Tammela }, 567736ac814SKeara Leibovitz "setup": [ 568736ac814SKeara Leibovitz [ 569736ac814SKeara Leibovitz "$TC actions flush action nat", 570736ac814SKeara Leibovitz 0, 571736ac814SKeara Leibovitz 1, 572736ac814SKeara Leibovitz 255 573736ac814SKeara Leibovitz ] 574736ac814SKeara Leibovitz ], 575736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat egress any 20.20.20.1 pipe index 10", 576736ac814SKeara Leibovitz "expExitCode": "0", 577736ac814SKeara Leibovitz "verifyCmd": "$TC actions get action nat index 10", 578736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat egress 0.0.0.0/32 20.20.20.1 pipe.*index 10 ref", 579736ac814SKeara Leibovitz "matchCount": "1", 580736ac814SKeara Leibovitz "teardown": [ 581736ac814SKeara Leibovitz "$TC actions flush action nat" 582736ac814SKeara Leibovitz ] 583736ac814SKeara Leibovitz }, 584736ac814SKeara Leibovitz { 585736ac814SKeara Leibovitz "id": "37f3", 586736ac814SKeara Leibovitz "name": "Add nat action on egress with ALL IP address", 587736ac814SKeara Leibovitz "category": [ 588736ac814SKeara Leibovitz "actions", 589736ac814SKeara Leibovitz "nat" 590736ac814SKeara Leibovitz ], 591*d227cc0bSPedro Tammela "plugins": { 592*d227cc0bSPedro Tammela "requires": "nsPlugin" 593*d227cc0bSPedro Tammela }, 594736ac814SKeara Leibovitz "setup": [ 595736ac814SKeara Leibovitz [ 596736ac814SKeara Leibovitz "$TC actions flush action nat", 597736ac814SKeara Leibovitz 0, 598736ac814SKeara Leibovitz 1, 599736ac814SKeara Leibovitz 255 600736ac814SKeara Leibovitz ] 601736ac814SKeara Leibovitz ], 602736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat egress all 20.20.20.1 pipe index 10", 603736ac814SKeara Leibovitz "expExitCode": "0", 604736ac814SKeara Leibovitz "verifyCmd": "$TC actions get action nat index 10", 605736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat egress 0.0.0.0/32 20.20.20.1 pipe.*index 10 ref", 606736ac814SKeara Leibovitz "matchCount": "1", 607736ac814SKeara Leibovitz "teardown": [ 608736ac814SKeara Leibovitz "$TC actions flush action nat" 609736ac814SKeara Leibovitz ] 610736ac814SKeara Leibovitz }, 611736ac814SKeara Leibovitz { 612736ac814SKeara Leibovitz "id": "6054", 613736ac814SKeara Leibovitz "name": "Add nat action on egress with cookie", 614736ac814SKeara Leibovitz "category": [ 615736ac814SKeara Leibovitz "actions", 616736ac814SKeara Leibovitz "nat" 617736ac814SKeara Leibovitz ], 618*d227cc0bSPedro Tammela "plugins": { 619*d227cc0bSPedro Tammela "requires": "nsPlugin" 620*d227cc0bSPedro Tammela }, 621736ac814SKeara Leibovitz "setup": [ 622736ac814SKeara Leibovitz [ 623736ac814SKeara Leibovitz "$TC actions flush action nat", 624736ac814SKeara Leibovitz 0, 625736ac814SKeara Leibovitz 1, 626736ac814SKeara Leibovitz 255 627736ac814SKeara Leibovitz ] 628736ac814SKeara Leibovitz ], 629736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat egress all 20.20.20.1 pipe index 10 cookie aa1bc2d3eeff112233445566778800a1", 630736ac814SKeara Leibovitz "expExitCode": "0", 631736ac814SKeara Leibovitz "verifyCmd": "$TC actions get action nat index 10", 632736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat egress 0.0.0.0/32 20.20.20.1 pipe.*index 10 ref.*cookie aa1bc2d3eeff112233445566778800a1", 633736ac814SKeara Leibovitz "matchCount": "1", 634736ac814SKeara Leibovitz "teardown": [ 635736ac814SKeara Leibovitz "$TC actions flush action nat" 636736ac814SKeara Leibovitz ] 637736ac814SKeara Leibovitz }, 638736ac814SKeara Leibovitz { 639736ac814SKeara Leibovitz "id": "79d6", 640736ac814SKeara Leibovitz "name": "Add nat action on ingress with cookie", 641736ac814SKeara Leibovitz "category": [ 642736ac814SKeara Leibovitz "actions", 643736ac814SKeara Leibovitz "nat" 644736ac814SKeara Leibovitz ], 645*d227cc0bSPedro Tammela "plugins": { 646*d227cc0bSPedro Tammela "requires": "nsPlugin" 647*d227cc0bSPedro Tammela }, 648736ac814SKeara Leibovitz "setup": [ 649736ac814SKeara Leibovitz [ 650736ac814SKeara Leibovitz "$TC actions flush action nat", 651736ac814SKeara Leibovitz 0, 652736ac814SKeara Leibovitz 1, 653736ac814SKeara Leibovitz 255 654736ac814SKeara Leibovitz ] 655736ac814SKeara Leibovitz ], 656736ac814SKeara Leibovitz "cmdUnderTest": "$TC actions add action nat ingress 192.168.1.1 10.10.10.1 reclassify index 1 cookie 112233445566778899aabbccddeeff11", 657736ac814SKeara Leibovitz "expExitCode": "0", 658736ac814SKeara Leibovitz "verifyCmd": "$TC actions get action nat index 1", 659736ac814SKeara Leibovitz "matchPattern": "action order [0-9]+: nat ingress 192.168.1.1/32 10.10.10.1 reclassify.*index 1 ref.*cookie 112233445566778899aabbccddeeff11", 660736ac814SKeara Leibovitz "matchCount": "1", 661736ac814SKeara Leibovitz "teardown": [ 662736ac814SKeara Leibovitz "$TC actions flush action nat" 663736ac814SKeara Leibovitz ] 6641e45d043SDavide Caratti }, 6651e45d043SDavide Caratti { 6661e45d043SDavide Caratti "id": "4b12", 6671e45d043SDavide Caratti "name": "Replace nat action with invalid goto chain control", 6681e45d043SDavide Caratti "category": [ 6691e45d043SDavide Caratti "actions", 6701e45d043SDavide Caratti "nat" 6711e45d043SDavide Caratti ], 672*d227cc0bSPedro Tammela "plugins": { 673*d227cc0bSPedro Tammela "requires": "nsPlugin" 674*d227cc0bSPedro Tammela }, 6751e45d043SDavide Caratti "setup": [ 6761e45d043SDavide Caratti [ 6771e45d043SDavide Caratti "$TC actions flush action nat", 6781e45d043SDavide Caratti 0, 6791e45d043SDavide Caratti 1, 6801e45d043SDavide Caratti 255 6811e45d043SDavide Caratti ], 6821e45d043SDavide Caratti "$TC actions add action nat ingress 1.18.1.1 1.18.2.2 drop index 90" 6831e45d043SDavide Caratti ], 6841e45d043SDavide Caratti "cmdUnderTest": "$TC actions replace action nat ingress 1.18.1.1 1.18.2.2 goto chain 42 index 90 cookie c1a0c1a0", 6851e45d043SDavide Caratti "expExitCode": "255", 6861e45d043SDavide Caratti "verifyCmd": "$TC actions get action nat index 90", 6871e45d043SDavide Caratti "matchPattern": "action order [0-9]+: nat ingress 1.18.1.1/32 1.18.2.2 drop.*index 90 ref", 6881e45d043SDavide Caratti "matchCount": "1", 6891e45d043SDavide Caratti "teardown": [ 6901e45d043SDavide Caratti "$TC actions flush action nat" 6911e45d043SDavide Caratti ] 692043b1643SZhengchao Shao }, 693043b1643SZhengchao Shao { 694043b1643SZhengchao Shao "id": "b811", 695043b1643SZhengchao Shao "name": "Delete nat action with valid index", 696043b1643SZhengchao Shao "category": [ 697043b1643SZhengchao Shao "actions", 698043b1643SZhengchao Shao "nat" 699043b1643SZhengchao Shao ], 700*d227cc0bSPedro Tammela "plugins": { 701*d227cc0bSPedro Tammela "requires": "nsPlugin" 702*d227cc0bSPedro Tammela }, 703043b1643SZhengchao Shao "setup": [ 704043b1643SZhengchao Shao [ 705043b1643SZhengchao Shao "$TC actions flush action nat", 706043b1643SZhengchao Shao 0, 707043b1643SZhengchao Shao 1, 708043b1643SZhengchao Shao 255 709043b1643SZhengchao Shao ], 710043b1643SZhengchao Shao "$TC actions add action nat ingress 1.1.1.1 2.2.2.2 drop index 20" 711043b1643SZhengchao Shao ], 712043b1643SZhengchao Shao "cmdUnderTest": "$TC actions del action nat index 20", 713043b1643SZhengchao Shao "expExitCode": "0", 714043b1643SZhengchao Shao "verifyCmd": "$TC actions ls action nat index 20", 715043b1643SZhengchao Shao "matchPattern": "action order [0-9]+: nat ingress 1.1.1.1/32 2.2.2.2 drop.*index 20 ref", 716043b1643SZhengchao Shao "matchCount": "0", 717043b1643SZhengchao Shao "teardown": [ 718043b1643SZhengchao Shao "$TC actions flush action nat" 719043b1643SZhengchao Shao ] 720043b1643SZhengchao Shao }, 721043b1643SZhengchao Shao { 722043b1643SZhengchao Shao "id": "a521", 723043b1643SZhengchao Shao "name": "Delete nat action with invalid index", 724043b1643SZhengchao Shao "category": [ 725043b1643SZhengchao Shao "actions", 726043b1643SZhengchao Shao "nat" 727043b1643SZhengchao Shao ], 728*d227cc0bSPedro Tammela "plugins": { 729*d227cc0bSPedro Tammela "requires": "nsPlugin" 730*d227cc0bSPedro Tammela }, 731043b1643SZhengchao Shao "setup": [ 732043b1643SZhengchao Shao [ 733043b1643SZhengchao Shao "$TC actions flush action nat", 734043b1643SZhengchao Shao 0, 735043b1643SZhengchao Shao 1, 736043b1643SZhengchao Shao 255 737043b1643SZhengchao Shao ], 738043b1643SZhengchao Shao "$TC actions add action nat ingress 1.1.1.1 2.2.2.2 drop index 20" 739043b1643SZhengchao Shao ], 740043b1643SZhengchao Shao "cmdUnderTest": "$TC actions del action nat index 10", 741043b1643SZhengchao Shao "expExitCode": "255", 742043b1643SZhengchao Shao "verifyCmd": "$TC actions ls action nat index 20", 743043b1643SZhengchao Shao "matchPattern": "action order [0-9]+: nat ingress 1.1.1.1/32 2.2.2.2 drop.*index 20 ref", 744043b1643SZhengchao Shao "matchCount": "1", 745043b1643SZhengchao Shao "teardown": [ 746043b1643SZhengchao Shao "$TC actions flush action nat" 747043b1643SZhengchao Shao ] 748736ac814SKeara Leibovitz } 749736ac814SKeara Leibovitz] 750