Home | History | Annotate | Download | only in actions
      1 [
      2     {
      3         "id": "5124",
      4         "name": "Add mirred mirror to egress action",
      5         "category": [
      6             "actions",
      7             "mirred"
      8         ],
      9         "setup": [
     10             [
     11                 "$TC actions flush action mirred",
     12                 0,
     13                 1,
     14                 255
     15             ]
     16         ],
     17         "cmdUnderTest": "$TC actions add action mirred egress mirror index 1 dev lo",
     18         "expExitCode": "0",
     19         "verifyCmd": "$TC actions list action mirred",
     20         "matchPattern": "action order [0-9]*: mirred \\(Egress Mirror to device lo\\).*index 1 ref",
     21         "matchCount": "1",
     22         "teardown": [
     23             "$TC actions flush action mirred"
     24         ]
     25     },
     26     {
     27         "id": "6fb4",
     28         "name": "Add mirred redirect to egress action",
     29         "category": [
     30             "actions",
     31             "mirred"
     32         ],
     33         "setup": [
     34             [
     35                 "$TC actions flush action mirred",
     36                 0,
     37                 1,
     38                 255
     39             ]
     40         ],
     41         "cmdUnderTest": "$TC actions add action mirred egress redirect index 2 dev lo action pipe",
     42         "expExitCode": "0",
     43         "verifyCmd": "$TC actions list action mirred",
     44         "matchPattern": "action order [0-9]*: mirred \\(Egress Redirect to device lo\\).*index 2 ref",
     45         "matchCount": "1",
     46         "teardown": [
     47             "$TC actions flush action mirred"
     48         ]
     49     },
     50     {
     51         "id": "ba38",
     52         "name": "Get mirred actions",
     53         "category": [
     54             "actions",
     55             "mirred"
     56         ],
     57         "setup": [
     58             [
     59                 "$TC actions flush action mirred",
     60                 0,
     61                 1,
     62                 255
     63             ],
     64             "$TC actions add action mirred egress mirror index 1 dev lo",
     65             "$TC actions add action mirred egress redirect index 2 dev lo"
     66         ],
     67         "cmdUnderTest": "$TC actions show action mirred",
     68         "expExitCode": "0",
     69         "verifyCmd": "$TC actions list action mirred",
     70         "matchPattern": "[Mirror|Redirect] to device lo",
     71         "matchCount": "2",
     72         "teardown": [
     73             "$TC actions flush action mirred"
     74         ]
     75     },
     76     {
     77         "id": "d7c0",
     78         "name": "Add invalid mirred direction",
     79         "category": [
     80             "actions",
     81             "mirred"
     82         ],
     83         "setup": [
     84             [
     85                 "$TC actions flush action mirred",
     86                 0,
     87                 1,
     88                 255
     89             ]
     90         ],
     91         "cmdUnderTest": "$TC actions add action mirred inbound mirror index 20 dev lo",
     92         "expExitCode": "255",
     93         "verifyCmd": "$TC actions list action mirred",
     94         "matchPattern": "action order [0-9]*: mirred \\(.*to device lo\\).*index 20 ref",
     95         "matchCount": "0",
     96         "teardown": [
     97             "$TC actions flush action mirred"
     98         ]
     99     },
    100     {
    101         "id": "e213",
    102         "name": "Add invalid mirred action",
    103         "category": [
    104             "actions",
    105             "mirred"
    106         ],
    107         "setup": [
    108             [
    109                 "$TC actions flush action mirred",
    110                 0,
    111                 1,
    112                 255
    113             ]
    114         ],
    115         "cmdUnderTest": "$TC actions add action mirred egress remirror index 20 dev lo",
    116         "expExitCode": "255",
    117         "verifyCmd": "$TC actions list action mirred",
    118         "matchPattern": "action order [0-9]*: mirred \\(Egress.*to device lo\\).*index 20 ref",
    119         "matchCount": "0",
    120         "teardown": [
    121             "$TC actions flush action mirred"
    122         ]
    123     },
    124     {
    125         "id": "2d89",
    126         "name": "Add mirred action with invalid device",
    127         "category": [
    128             "actions",
    129             "mirred"
    130         ],
    131         "setup": [
    132             [
    133                 "$TC actions flush action mirred",
    134                 0,
    135                 1,
    136                 255
    137             ]
    138         ],
    139         "cmdUnderTest": "$TC actions add action mirred egress mirror index 20 dev eltoh",
    140         "expExitCode": "255",
    141         "verifyCmd": "$TC actions list action mirred",
    142         "matchPattern": "action order [0-9]*: mirred \\(.*to device eltoh\\).*index 20 ref",
    143         "matchCount": "0",
    144         "teardown": [
    145             "$TC actions flush action mirred"
    146         ]
    147     },
    148     {
    149         "id": "300b",
    150         "name": "Add mirred action with duplicate index",
    151         "category": [
    152             "actions",
    153             "mirred"
    154         ],
    155         "setup": [
    156             [
    157                 "$TC actions flush action mirred",
    158                 0,
    159                 1,
    160                 255
    161             ],
    162             "$TC actions add action mirred egress redirect index 15 dev lo"
    163         ],
    164         "cmdUnderTest": "$TC actions add action mirred egress mirror index 15 dev lo",
    165         "expExitCode": "255",
    166         "verifyCmd": "$TC actions list action mirred",
    167         "matchPattern": "action order [0-9]*: mirred \\(.*to device lo\\).*index 15 ref",
    168         "matchCount": "1",
    169         "teardown": [
    170             "$TC actions flush action mirred"
    171         ]
    172     },
    173     {
    174         "id": "a70e",
    175         "name": "Delete mirred mirror action",
    176         "category": [
    177             "actions",
    178             "mirred"
    179         ],
    180         "setup": [
    181             [
    182                 "$TC actions flush action mirred",
    183                 0,
    184                 1,
    185                 255
    186             ],
    187             "$TC actions add action mirred egress mirror index 5 dev lo"
    188         ],
    189         "cmdUnderTest": "$TC actions del action mirred index 5",
    190         "expExitCode": "0",
    191         "verifyCmd": "$TC actions list action mirred",
    192         "matchPattern": "action order [0-9]*: mirred \\(Egress Mirror to device lo\\).*index 5 ref",
    193         "matchCount": "0",
    194         "teardown": [
    195             "$TC actions flush action mirred"
    196         ]
    197     },
    198     {
    199         "id": "3fb3",
    200         "name": "Delete mirred redirect action",
    201         "category": [
    202             "actions",
    203             "mirred"
    204         ],
    205         "setup": [
    206             [
    207                 "$TC actions flush action mirred",
    208                 0,
    209                 1,
    210                 255
    211             ],
    212             "$TC actions add action mirred egress redirect index 5 dev lo"
    213         ],
    214         "cmdUnderTest": "$TC actions del action mirred index 5",
    215         "expExitCode": "0",
    216         "verifyCmd": "$TC actions list action mirred",
    217         "matchPattern": "action order [0-9]*: mirred \\(Egress Redirect to device lo\\).*index 5 ref",
    218         "matchCount": "0",
    219         "teardown": [
    220             "$TC actions flush action mirred"
    221         ]
    222     }
    223 ]
    224