.. | .. |
---|
536 | 536 | "matchPattern": "^[ \t]+index [0-9]+ ref", |
---|
537 | 537 | "matchCount": "0", |
---|
538 | 538 | "teardown": [] |
---|
| 539 | + }, |
---|
| 540 | + { |
---|
| 541 | + "id": "8e47", |
---|
| 542 | + "name": "Add gact action with random determ goto chain control action", |
---|
| 543 | + "category": [ |
---|
| 544 | + "actions", |
---|
| 545 | + "gact" |
---|
| 546 | + ], |
---|
| 547 | + "setup": [ |
---|
| 548 | + [ |
---|
| 549 | + "$TC actions flush action gact", |
---|
| 550 | + 0, |
---|
| 551 | + 1, |
---|
| 552 | + 255 |
---|
| 553 | + ] |
---|
| 554 | + ], |
---|
| 555 | + "cmdUnderTest": "$TC actions add action pass random determ goto chain 1 2 index 90", |
---|
| 556 | + "expExitCode": "255", |
---|
| 557 | + "verifyCmd": "$TC actions list action gact", |
---|
| 558 | + "matchPattern": "action order [0-9]*: gact action pass random type determ goto chain 1 val 2.*index 90 ref", |
---|
| 559 | + "matchCount": "0", |
---|
| 560 | + "teardown": [ |
---|
| 561 | + "$TC actions flush action gact" |
---|
| 562 | + ] |
---|
| 563 | + }, |
---|
| 564 | + { |
---|
| 565 | + "id": "ca89", |
---|
| 566 | + "name": "Replace gact action with invalid goto chain control", |
---|
| 567 | + "category": [ |
---|
| 568 | + "actions", |
---|
| 569 | + "gact" |
---|
| 570 | + ], |
---|
| 571 | + "setup": [ |
---|
| 572 | + [ |
---|
| 573 | + "$TC actions flush action gact", |
---|
| 574 | + 0, |
---|
| 575 | + 1, |
---|
| 576 | + 255 |
---|
| 577 | + ], |
---|
| 578 | + "$TC actions add action pass random determ drop 2 index 90" |
---|
| 579 | + ], |
---|
| 580 | + "cmdUnderTest": "$TC actions replace action goto chain 42 random determ drop 5 index 90 cookie c1a0c1a0", |
---|
| 581 | + "expExitCode": "255", |
---|
| 582 | + "verifyCmd": "$TC actions list action gact", |
---|
| 583 | + "matchPattern": "action order [0-9]*: gact action pass.*random type determ drop val 2.*index 90 ref", |
---|
| 584 | + "matchCount": "1", |
---|
| 585 | + "teardown": [ |
---|
| 586 | + "$TC actions flush action gact" |
---|
| 587 | + ] |
---|
| 588 | + }, |
---|
| 589 | + { |
---|
| 590 | + "id": "95ad", |
---|
| 591 | + "name": "Add gact pass action with no_percpu flag", |
---|
| 592 | + "category": [ |
---|
| 593 | + "actions", |
---|
| 594 | + "gact" |
---|
| 595 | + ], |
---|
| 596 | + "setup": [ |
---|
| 597 | + [ |
---|
| 598 | + "$TC actions flush action gact", |
---|
| 599 | + 0, |
---|
| 600 | + 1, |
---|
| 601 | + 255 |
---|
| 602 | + ] |
---|
| 603 | + ], |
---|
| 604 | + "cmdUnderTest": "$TC actions add action pass no_percpu", |
---|
| 605 | + "expExitCode": "0", |
---|
| 606 | + "verifyCmd": "$TC actions list action gact", |
---|
| 607 | + "matchPattern": "action order [0-9]*: gact action pass.*no_percpu", |
---|
| 608 | + "matchCount": "1", |
---|
| 609 | + "teardown": [ |
---|
| 610 | + "$TC actions flush action gact" |
---|
| 611 | + ] |
---|
539 | 612 | } |
---|
540 | 613 | ] |
---|