Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 246e886d authored by Davide Caratti's avatar Davide Caratti Committed by David S. Miller
Browse files

tc-tests: test denial of 'goto chain' for exceed traffic in police.json



add test to verify if act_police forbids 'goto chain' control actions for
'exceed' traffic.

Signed-off-by: default avatarDavide Caratti <dcaratti@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 88c2e3b4
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -715,5 +715,29 @@
        "teardown": [
            "$TC actions flush action police"
        ]
    },
    {
        "id": "b48b",
        "name": "Add police action with exceed goto chain control action",
        "category": [
            "actions",
            "police"
        ],
        "setup": [
            [
                "$TC actions flush action police",
                0,
                1,
                255
            ]
        ],
        "cmdUnderTest": "$TC actions add action police rate 1mbit burst 1k conform-exceed pass / goto chain 42",
        "expExitCode": "255",
        "verifyCmd": "$TC actions ls action police",
        "matchPattern": "action order [0-9]*:  police 0x1 rate 1Mbit burst 1Kb mtu 2Kb action pass/goto chain 42",
        "matchCount": "0",
        "teardown": [
            "$TC actions flush action police"
        ]
    }
]