Home | History | Annotate | Download | only in actions
      1 [
      2     {
      3         "id": "7d50",
      4         "name": "Add skbmod action to set destination mac",
      5         "category": [
      6             "actions",
      7             "skbmod"
      8         ],
      9         "setup": [
     10             [
     11                 "$TC actions flush action skbmod",
     12                 0,
     13                 1,
     14                 255
     15             ]
     16         ],
     17         "cmdUnderTest": "$TC actions add action skbmod set dmac 11:22:33:44:55:66 index 5",
     18         "expExitCode": "0",
     19         "verifyCmd": "$TC actions ls action skbmod",
     20         "matchPattern": "action order [0-9]*: skbmod pipe set dmac 11:22:33:44:55:66\\s+index 5",
     21         "matchCount": "1",
     22         "teardown": [
     23             "$TC actions flush action skbmod"
     24         ]
     25     },
     26     {
     27         "id": "9b29",
     28         "name": "Add skbmod action to set source mac",
     29         "category": [
     30             "actions",
     31             "skbmod"
     32         ],
     33         "setup": [
     34             [
     35                 "$TC actions flush action skbmod",
     36                 0,
     37                 1,
     38                 255
     39             ]
     40         ],
     41         "cmdUnderTest": "$TC actions add action skbmod set smac 77:88:99:AA:BB:CC index 7",
     42         "expExitCode": "0",
     43         "verifyCmd": "$TC actions get action skbmod index 7",
     44         "matchPattern": "action order [0-9]*: skbmod pipe set smac 77:88:99:aa:bb:cc\\s+index 7",
     45         "matchCount": "1",
     46         "teardown": [
     47             "$TC actions flush action skbmod"
     48         ]
     49     },
     50     {
     51         "id": "1724",
     52         "name": "Add skbmod action with invalid mac",
     53         "category": [
     54             "actions",
     55             "skbmod"
     56         ],
     57         "setup": [
     58             [
     59                 "$TC actions flush action skbmod",
     60                 0,
     61                 1,
     62                 255
     63             ]
     64         ],
     65         "cmdUnderTest": "$TC actions add action skbmod set smac 00:44:55:44:55",
     66         "expExitCode": "255",
     67         "verifyCmd": "$TC actions ls action skbmod",
     68         "matchPattern": "action order [0-9]*: skbmod pipe set smac 00:44:55:44:55",
     69         "matchCount": "0",
     70         "teardown": [
     71             "$TC actions flush action skbmod"
     72         ]
     73     },
     74     {
     75         "id": "3cf1",
     76         "name": "Add skbmod action with valid etype",
     77         "category": [
     78             "actions",
     79             "skbmod"
     80         ],
     81         "setup": [
     82             [
     83                 "$TC actions flush action skbmod",
     84                 0,
     85                 1,
     86                 255
     87             ]
     88         ],
     89         "cmdUnderTest": "$TC actions add action skbmod set etype 0xfefe",
     90         "expExitCode": "0",
     91         "verifyCmd": "$TC actions ls action skbmod",
     92         "matchPattern": "action order [0-9]*: skbmod pipe set etype 0xFEFE",
     93         "matchCount": "1",
     94         "teardown": [
     95             "$TC actions flush action skbmod"
     96         ]
     97     },
     98     {
     99         "id": "a749",
    100         "name": "Add skbmod action with invalid etype",
    101         "category": [
    102             "actions",
    103             "skbmod"
    104         ],
    105         "setup": [
    106             [
    107                 "$TC actions flush action skbmod",
    108                 0,
    109                 1,
    110                 255
    111             ]
    112         ],
    113         "cmdUnderTest": "$TC actions add action skbmod set etype 0xfefef",
    114         "expExitCode": "255",
    115         "verifyCmd": "$TC actions ls action skbmod",
    116         "matchPattern": "action order [0-9]*: skbmod pipe set etype 0xFEFEF",
    117         "matchCount": "0",
    118         "teardown": [
    119             "$TC actions flush action skbmod"
    120         ]
    121     },
    122     {
    123         "id": "bfe6",
    124         "name": "Add skbmod action to swap mac",
    125         "category": [
    126             "actions",
    127             "skbmod"
    128         ],
    129         "setup": [
    130             [
    131                 "$TC actions flush action skbmod",
    132                 0,
    133                 1,
    134                 255
    135             ]
    136         ],
    137         "cmdUnderTest": "$TC actions add action skbmod swap mac",
    138         "expExitCode": "0",
    139         "verifyCmd": "$TC actions get action skbmod index 1",
    140         "matchPattern": "action order [0-9]*: skbmod pipe swap mac",
    141         "matchCount": "1",
    142         "teardown": [
    143             "$TC actions flush action skbmod"
    144         ]
    145     },
    146     {
    147         "id": "839b",
    148         "name": "Add skbmod action with control pipe",
    149         "category": [
    150             "actions",
    151             "skbmod"
    152         ],
    153         "setup": [
    154             [
    155                 "$TC actions flush action skbmod",
    156                 0,
    157                 1,
    158                 255
    159             ]
    160         ],
    161         "cmdUnderTest": "$TC actions add action skbmod swap mac pipe",
    162         "expExitCode": "0",
    163         "verifyCmd": "$TC actions ls action skbmod",
    164         "matchPattern": "action order [0-9]*: skbmod pipe swap mac",
    165         "matchCount": "1",
    166         "teardown": [
    167             "$TC actions flush action skbmod"
    168         ]
    169     },
    170     {
    171         "id": "c167",
    172         "name": "Add skbmod action with control reclassify",
    173         "category": [
    174             "actions",
    175             "skbmod"
    176         ],
    177         "setup": [
    178             [
    179                 "$TC actions flush action skbmod",
    180                 0,
    181                 1,
    182                 255
    183             ]
    184         ],
    185         "cmdUnderTest": "$TC actions add action skbmod set etype 0xbeef reclassify",
    186         "expExitCode": "0",
    187         "verifyCmd": "$TC actions ls action skbmod",
    188         "matchPattern": "action order [0-9]*: skbmod reclassify set etype 0xBEEF",
    189         "matchCount": "1",
    190         "teardown": [
    191             "$TC actions flush action skbmod"
    192         ]
    193     },
    194     {
    195         "id": "0c2f",
    196         "name": "Add skbmod action with control drop",
    197         "category": [
    198             "actions",
    199             "skbmod"
    200         ],
    201         "setup": [
    202             [
    203                 "$TC actions flush action skbmod",
    204                 0,
    205                 1,
    206                 255
    207             ]
    208         ],
    209         "cmdUnderTest": "$TC actions add action skbmod set etype 0x0001 drop",
    210         "expExitCode": "0",
    211         "verifyCmd": "$TC actions get action skbmod index 1",
    212         "matchPattern": "action order [0-9]*: skbmod drop set etype 0x1",
    213         "matchCount": "1",
    214         "teardown": [
    215             "$TC actions flush action skbmod"
    216         ]
    217     },
    218     {
    219         "id": "d113",
    220         "name": "Add skbmod action with control continue",
    221         "category": [
    222             "actions",
    223             "skbmod"
    224         ],
    225         "setup": [
    226             [
    227                 "$TC actions flush action skbmod",
    228                 0,
    229                 1,
    230                 255
    231             ]
    232         ],
    233         "cmdUnderTest": "$TC actions add action skbmod set etype 0x1 continue",
    234         "expExitCode": "0",
    235         "verifyCmd": "$TC actions ls action skbmod",
    236         "matchPattern": "action order [0-9]*: skbmod continue set etype 0x1",
    237         "matchCount": "1",
    238         "teardown": [
    239             "$TC actions flush action skbmod"
    240         ]
    241     },
    242     {
    243         "id": "7242",
    244         "name": "Add skbmod action with control pass",
    245         "category": [
    246             "actions",
    247             "skbmod"
    248         ],
    249         "setup": [
    250             [
    251                 "$TC actions flush action skbmod",
    252                 0,
    253                 1,
    254                 255
    255             ]
    256         ],
    257         "cmdUnderTest": "$TC actions add action skbmod set smac 00:00:00:00:00:01 pass",
    258         "expExitCode": "0",
    259         "verifyCmd": "$TC actions ls action skbmod",
    260         "matchPattern": "action order [0-9]*: skbmod pass set smac 00:00:00:00:00:01",
    261         "matchCount": "1",
    262         "teardown": [
    263             "$TC actions flush action skbmod"
    264         ]
    265     },
    266     {
    267         "id": "58cb",
    268         "name": "List skbmod actions",
    269         "category": [
    270             "actions",
    271             "skbmod"
    272         ],
    273         "setup": [
    274             [
    275                 "$TC actions flush action skbmod",
    276                 0,
    277                 1,
    278                 255
    279             ],
    280             "$TC actions add action skbmod set etype 0x0001",
    281             "$TC actions add action skbmod set etype 0x0011",
    282             "$TC actions add action skbmod set etype 0x0021",
    283             "$TC actions add action skbmod set etype 0x0031",
    284             "$TC actions add action skbmod set etype 0x0041"
    285         ],
    286         "cmdUnderTest": "$TC actions ls action skbmod",
    287         "expExitCode": "0",
    288         "verifyCmd": "$TC actions ls action skbmod",
    289         "matchPattern": "action order [0-9]*: skbmod",
    290         "matchCount": "5",
    291         "teardown": [
    292             "$TC actions flush action skbmod"
    293         ]
    294     },
    295     {
    296         "id": "9aa8",
    297         "name": "Get a single skbmod action from a list",
    298         "category": [
    299             "actions",
    300             "skbmod"
    301         ],
    302         "setup": [
    303             [
    304                 "$TC actions flush action skbmod",
    305                 0,
    306                 1,
    307                 255
    308             ],
    309             "$TC actions add action skbmod set etype 0x0001",
    310             "$TC actions add action skbmod set etype 0x0011",
    311             "$TC actions add action skbmod set etype 0x0021",
    312             "$TC actions add action skbmod set etype 0x0031",
    313             "$TC actions add action skbmod set etype 0x0041"
    314         ],
    315         "cmdUnderTest": "$TC actions ls action skbmod",
    316         "expExitCode": "0",
    317         "verifyCmd": "$TC actions get action skbmod index 4",
    318         "matchPattern": "action order [0-9]*: skbmod pipe set etype 0x0031",
    319         "matchCount": "1",
    320         "teardown": [
    321             "$TC actions flush action skbmod"
    322         ]
    323     },
    324     {
    325         "id": "e93a",
    326         "name": "Delete an skbmod action",
    327         "category": [
    328             "actions",
    329             "skbmod"
    330         ],
    331         "setup": [
    332             [
    333                 "$TC actions flush action skbmod",
    334                 0,
    335                 1,
    336                 255
    337             ],
    338             "$TC actions add action skbmod set etype 0x1111 index 909"
    339         ],
    340         "cmdUnderTest": "$TC actions del action skbmod index 909",
    341         "expExitCode": "0",
    342         "verifyCmd": "$TC actions ls action skbmod",
    343         "matchPattern": "action order [0-9]*: skbmod pipe set etype 0x1111\\s+index 909",
    344         "matchCount": "0",
    345         "teardown": [
    346             "$TC actions flush action skbmod"
    347         ]
    348     },
    349     {
    350         "id": "40c2",
    351         "name": "Flush skbmod actions",
    352         "category": [
    353             "actions",
    354             "skbmod"
    355         ],
    356         "setup": [
    357             "$TC actions add action skbmod set etype 0x0001",
    358             "$TC actions add action skbmod set etype 0x0011",
    359             "$TC actions add action skbmod set etype 0x0021",
    360             "$TC actions add action skbmod set etype 0x0031",
    361             "$TC actions add action skbmod set etype 0x0041"
    362         ],
    363         "cmdUnderTest": "$TC actions flush action skbmod",
    364         "expExitCode": "0",
    365         "verifyCmd": "$TC actions ls action skbmod",
    366         "matchPattern": "action order [0-9]*: skbmod",
    367         "matchCount": "0",
    368         "teardown": [
    369             "$TC actions flush action skbmod"
    370         ]
    371     }
    372 ]
    373