.. | .. |
---|
688 | 688 | "teardown": [ |
---|
689 | 689 | "$TC actions flush action vlan" |
---|
690 | 690 | ] |
---|
| 691 | + }, |
---|
| 692 | + { |
---|
| 693 | + "id": "e394", |
---|
| 694 | + "name": "Replace vlan push action with invalid goto chain control", |
---|
| 695 | + "category": [ |
---|
| 696 | + "actions", |
---|
| 697 | + "vlan" |
---|
| 698 | + ], |
---|
| 699 | + "setup": [ |
---|
| 700 | + [ |
---|
| 701 | + "$TC actions flush action vlan", |
---|
| 702 | + 0, |
---|
| 703 | + 1, |
---|
| 704 | + 255 |
---|
| 705 | + ], |
---|
| 706 | + "$TC actions add action vlan push id 500 pass index 90" |
---|
| 707 | + ], |
---|
| 708 | + "cmdUnderTest": "$TC actions replace action vlan push id 500 goto chain 42 index 90 cookie c1a0c1a0", |
---|
| 709 | + "expExitCode": "255", |
---|
| 710 | + "verifyCmd": "$TC actions get action vlan index 90", |
---|
| 711 | + "matchPattern": "action order [0-9]+: vlan.*push id 500 protocol 802.1Q priority 0 pass.*index 90 ref", |
---|
| 712 | + "matchCount": "1", |
---|
| 713 | + "teardown": [ |
---|
| 714 | + "$TC actions flush action vlan" |
---|
| 715 | + ] |
---|
| 716 | + }, |
---|
| 717 | + { |
---|
| 718 | + "id": "294e", |
---|
| 719 | + "name": "Add batch of 32 vlan push actions with cookie", |
---|
| 720 | + "category": [ |
---|
| 721 | + "actions", |
---|
| 722 | + "vlan" |
---|
| 723 | + ], |
---|
| 724 | + "setup": [ |
---|
| 725 | + [ |
---|
| 726 | + "$TC actions flush action vlan", |
---|
| 727 | + 0, |
---|
| 728 | + 1, |
---|
| 729 | + 255 |
---|
| 730 | + ] |
---|
| 731 | + ], |
---|
| 732 | + "cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action vlan push protocol 802.1q id 4094 priority 7 pipe index \\$i cookie aabbccddeeff112233445566778800a1 \\\"; args=\"\\$args\\$cmd\"; done && $TC actions add \\$args\"", |
---|
| 733 | + "expExitCode": "0", |
---|
| 734 | + "verifyCmd": "$TC actions list action vlan", |
---|
| 735 | + "matchPattern": "^[ \t]+index [0-9]+ ref", |
---|
| 736 | + "matchCount": "32", |
---|
| 737 | + "teardown": [ |
---|
| 738 | + "$TC actions flush action vlan" |
---|
| 739 | + ] |
---|
| 740 | + }, |
---|
| 741 | + { |
---|
| 742 | + "id": "56f7", |
---|
| 743 | + "name": "Delete batch of 32 vlan push actions", |
---|
| 744 | + "category": [ |
---|
| 745 | + "actions", |
---|
| 746 | + "vlan" |
---|
| 747 | + ], |
---|
| 748 | + "setup": [ |
---|
| 749 | + [ |
---|
| 750 | + "$TC actions flush action vlan", |
---|
| 751 | + 0, |
---|
| 752 | + 1, |
---|
| 753 | + 255 |
---|
| 754 | + ], |
---|
| 755 | + "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action vlan push protocol 802.1q id 4094 priority 7 pipe index \\$i \\\"; args=\\\"\\$args\\$cmd\\\"; done && $TC actions add \\$args\"" |
---|
| 756 | + ], |
---|
| 757 | + "cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action vlan index \\$i \\\"; args=\"\\$args\\$cmd\"; done && $TC actions del \\$args\"", |
---|
| 758 | + "expExitCode": "0", |
---|
| 759 | + "verifyCmd": "$TC actions list action vlan", |
---|
| 760 | + "matchPattern": "^[ \t]+index [0-9]+ ref", |
---|
| 761 | + "matchCount": "0", |
---|
| 762 | + "teardown": [] |
---|
| 763 | + }, |
---|
| 764 | + { |
---|
| 765 | + "id": "759f", |
---|
| 766 | + "name": "Add batch of 32 vlan pop actions with cookie", |
---|
| 767 | + "category": [ |
---|
| 768 | + "actions", |
---|
| 769 | + "vlan" |
---|
| 770 | + ], |
---|
| 771 | + "setup": [ |
---|
| 772 | + [ |
---|
| 773 | + "$TC actions flush action vlan", |
---|
| 774 | + 0, |
---|
| 775 | + 1, |
---|
| 776 | + 255 |
---|
| 777 | + ] |
---|
| 778 | + ], |
---|
| 779 | + "cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action vlan pop continue index \\$i cookie aabbccddeeff112233445566778800a1 \\\"; args=\"\\$args\\$cmd\"; done && $TC actions add \\$args\"", |
---|
| 780 | + "expExitCode": "0", |
---|
| 781 | + "verifyCmd": "$TC actions list action vlan", |
---|
| 782 | + "matchPattern": "^[ \t]+index [0-9]+ ref", |
---|
| 783 | + "matchCount": "32", |
---|
| 784 | + "teardown": [ |
---|
| 785 | + "$TC actions flush action vlan" |
---|
| 786 | + ] |
---|
| 787 | + }, |
---|
| 788 | + { |
---|
| 789 | + "id": "c84a", |
---|
| 790 | + "name": "Delete batch of 32 vlan pop actions", |
---|
| 791 | + "category": [ |
---|
| 792 | + "actions", |
---|
| 793 | + "vlan" |
---|
| 794 | + ], |
---|
| 795 | + "setup": [ |
---|
| 796 | + [ |
---|
| 797 | + "$TC actions flush action vlan", |
---|
| 798 | + 0, |
---|
| 799 | + 1, |
---|
| 800 | + 255 |
---|
| 801 | + ], |
---|
| 802 | + "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action vlan pop index \\$i \\\"; args=\\\"\\$args\\$cmd\\\"; done && $TC actions add \\$args\"" |
---|
| 803 | + ], |
---|
| 804 | + "cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action vlan index \\$i \\\"; args=\"\\$args\\$cmd\"; done && $TC actions del \\$args\"", |
---|
| 805 | + "expExitCode": "0", |
---|
| 806 | + "verifyCmd": "$TC actions list action vlan", |
---|
| 807 | + "matchPattern": "^[ \t]+index [0-9]+ ref", |
---|
| 808 | + "matchCount": "0", |
---|
| 809 | + "teardown": [] |
---|
| 810 | + }, |
---|
| 811 | + { |
---|
| 812 | + "id": "1a3d", |
---|
| 813 | + "name": "Add vlan pop action with no_percpu flag", |
---|
| 814 | + "category": [ |
---|
| 815 | + "actions", |
---|
| 816 | + "vlan" |
---|
| 817 | + ], |
---|
| 818 | + "setup": [ |
---|
| 819 | + [ |
---|
| 820 | + "$TC actions flush action vlan", |
---|
| 821 | + 0, |
---|
| 822 | + 1, |
---|
| 823 | + 255 |
---|
| 824 | + ] |
---|
| 825 | + ], |
---|
| 826 | + "cmdUnderTest": "$TC actions add action vlan pop no_percpu", |
---|
| 827 | + "expExitCode": "0", |
---|
| 828 | + "verifyCmd": "$TC actions list action vlan", |
---|
| 829 | + "matchPattern": "action order [0-9]+: vlan.*pop.*no_percpu", |
---|
| 830 | + "matchCount": "1", |
---|
| 831 | + "teardown": [ |
---|
| 832 | + "$TC actions flush action vlan" |
---|
| 833 | + ] |
---|
691 | 834 | } |
---|
692 | 835 | ] |
---|