.. | .. |
---|
589 | 589 | "teardown": [ |
---|
590 | 590 | "$TC actions flush action nat" |
---|
591 | 591 | ] |
---|
| 592 | + }, |
---|
| 593 | + { |
---|
| 594 | + "id": "4b12", |
---|
| 595 | + "name": "Replace nat action with invalid goto chain control", |
---|
| 596 | + "category": [ |
---|
| 597 | + "actions", |
---|
| 598 | + "nat" |
---|
| 599 | + ], |
---|
| 600 | + "setup": [ |
---|
| 601 | + [ |
---|
| 602 | + "$TC actions flush action nat", |
---|
| 603 | + 0, |
---|
| 604 | + 1, |
---|
| 605 | + 255 |
---|
| 606 | + ], |
---|
| 607 | + "$TC actions add action nat ingress 1.18.1.1 1.18.2.2 drop index 90" |
---|
| 608 | + ], |
---|
| 609 | + "cmdUnderTest": "$TC actions replace action nat ingress 1.18.1.1 1.18.2.2 goto chain 42 index 90 cookie c1a0c1a0", |
---|
| 610 | + "expExitCode": "255", |
---|
| 611 | + "verifyCmd": "$TC actions get action nat index 90", |
---|
| 612 | + "matchPattern": "action order [0-9]+: nat ingress 1.18.1.1/32 1.18.2.2 drop.*index 90 ref", |
---|
| 613 | + "matchCount": "1", |
---|
| 614 | + "teardown": [ |
---|
| 615 | + "$TC actions flush action nat" |
---|
| 616 | + ] |
---|
592 | 617 | } |
---|
593 | 618 | ] |
---|