Resguardo inicial

This commit is contained in:
lastdragon
2026-09-06 12:53:21 -06:00
parent 662efe3c2a
commit ad2088d178
94853 changed files with 43200404 additions and 0 deletions
@@ -0,0 +1,315 @@
[
{
"id": "d959",
"name": "Add cBPF action with valid bytecode",
"category": [
"actions",
"bpf"
],
"setup": [
[
"$TC action flush action bpf",
0,
1,
255
]
],
"cmdUnderTest": "$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' index 100",
"expExitCode": "0",
"verifyCmd": "$TC action get action bpf index 100",
"matchPattern": "action order [0-9]*: bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' default-action pipe.*index 100 ref",
"matchCount": "1",
"teardown": [
"$TC action flush action bpf"
]
},
{
"id": "f84a",
"name": "Add cBPF action with invalid bytecode",
"category": [
"actions",
"bpf"
],
"setup": [
[
"$TC actions flush action bpf",
0,
1,
255
]
],
"cmdUnderTest": "$TC action add action bpf bytecode '4,40 0 0 12,31 0 1 2048,6 0 0 262144,6 0 0 0' index 100",
"expExitCode": "255",
"verifyCmd": "$TC action get action bpf index 100",
"matchPattern": "action order [0-9]*: bpf bytecode '4,40 0 0 12,31 0 1 2048,6 0 0 262144,6 0 0 0' default-action pipe.*index 100 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action bpf"
]
},
{
"id": "e939",
"name": "Add eBPF action with valid object-file",
"category": [
"actions",
"bpf"
],
"setup": [
[
"$TC action flush action bpf",
0,
1,
255
]
],
"cmdUnderTest": "$TC action add action bpf object-file $EBPFDIR/action-ebpf section action-ok index 667",
"expExitCode": "0",
"verifyCmd": "$TC action get action bpf index 667",
"matchPattern": "action order [0-9]*: bpf action-ebpf:\\[action-ok\\] id [0-9].* tag [0-9a-f]{16}( jited)? default-action pipe.*index 667 ref",
"matchCount": "1",
"teardown": [
"$TC action flush action bpf"
]
},
{
"id": "282d",
"name": "Add eBPF action with invalid object-file",
"category": [
"actions",
"bpf"
],
"setup": [
[
"$TC action flush action bpf",
0,
1,
255
]
],
"cmdUnderTest": "$TC action add action bpf object-file $EBPFDIR/action-ebpf section action-ko index 667",
"expExitCode": "255",
"verifyCmd": "$TC action get action bpf index 667",
"matchPattern": "action order [0-9]*: bpf action-ebpf:\\[action-ko\\] id [0-9].*index 667 ref",
"matchCount": "0",
"teardown": [
[
"$TC action flush action bpf",
0,
1,
255
]
]
},
{
"id": "d819",
"name": "Replace cBPF bytecode and action control",
"category": [
"actions",
"bpf"
],
"setup": [
[
"$TC actions flush action bpf",
0,
1,
255
],
[
"$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' index 555",
0,
1,
255
]
],
"cmdUnderTest": "$TC action replace action bpf bytecode '4,40 0 0 12,21 0 1 2054,6 0 0 262144,6 0 0 0' drop index 555",
"expExitCode": "0",
"verifyCmd": "$TC action get action bpf index 555",
"matchPattern": "action order [0-9]*: bpf bytecode '4,40 0 0 12,21 0 1 2054,6 0 0 262144,6 0 0 0' default-action drop.*index 555 ref",
"matchCount": "1",
"teardown": [
"$TC action flush action bpf"
]
},
{
"id": "6ae3",
"name": "Delete cBPF action ",
"category": [
"actions",
"bpf"
],
"setup": [
[
"$TC actions flush action bpf",
0,
1,
255
],
[
"$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' index 444",
0,
1,
255
]
],
"cmdUnderTest": "$TC action delete action bpf index 444",
"expExitCode": "0",
"verifyCmd": "$TC action get action bpf index 444",
"matchPattern": "action order [0-9]*: bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' default-action pipe.*index 444 ref",
"matchCount": "0",
"teardown": [
"$TC action flush action bpf"
]
},
{
"id": "3e0d",
"name": "List cBPF actions",
"category": [
"actions",
"bpf"
],
"setup": [
[
"$TC action flush action bpf",
0,
1,
255
],
"$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' ok index 101",
"$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2054,6 0 0 262144,6 0 0 0' drop index 102",
"$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 33024,6 0 0 262144,6 0 0 0' continue index 103"
],
"cmdUnderTest": "$TC action list action bpf",
"expExitCode": "0",
"verifyCmd": "$TC action list action bpf",
"matchPattern": "action order [0-9]*: bpf bytecode",
"matchCount": "3",
"teardown": [
"$TC actions flush action bpf"
]
},
{
"id": "55ce",
"name": "Flush BPF actions",
"category": [
"actions",
"bpf"
],
"setup": [
[
"$TC actions flush action bpf",
0,
1,
255
],
"$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' ok index 101",
"$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2054,6 0 0 262144,6 0 0 0' drop index 102",
"$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 33024,6 0 0 262144,6 0 0 0' continue index 103"
],
"cmdUnderTest": "$TC action flush action bpf",
"expExitCode": "0",
"verifyCmd": "$TC action list action bpf",
"matchPattern": "action order [0-9]*: bpf bytecode",
"matchCount": "0",
"teardown": [
"$TC actions flush action bpf"
]
},
{
"id": "ccc3",
"name": "Add cBPF action with duplicate index",
"category": [
"actions",
"bpf"
],
"setup": [
[
"$TC actions flush action bpf",
0,
1,
255
],
"$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' index 4294967295"
],
"cmdUnderTest": "$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2054,6 0 0 262144,6 0 0 0' index 4294967295",
"expExitCode": "255",
"verifyCmd": "$TC action get action bpf index 4294967295",
"matchPattern": "action order [0-9]*: bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' default-action pipe.*index 4294967295",
"matchCount": "1",
"teardown": [
"$TC action flush action bpf"
]
},
{
"id": "89c7",
"name": "Add cBPF action with invalid index",
"category": [
"actions",
"bpf"
],
"setup": [
[
"$TC actions flush action bpf",
0,
1,
255
]
],
"cmdUnderTest": "$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2054,6 0 0 262144,6 0 0 0' index 4294967296 cookie 123456",
"expExitCode": "255",
"verifyCmd": "$TC action ls action bpf",
"matchPattern": "action order [0-9]*: bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' default-action pipe.*cookie 123456",
"matchCount": "0",
"teardown": [
"$TC action flush action bpf"
]
},
{
"id": "7ab9",
"name": "Add cBPF action with cookie",
"category": [
"actions",
"bpf"
],
"setup": [
[
"$TC actions flush action bpf",
0,
1,
255
]
],
"cmdUnderTest": "$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2054,6 0 0 262144,6 0 0 0' cookie d0d0d0d0d0d0d0d0",
"expExitCode": "0",
"verifyCmd": "$TC action list action bpf",
"matchPattern": "action order [0-9]*: bpf.*cookie d0d0d0d0d0d0d0",
"matchCount": "1",
"teardown": [
"$TC action flush action bpf"
]
},
{
"id": "b8a1",
"name": "Replace bpf action with invalid goto_chain control",
"category": [
"actions",
"bpf"
],
"setup": [
[
"$TC actions flush action bpf",
0,
1,
255
],
"$TC action add action bpf bytecode '1,6 0 0 4294967295' pass index 90"
],
"cmdUnderTest": "$TC action replace action bpf bytecode '1,6 0 0 4294967295' goto chain 42 index 90 cookie c1a0c1a0",
"expExitCode": "255",
"verifyCmd": "$TC action list action bpf",
"matchPattern": "action order [0-9]*: bpf.* default-action pass.*index 90",
"matchCount": "1",
"teardown": [
"$TC action flush action bpf"
]
}
]
@@ -0,0 +1,411 @@
[
{
"id": "2002",
"name": "Add valid connmark action with defaults",
"category": [
"actions",
"connmark"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action connmark",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action connmark",
"expExitCode": "0",
"verifyCmd": "$TC actions list action connmark",
"matchPattern": "action order [0-9]+: connmark zone 0 pipe",
"matchCount": "1",
"teardown": [
"$TC actions flush action connmark"
]
},
{
"id": "56a5",
"name": "Add valid connmark action with control pass",
"category": [
"actions",
"connmark"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action connmark",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action connmark pass index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions get action connmark index 1",
"matchPattern": "action order [0-9]+: connmark zone 0 pass.*index 1 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action connmark"
]
},
{
"id": "7c66",
"name": "Add valid connmark action with control drop",
"category": [
"actions",
"connmark"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action connmark",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action connmark drop index 100",
"expExitCode": "0",
"verifyCmd": "$TC actions get action connmark index 100",
"matchPattern": "action order [0-9]+: connmark zone 0 drop.*index 100 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action connmark"
]
},
{
"id": "a913",
"name": "Add valid connmark action with control pipe",
"category": [
"actions",
"connmark"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action connmark",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action connmark pipe index 455",
"expExitCode": "0",
"verifyCmd": "$TC actions get action connmark index 455",
"matchPattern": "action order [0-9]+: connmark zone 0 pipe.*index 455 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action connmark"
]
},
{
"id": "bdd8",
"name": "Add valid connmark action with control reclassify",
"category": [
"actions",
"connmark"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action connmark",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action connmark reclassify index 7",
"expExitCode": "0",
"verifyCmd": "$TC actions list action connmark",
"matchPattern": "action order [0-9]+: connmark zone 0 reclassify.*index 7 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action connmark"
]
},
{
"id": "b8be",
"name": "Add valid connmark action with control continue",
"category": [
"actions",
"connmark"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action connmark",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action connmark continue index 17",
"expExitCode": "0",
"verifyCmd": "$TC actions list action connmark",
"matchPattern": "action order [0-9]+: connmark zone 0 continue.*index 17 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action connmark"
]
},
{
"id": "d8a6",
"name": "Add valid connmark action with control jump",
"category": [
"actions",
"connmark"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action connmark",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action connmark jump 10 index 17",
"expExitCode": "0",
"verifyCmd": "$TC actions list action connmark",
"matchPattern": "action order [0-9]+: connmark zone 0 jump 10.*index 17 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action connmark"
]
},
{
"id": "aae8",
"name": "Add valid connmark action with zone argument",
"category": [
"actions",
"connmark"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action connmark",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action connmark zone 100 pipe index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions get action connmark index 1",
"matchPattern": "action order [0-9]+: connmark zone 100 pipe.*index 1 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action connmark"
]
},
{
"id": "2f0b",
"name": "Add valid connmark action with invalid zone argument",
"category": [
"actions",
"connmark"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action connmark",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action connmark zone 65536 reclassify index 21",
"expExitCode": "255",
"verifyCmd": "$TC actions get action connmark index 1",
"matchPattern": "action order [0-9]+: connmark zone 65536 reclassify.*index 21 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action connmark"
]
},
{
"id": "9305",
"name": "Add connmark action with unsupported argument",
"category": [
"actions",
"connmark"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action connmark",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action connmark zone 655 unsupp_arg pass index 2",
"expExitCode": "255",
"verifyCmd": "$TC actions get action connmark index 2",
"matchPattern": "action order [0-9]+: connmark zone 655 unsupp_arg pass.*index 2 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action connmark"
]
},
{
"id": "71ca",
"name": "Add valid connmark action and replace it",
"category": [
"actions",
"connmark"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action connmark",
0,
1,
255
],
"$TC actions add action connmark zone 777 pass index 555"
],
"cmdUnderTest": "$TC actions replace action connmark zone 555 reclassify index 555",
"expExitCode": "0",
"verifyCmd": "$TC actions get action connmark index 555",
"matchPattern": "action order [0-9]+: connmark zone 555 reclassify.*index 555 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action connmark"
]
},
{
"id": "5f8f",
"name": "Add valid connmark action with cookie",
"category": [
"actions",
"connmark"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action connmark",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action connmark zone 555 pipe index 5 cookie aabbccddeeff112233445566778800a1",
"expExitCode": "0",
"verifyCmd": "$TC actions get action connmark index 5",
"matchPattern": "action order [0-9]+: connmark zone 555 pipe.*index 5 ref.*cookie aabbccddeeff112233445566778800a1",
"matchCount": "1",
"teardown": [
"$TC actions flush action connmark"
]
},
{
"id": "c506",
"name": "Replace connmark with invalid goto chain control",
"category": [
"actions",
"connmark"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action connmark",
0,
1,
255
],
"$TC actions add action connmark pass index 90"
],
"cmdUnderTest": "$TC actions replace action connmark goto chain 42 index 90 cookie c1a0c1a0",
"expExitCode": "255",
"verifyCmd": "$TC actions get action connmark index 90",
"matchPattern": "action order [0-9]+: connmark zone 0 pass.*index 90 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action connmark"
]
},
{
"id": "6571",
"name": "Delete connmark action with valid index",
"category": [
"actions",
"connmark"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action connmark",
0,
1,
255
],
"$TC actions add action connmark pass index 20"
],
"cmdUnderTest": "$TC actions del action connmark index 20",
"expExitCode": "0",
"verifyCmd": "$TC actions get action connmark index 20",
"matchPattern": "action order [0-9]+: connmark zone 0 pass.*index 20 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action connmark"
]
},
{
"id": "3426",
"name": "Delete connmark action with invalid index",
"category": [
"actions",
"connmark"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action connmark",
0,
1,
255
],
"$TC actions add action connmark pass index 20"
],
"cmdUnderTest": "$TC actions del action connmark index 1",
"expExitCode": "255",
"verifyCmd": "$TC actions get action connmark index 20",
"matchPattern": "action order [0-9]+: connmark zone 0 pass.*index 20 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action connmark"
]
}
]
@@ -0,0 +1,622 @@
[
{
"id": "6d84",
"name": "Add csum iph action",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action csum iph index 800",
"expExitCode": "0",
"verifyCmd": "$TC actions get action csum index 800",
"matchPattern": "action order [0-9]*: csum \\(iph\\) action pass.*index 800 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action csum"
]
},
{
"id": "1862",
"name": "Add csum ip4h action",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action csum ip4h index 7",
"expExitCode": "0",
"verifyCmd": "$TC actions get action csum index 7",
"matchPattern": "action order [0-9]*: csum \\(iph\\) action pass.*index 7 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action csum"
]
},
{
"id": "15c6",
"name": "Add csum ipv4h action",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action csum ipv4h index 1122",
"expExitCode": "0",
"verifyCmd": "$TC actions get action csum index 1122",
"matchPattern": "action order [0-9]*: csum \\(iph\\) action pass.*index 1122 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action csum"
]
},
{
"id": "bf47",
"name": "Add csum icmp action",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action csum icmp index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions get action csum index 1",
"matchPattern": "action order [0-9]*: csum \\(icmp\\) action pass.*index 1 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action csum"
]
},
{
"id": "cc1d",
"name": "Add csum igmp action",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action csum igmp index 999",
"expExitCode": "0",
"verifyCmd": "$TC actions get action csum index 999",
"matchPattern": "action order [0-9]*: csum \\(igmp\\) action pass.*index 999 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action csum"
]
},
{
"id": "bccc",
"name": "Add csum foobar action",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action csum foobar index 1",
"expExitCode": "255",
"verifyCmd": "$TC actions ls action csum",
"matchPattern": "action order [0-9]*: csum \\(foobar\\) action pass.*index 1 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action csum"
]
},
{
"id": "3bb4",
"name": "Add csum tcp action",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action csum tcp index 9999",
"expExitCode": "0",
"verifyCmd": "$TC actions get action csum index 9999",
"matchPattern": "action order [0-9]*: csum \\(tcp\\) action pass.*index 9999 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action csum"
]
},
{
"id": "759c",
"name": "Add csum udp action",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action csum udp index 334455",
"expExitCode": "0",
"verifyCmd": "$TC actions get action csum index 334455",
"matchPattern": "action order [0-9]*: csum \\(udp\\) action pass.*index 334455 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action csum"
]
},
{
"id": "bdb6",
"name": "Add csum udp xor iph action",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action csum udp xor iph index 3",
"expExitCode": "255",
"verifyCmd": "$TC actions ls action csum",
"matchPattern": "action order [0-9]*: csum \\(udp xor iph\\) action pass.*index 3 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action csum"
]
},
{
"id": "c220",
"name": "Add csum udplite action",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action csum udplite continue index 3",
"expExitCode": "0",
"verifyCmd": "$TC actions get action csum index 3",
"matchPattern": "action order [0-9]*: csum \\(udplite\\) action continue.*index 3 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action csum"
]
},
{
"id": "8993",
"name": "Add csum sctp action",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action csum sctp index 777",
"expExitCode": "0",
"verifyCmd": "$TC actions get action csum index 777",
"matchPattern": "action order [0-9]*: csum \\(sctp\\) action pass.*index 777 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action csum"
]
},
{
"id": "b138",
"name": "Add csum ip & icmp action",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action csum ip and icmp pipe index 123",
"expExitCode": "0",
"verifyCmd": "$TC actions get action csum index 123",
"matchPattern": "action order [0-9]*: csum \\(iph, icmp\\) action pipe.*index 123 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action csum"
]
},
{
"id": "eeda",
"name": "Add csum ip & sctp action",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action csum ipv4h sctp continue index 2",
"expExitCode": "0",
"verifyCmd": "$TC actions get action csum index 2",
"matchPattern": "action order [0-9]*: csum \\(iph, sctp\\) action continue.*index 2 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action csum"
]
},
{
"id": "0017",
"name": "Add csum udp or tcp action",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action csum udp or tcp continue index 27",
"expExitCode": "0",
"verifyCmd": "$TC actions get action csum index 27",
"matchPattern": "action order [0-9]*: csum \\(tcp, udp\\) action continue.*index 27 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action csum"
]
},
{
"id": "b10b",
"name": "Add all 7 csum actions",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action csum icmp ip4h sctp igmp udplite udp tcp index 7",
"expExitCode": "0",
"verifyCmd": "$TC actions get action csum index 7",
"matchPattern": "action order [0-9]*: csum \\(iph, icmp, igmp, tcp, udp, udplite, sctp\\).*index 7 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action csum"
]
},
{
"id": "ce92",
"name": "Add csum udp action with cookie",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action csum udp pipe index 7 cookie 12345678",
"expExitCode": "0",
"verifyCmd": "$TC actions get action csum index 7",
"matchPattern": "action order [0-9]*: csum \\(udp\\) action pipe.*index 7.*cookie 12345678",
"matchCount": "1",
"teardown": [
"$TC actions flush action csum"
]
},
{
"id": "912f",
"name": "Add csum icmp action with large cookie",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action csum icmp pipe index 17 cookie aabbccddeeff1122",
"expExitCode": "0",
"verifyCmd": "$TC actions get action csum index 17",
"matchPattern": "action order [0-9]*: csum \\(icmp\\) action pipe.*index 17.*cookie aabbccddeeff1122",
"matchCount": "1",
"teardown": [
"$TC actions flush action csum"
]
},
{
"id": "879b",
"name": "Add batch of 32 csum tcp actions",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
]
],
"cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action csum tcp continue index \\$i \\\"; args=\"\\$args\\$cmd\"; done && $TC actions add \\$args\"",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action csum",
"matchPattern": "^[ \t]+index [0-9]* ref",
"matchCount": "32",
"teardown": [
"$TC actions flush action csum"
]
},
{
"id": "b4e9",
"name": "Delete batch of 32 csum actions",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
],
"bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action csum tcp continue index \\$i \\\"; args=\"\\$args\\$cmd\"; done && $TC actions add \\$args\""
],
"cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action csum index \\$i \\\"; args=\"\\$args\\$cmd\"; done && $TC actions del \\$args\"",
"expExitCode": "0",
"verifyCmd": "$TC actions list action csum",
"matchPattern": "^[ \t]+index [0-9]+ ref",
"matchCount": "0",
"teardown": []
},
{
"id": "0015",
"name": "Add batch of 32 csum tcp actions with large cookies",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
]
],
"cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action csum tcp continue index \\$i cookie 123456789abcde \\\"; args=\"\\$args\\$cmd\"; done && $TC actions add \\$args\"",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action csum",
"matchPattern": "^[ \t]+index [0-9]* ref",
"matchCount": "32",
"teardown": [
"$TC actions flush action csum"
]
},
{
"id": "989e",
"name": "Delete batch of 32 csum actions with large cookies",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
],
"bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action csum tcp continue index \\$i cookie 123456789abcde \\\"; args=\"\\$args\\$cmd\"; done && $TC actions add \\$args\""
],
"cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action csum index \\$i \\\"; args=\"\\$args\\$cmd\"; done && $TC actions del \\$args\"",
"expExitCode": "0",
"verifyCmd": "$TC actions list action csum",
"matchPattern": "^[ \t]+index [0-9]+ ref",
"matchCount": "0",
"teardown": []
},
{
"id": "d128",
"name": "Replace csum action with invalid goto chain control",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
],
"$TC actions add action csum iph index 90"
],
"cmdUnderTest": "$TC actions replace action csum iph goto chain 42 index 90 cookie c1a0c1a0",
"expExitCode": "255",
"verifyCmd": "$TC actions get action csum index 90",
"matchPattern": "action order [0-9]*: csum \\(iph\\) action pass.*index 90 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action csum"
]
},
{
"id": "eaf0",
"name": "Add csum iph action with no_percpu flag",
"category": [
"actions",
"csum"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action csum",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action csum iph no_percpu",
"expExitCode": "0",
"verifyCmd": "$TC actions list action csum",
"matchPattern": "action order [0-9]*: csum \\(iph\\) action pass.*no_percpu",
"matchCount": "1",
"teardown": [
"$TC actions flush action csum"
]
}
]
@@ -0,0 +1,746 @@
[
{
"id": "696a",
"name": "Add simple ct action",
"category": [
"actions",
"ct"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ct",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action ct index 42",
"expExitCode": "0",
"verifyCmd": "$TC actions list action ct",
"matchPattern": "action order [0-9]*: ct zone 0 pipe.*index 42 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action ct"
]
},
{
"id": "e38c",
"name": "Add simple ct action with cookie",
"category": [
"actions",
"ct"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ct",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action ct index 42 cookie deadbeef",
"expExitCode": "0",
"verifyCmd": "$TC actions list action ct",
"matchPattern": "action order [0-9]*: ct zone 0 pipe.*index 42 ref.*cookie deadbeef",
"matchCount": "1",
"teardown": [
"$TC actions flush action ct"
]
},
{
"id": "9f20",
"name": "Add ct clear action",
"category": [
"actions",
"ct"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ct",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action ct clear index 42",
"expExitCode": "0",
"verifyCmd": "$TC actions list action ct",
"matchPattern": "action order [0-9]*: ct clear pipe.*index 42 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action ct"
]
},
{
"id": "0bc1",
"name": "Add ct clear action with cookie of max length",
"category": [
"actions",
"ct"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ct",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action ct clear index 42 cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
"expExitCode": "0",
"verifyCmd": "$TC actions list action ct",
"matchPattern": "action order [0-9]*: ct clear pipe.*index 42 ref.*cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
"matchCount": "1",
"teardown": [
"$TC actions flush action ct"
]
},
{
"id": "5bea",
"name": "Try ct with zone",
"category": [
"actions",
"ct"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ct",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action ct zone 404 index 42",
"expExitCode": "0",
"verifyCmd": "$TC actions list action ct",
"matchPattern": "action order [0-9]*: ct zone 404 pipe.*index 42 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action ct"
]
},
{
"id": "d5d6",
"name": "Try ct with zone, commit",
"category": [
"actions",
"ct"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ct",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action ct zone 404 commit index 42",
"expExitCode": "0",
"verifyCmd": "$TC actions list action ct",
"matchPattern": "action order [0-9]*: ct commit zone 404 pipe.*index 42 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action ct"
]
},
{
"id": "029f",
"name": "Try ct with zone, commit, mark",
"category": [
"actions",
"ct"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ct",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action ct zone 404 commit mark 0x42 index 42",
"expExitCode": "0",
"verifyCmd": "$TC actions list action ct",
"matchPattern": "action order [0-9]*: ct commit mark 66 zone 404 pipe.*index 42 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action ct"
]
},
{
"id": "a58d",
"name": "Try ct with zone, commit, mark, nat",
"category": [
"actions",
"ct"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ct",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action ct zone 404 commit mark 0x42 nat src addr 5.5.5.7 index 42",
"expExitCode": "0",
"verifyCmd": "$TC actions list action ct",
"matchPattern": "action order [0-9]*: ct commit mark 66 zone 404 nat src addr 5.5.5.7 pipe.*index 42 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action ct"
]
},
{
"id": "901b",
"name": "Try ct with full nat ipv4 range syntax",
"category": [
"actions",
"ct"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ct",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action ct commit nat src addr 5.5.5.7-5.5.6.0 port 1000-2000 index 44",
"expExitCode": "0",
"verifyCmd": "$TC actions list action ct",
"matchPattern": "action order [0-9]*: ct commit zone 0 nat src addr 5.5.5.7-5.5.6.0 port 1000-2000 pipe.*index 44 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action ct"
]
},
{
"id": "072b",
"name": "Try ct with full nat ipv6 syntax",
"category": [
"actions",
"ct"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ct",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action ct commit nat src addr 2001::1 port 1000-2000 index 44",
"expExitCode": "0",
"verifyCmd": "$TC actions list action ct",
"matchPattern": "action order [0-9]*: ct commit zone 0 nat src addr 2001::1 port 1000-2000 pipe.*index 44 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action ct"
]
},
{
"id": "3420",
"name": "Try ct with full nat ipv6 range syntax",
"category": [
"actions",
"ct"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ct",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action ct commit nat src addr 2001::1-2001::10 port 1000-2000 index 44",
"expExitCode": "0",
"verifyCmd": "$TC actions list action ct",
"matchPattern": "action order [0-9]*: ct commit zone 0 nat src addr 2001::1-2001::10 port 1000-2000 pipe.*index 44 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action ct"
]
},
{
"id": "4470",
"name": "Try ct with full nat ipv6 range syntax + force",
"category": [
"actions",
"ct"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ct",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action ct commit force nat src addr 2001::1-2001::10 port 1000-2000 index 44",
"expExitCode": "0",
"verifyCmd": "$TC actions list action ct",
"matchPattern": "action order [0-9]*: ct commit force zone 0 nat src addr 2001::1-2001::10 port 1000-2000 pipe.*index 44 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action ct"
]
},
{
"id": "5d88",
"name": "Try ct with label",
"category": [
"actions",
"ct"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ct",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action ct label 123123 index 44",
"expExitCode": "0",
"verifyCmd": "$TC actions list action ct",
"matchPattern": "action order [0-9]*: ct zone 0 label 12312300000000000000000000000000 pipe.*index 44 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action ct"
]
},
{
"id": "04d4",
"name": "Try ct with label with mask",
"category": [
"actions",
"ct"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ct",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action ct label 12312300000000000000000000000001/ffffffff000000000000000000000001 index 44",
"expExitCode": "0",
"verifyCmd": "$TC actions list action ct",
"matchPattern": "action order [0-9]*: ct zone 0 label 12312300000000000000000000000001/ffffffff000000000000000000000001 pipe.*index 44 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action ct"
]
},
{
"id": "9751",
"name": "Try ct with mark + mask",
"category": [
"actions",
"ct"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ct",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action ct mark 0x42/0xf0 index 42",
"expExitCode": "0",
"verifyCmd": "$TC actions list action ct",
"matchPattern": "action order [0-9]*: ct mark 66/0xf0 zone 0 pipe.*index 42 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action ct"
]
},
{
"id": "2faa",
"name": "Try ct with mark + mask and cookie",
"category": [
"actions",
"ct"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ct",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action ct mark 0x42/0xf0 index 42 cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
"expExitCode": "0",
"verifyCmd": "$TC actions list action ct",
"matchPattern": "action order [0-9]*: ct mark 66/0xf0 zone 0 pipe.*index 42 ref.*cookie aa11bb22cc33dd44ee55ff66aa11b1b2",
"matchCount": "1",
"teardown": [
"$TC actions flush action ct"
]
},
{
"id": "3991",
"name": "Add simple ct action with no_percpu flag",
"category": [
"actions",
"ct"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ct",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action ct no_percpu",
"expExitCode": "0",
"verifyCmd": "$TC actions list action ct",
"matchPattern": "action order [0-9]*: ct zone 0 pipe.*no_percpu",
"matchCount": "1",
"teardown": [
"$TC actions flush action ct"
]
},
{
"id": "3992",
"name": "Add ct action triggering DNAT tuple conflict",
"category": [
"actions",
"ct",
"scapy"
],
"plugins": {
"requires": "nsPlugin"
},
"plugins": {
"requires": [
"nsPlugin",
"scapyPlugin"
]
},
"setup": [
[
"$TC qdisc del dev $DEV1 ingress",
0,
1,
2,
255
],
"$TC qdisc add dev $DEV1 ingress"
],
"cmdUnderTest": "$TC filter add dev $DEV1 ingress protocol ip prio 1 flower ct_state -trk action ct commit nat dst addr 20.0.0.1 port 10 pipe action drop",
"scapy": [
{
"iface": "$DEV0",
"count": 1,
"packet": "Ether(type=0x800)/IP(src='10.0.0.10',dst='10.0.0.10')/TCP(sport=5000,dport=10)"
},
{
"iface": "$DEV0",
"count": 1,
"packet": "Ether(type=0x800)/IP(src='10.0.0.10',dst='10.0.0.20')/TCP(sport=5000,dport=10)"
}
],
"expExitCode": "0",
"verifyCmd": "cat /proc/net/nf_conntrack",
"matchPattern": "dst=10.0.0.20",
"matchCount": "1",
"teardown": [
"$TC qdisc del dev $DEV1 ingress"
]
},
{
"id": "8883",
"name": "Try to attach act_ct to an ets qdisc",
"category": [
"actions",
"ct"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ct",
0,
1,
255
],
"$TC qdisc add dev $DEV1 root handle 1: ets bands 2"
],
"cmdUnderTest": "$TC filter add dev $DEV1 parent 1: prio 1 protocol ip matchall action ct index 42",
"expExitCode": "2",
"verifyCmd": "$TC -j filter ls dev $DEV1 parent 1: prio 1 protocol ip",
"matchJSON": [],
"teardown": [
"$TC qdisc del dev $DEV1 root"
]
},
{
"id": "3b10",
"name": "Attach act_ct to an ingress qdisc",
"category": [
"actions",
"ct"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ct",
0,
1,
255
],
"$TC qdisc add dev $DEV1 ingress"
],
"cmdUnderTest": "$TC filter add dev $DEV1 ingress prio 1 protocol ip matchall action ct index 42",
"expExitCode": "0",
"verifyCmd": "$TC -j filter ls dev $DEV1 ingress prio 1 protocol ip",
"matchJSON": [
{
"kind": "matchall"
},
{
"options": {
"actions": [
{
"order": 1,
"kind": "ct",
"index": 42,
"ref": 1,
"bind": 1
}
]
}
}
],
"teardown": [
"$TC qdisc del dev $DEV1 ingress"
]
},
{
"id": "0337",
"name": "Attach act_ct to a clsact/egress qdisc",
"category": [
"actions",
"ct"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ct",
0,
1,
255
],
"$TC qdisc add dev $DEV1 clsact"
],
"cmdUnderTest": "$TC filter add dev $DEV1 egress prio 1 protocol ip matchall action ct index 42",
"expExitCode": "0",
"verifyCmd": "$TC -j filter ls dev $DEV1 egress prio 1 protocol ip",
"matchJSON": [
{
"kind": "matchall"
},
{
"options": {
"actions": [
{
"order": 1,
"kind": "ct",
"index": 42,
"ref": 1,
"bind": 1
}
]
}
}
],
"teardown": [
"$TC qdisc del dev $DEV1 clsact"
]
},
{
"id": "4f60",
"name": "Attach act_ct to a shared block",
"category": [
"actions",
"ct"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ct",
0,
1,
255
],
"$TC qdisc add dev $DEV1 ingress_block 21 clsact"
],
"cmdUnderTest": "$TC filter add block 21 prio 1 protocol ip matchall action ct index 42",
"expExitCode": "0",
"verifyCmd": "$TC -j filter ls block 21 prio 1 protocol ip",
"matchJSON": [
{
"kind": "matchall"
},
{
"options": {
"actions": [
{
"order": 1,
"kind": "ct",
"index": 42,
"ref": 1,
"bind": 1
}
]
}
}
],
"teardown": [
"$TC qdisc del dev $DEV1 ingress_block 21 clsact"
]
},
{
"id": "9c2a",
"name": "Act_ct preserves skb cb across defrag before prio dequeue",
"category": [
"actions",
"ct",
"scapy"
],
"plugins": {
"requires": [
"nsPlugin",
"scapyPlugin"
]
},
"setup": [
"$TC qdisc add dev $DUMMY root handle 1: prio",
"$TC qdisc add dev $DUMMY clsact",
"$TC qdisc add dev $DEV1 clsact",
"$TC filter add dev $DEV1 ingress protocol ip prio 1 matchall action mirred egress redirect dev $DUMMY"
],
"cmdUnderTest": "$TC filter add dev $DUMMY egress protocol ip prio 1 matchall action ct zone 1 pipe",
"scapy": [
{
"iface": "$DEV0",
"count": 1,
"packet": "[Ether()/frag for frag in fragment(IP(src='10.0.0.10', dst='10.0.0.1', id=1)/UDP(sport=12345, dport=9)/Raw(b'A' * 4000), fragsize=1400)]"
}
],
"expExitCode": "0",
"verifyCmd": "$TC -s qdisc show dev $DUMMY | grep -A 1 '^qdisc prio 1:'",
"matchPattern": "Sent [1-9][0-9]* bytes [1-9][0-9]* pkt",
"matchCount": "1",
"teardown": [
"$TC qdisc del dev $DEV1 clsact",
"$TC qdisc del dev $DUMMY clsact",
"$TC qdisc del dev $DUMMY root handle 1:"
]
},
{
"id": "c7a3",
"name": "Verify act_ct drops a packet whose header checks fail",
"category": [
"actions",
"ct",
"scapy"
],
"plugins": {
"requires": [
"nsPlugin",
"scapyPlugin"
]
},
"setup": [
[
"$TC qdisc del dev $DEV1 clsact",
0,
1,
2,
255
],
"$TC qdisc add dev $DEV1 clsact"
],
"cmdUnderTest": "$TC filter add dev $DEV1 ingress protocol all prio 1 matchall action ct",
"scapy": [
{
"iface": "$DEV0",
"count": 10,
"packet": "Ether(type=0x86dd)/IPv6(nh=0, plen=0, src='::1', dst='::2')"
}
],
"expExitCode": "0",
"verifyCmd": "$TC -s qdisc show dev $DEV1 clsact",
"matchPattern": "dropped 10",
"matchCount": "1",
"teardown": [
"$TC qdisc del dev $DEV1 clsact"
]
}
]
@@ -0,0 +1,352 @@
[
{
"id": "c826",
"name": "Add ctinfo action with default setting",
"category": [
"actions",
"ctinfo"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC action flush action ctinfo",
0,
1,
255
]
],
"cmdUnderTest": "$TC action add action ctinfo index 10",
"expExitCode": "0",
"verifyCmd": "$TC action get action ctinfo index 10",
"matchPattern": "action order [0-9]*: ctinfo zone 0 pipe.*index 10 ref",
"matchCount": "1",
"teardown": [
"$TC action flush action ctinfo"
]
},
{
"id": "0286",
"name": "Add ctinfo action with dscp",
"category": [
"actions",
"ctinfo"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ctinfo",
0,
1,
255
]
],
"cmdUnderTest": "$TC action add action ctinfo dscp 0xfc000000 0x01000000 index 100",
"expExitCode": "0",
"verifyCmd": "$TC action ls action ctinfo",
"matchPattern": "action order [0-9]*: ctinfo zone 0 pipe.*index 100 ref.*dscp 0xfc000000 0x01000000",
"matchCount": "1",
"teardown": [
"$TC actions flush action ctinfo"
]
},
{
"id": "4938",
"name": "Add ctinfo action with valid cpmark and zone",
"category": [
"actions",
"ctinfo"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC action flush action ctinfo",
0,
1,
255
]
],
"cmdUnderTest": "$TC action add action ctinfo cpmark 0x01000000 zone 1 index 1",
"expExitCode": "0",
"verifyCmd": "$TC action get action ctinfo index 1",
"matchPattern": "action order [0-9]*: ctinfo zone 1 pipe.*index 1 ref.*cpmark 0x01000000",
"matchCount": "1",
"teardown": [
"$TC action flush action ctinfo"
]
},
{
"id": "7593",
"name": "Add ctinfo action with drop control",
"category": [
"actions",
"ctinfo"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC action flush action ctinfo",
0,
1,
255
]
],
"cmdUnderTest": "$TC action add action ctinfo drop index 1000",
"expExitCode": "0",
"verifyCmd": "$TC action ls action ctinfo",
"matchPattern": "action order [0-9]*: ctinfo zone 0 drop.*index 1000 ref",
"matchCount": "1",
"teardown": [
"$TC action flush action ctinfo"
]
},
{
"id": "2961",
"name": "Replace ctinfo action zone and action control",
"category": [
"actions",
"ctinfo"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ctinfo",
0,
1,
255
],
[
"$TC action add action ctinfo zone 1 drop index 1",
0,
1,
255
]
],
"cmdUnderTest": "$TC action replace action ctinfo zone 200 pass index 1",
"expExitCode": "0",
"verifyCmd": "$TC action get action ctinfo index 1",
"matchPattern": "action order [0-9]*: ctinfo zone 200 pass.*index 1 ref",
"matchCount": "1",
"teardown": [
"$TC action flush action ctinfo"
]
},
{
"id": "e567",
"name": "Delete ctinfo action with valid index",
"category": [
"actions",
"ctinfo"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ctinfo",
0,
1,
255
],
[
"$TC action add action ctinfo zone 200 pass index 1",
0,
1,
255
]
],
"cmdUnderTest": "$TC action delete action ctinfo index 1",
"expExitCode": "0",
"verifyCmd": "$TC action get action ctinfo index 1",
"matchPattern": "action order [0-9]*: ctinfo zone 200 pass.*index 1 ref",
"matchCount": "0",
"teardown": [
"$TC action flush action ctinfo"
]
},
{
"id": "6a91",
"name": "Delete ctinfo action with invalid index",
"category": [
"actions",
"ctinfo"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ctinfo",
0,
1,
255
],
[
"$TC action add action ctinfo zone 200 pass index 1",
0,
1,
255
]
],
"cmdUnderTest": "$TC action delete action ctinfo index 333",
"expExitCode": "255",
"verifyCmd": "$TC action get action ctinfo index 1",
"matchPattern": "action order [0-9]*: ctinfo zone 200 pass.*index 1 ref",
"matchCount": "1",
"teardown": [
"$TC action flush action ctinfo"
]
},
{
"id": "5232",
"name": "List ctinfo actions",
"category": [
"actions",
"ctinfo"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC action flush action ctinfo",
0,
1,
255
],
"$TC action add action ctinfo zone 20 pass index 101",
"$TC action add action ctinfo cpmark 0x02000000 drop index 102",
"$TC action add action ctinfo continue index 103"
],
"cmdUnderTest": "$TC action list action ctinfo",
"expExitCode": "0",
"verifyCmd": "$TC action list action ctinfo",
"matchPattern": "action order [0-9]*: ctinfo",
"matchCount": "3",
"teardown": [
"$TC actions flush action ctinfo"
]
},
{
"id": "7702",
"name": "Flush ctinfo actions",
"category": [
"actions",
"ctinfo"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ctinfo",
0,
1,
255
],
"$TC action add action ctinfo zone 20 pass index 101",
"$TC action add action ctinfo cpmark 0x02000000 drop index 102",
"$TC action add action ctinfo continue index 103"
],
"cmdUnderTest": "$TC action flush action ctinfo",
"expExitCode": "0",
"verifyCmd": "$TC action list action ctinfo",
"matchPattern": "action order [0-9]*: ctinfo",
"matchCount": "0",
"teardown": [
"$TC actions flush action ctinfo"
]
},
{
"id": "3201",
"name": "Add ctinfo action with duplicate index",
"category": [
"actions",
"ctinfo"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ctinfo",
0,
1,
255
],
"$TC action add action ctinfo zone 20 pass index 101"
],
"cmdUnderTest": "$TC action add action ctinfo cpmark 0x02000000 drop index 101",
"expExitCode": "255",
"verifyCmd": "$TC action get action ctinfo index 101",
"matchPattern": "action order [0-9]*: ctinfo zone 20 pass.*index 101",
"matchCount": "1",
"teardown": [
"$TC action flush action ctinfo"
]
},
{
"id": "8295",
"name": "Add ctinfo action with invalid index",
"category": [
"actions",
"ctinfo"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ctinfo",
0,
1,
255
]
],
"cmdUnderTest": "$TC action add action ctinfo zone 20 index 4294967296",
"expExitCode": "255",
"verifyCmd": "$TC action ls action ctinfo",
"matchPattern": "action order [0-9]*: ctinfo",
"matchCount": "0",
"teardown": [
"$TC action flush action ctinfo"
]
},
{
"id": "3964",
"name": "Replace ctinfo action with invalid goto_chain control",
"category": [
"actions",
"ctinfo"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action ctinfo",
0,
1,
255
],
"$TC action add action ctinfo pass index 90"
],
"cmdUnderTest": "$TC action replace action ctinfo goto chain 42 index 90",
"expExitCode": "255",
"verifyCmd": "$TC action list action ctinfo",
"matchPattern": "action order [0-9]*: ctinfo.*pass.*index 90",
"matchCount": "1",
"teardown": [
"$TC action flush action ctinfo"
]
}
]
@@ -0,0 +1,765 @@
[
{
"id": "e89a",
"name": "Add valid pass action",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action pass index 8",
"expExitCode": "0",
"verifyCmd": "$TC actions list action gact",
"matchPattern": "action order [0-9]*: gact action pass.*index 8 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "a02c",
"name": "Add valid pipe action",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action pipe index 6",
"expExitCode": "0",
"verifyCmd": "$TC actions list action gact",
"matchPattern": "action order [0-9]*: gact action pipe.*index 6 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "feef",
"name": "Add valid reclassify action",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action reclassify index 5",
"expExitCode": "0",
"verifyCmd": "$TC actions list action gact",
"matchPattern": "action order [0-9]*: gact action reclassify.*index 5 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "8a7a",
"name": "Add valid drop action",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action drop index 30",
"expExitCode": "0",
"verifyCmd": "$TC actions list action gact",
"matchPattern": "action order [0-9]*: gact action drop.*index 30 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "9a52",
"name": "Add valid continue action",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action continue index 432",
"expExitCode": "0",
"verifyCmd": "$TC actions list action gact",
"matchPattern": "action order [0-9]*: gact action continue.*index 432 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "d700",
"name": "Add invalid action",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action pump index 386",
"expExitCode": "255",
"verifyCmd": "$TC actions list action gact",
"matchPattern": "action order [0-9]*: gact action.*index 386 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "9215",
"name": "Add action with duplicate index",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
],
"$TC actions add action pipe index 15"
],
"cmdUnderTest": "$TC actions add action drop index 15",
"expExitCode": "255",
"verifyCmd": "$TC actions list action gact",
"matchPattern": "action order [0-9]*: gact action drop.*index 15 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "798e",
"name": "Add action with index exceeding 32-bit maximum",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action drop index 4294967296",
"expExitCode": "255",
"verifyCmd": "actions list action gact",
"matchPattern": "action order [0-9]*: gact action drop.*index 4294967296 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "22be",
"name": "Add action with index at 32-bit maximum",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action drop index 4294967295",
"expExitCode": "0",
"verifyCmd": "$TC actions list action gact",
"matchPattern": "action order [0-9]*: gact action drop.*index 4294967295 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "ac2a",
"name": "List actions",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
],
"$TC actions add action reclassify index 101",
"$TC actions add action reclassify index 102",
"$TC actions add action reclassify index 103",
"$TC actions add action reclassify index 104",
"$TC actions add action reclassify index 105"
],
"cmdUnderTest": "$TC actions list action gact",
"expExitCode": "0",
"verifyCmd": "$TC actions list action gact",
"matchPattern": "action order [0-9]*: gact action reclassify",
"matchCount": "5",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "3edf",
"name": "Flush gact actions",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
"$TC actions add action reclassify index 101",
"$TC actions add action reclassify index 102",
"$TC actions add action reclassify index 103",
"$TC actions add action reclassify index 104",
"$TC actions add action reclassify index 105"
],
"cmdUnderTest": "$TC actions flush action gact",
"expExitCode": "0",
"verifyCmd": "$TC actions list action gact",
"matchPattern": "action order [0-9]*: gact action reclassify",
"matchCount": "0",
"teardown": []
},
{
"id": "63ec",
"name": "Delete pass action",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
],
"$TC actions add action pass index 1"
],
"cmdUnderTest": "$TC actions del action gact index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions list action gact",
"matchPattern": "action order [0-9]*: gact action pass.*index 1 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "46be",
"name": "Delete pipe action",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
],
"$TC actions add action pipe index 9"
],
"cmdUnderTest": "$TC actions del action gact index 9",
"expExitCode": "0",
"verifyCmd": "$TC actions list action gact",
"matchPattern": "action order [0-9]*: gact action pipe.*index 9 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "2e08",
"name": "Delete reclassify action",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
],
"$TC actions add action reclassify index 65536"
],
"cmdUnderTest": "$TC actions del action gact index 65536",
"expExitCode": "0",
"verifyCmd": "$TC actions list action gact",
"matchPattern": "action order [0-9]*: gact action reclassify.*index 65536 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "99c4",
"name": "Delete drop action",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
],
"$TC actions add action drop index 16"
],
"cmdUnderTest": "$TC actions del action gact index 16",
"expExitCode": "0",
"verifyCmd": "$TC actions list action gact",
"matchPattern": "action order [0-9]*: gact action drop.*index 16 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "fb6b",
"name": "Delete continue action",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
],
"$TC actions add action continue index 32"
],
"cmdUnderTest": "$TC actions del action gact index 32",
"expExitCode": "0",
"verifyCmd": "actions list action gact",
"matchPattern": "action order [0-9]*: gact action continue.*index 32 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "0eb3",
"name": "Delete non-existent action",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions del action gact index 2",
"expExitCode": "255",
"verifyCmd": "$TC actions list action gact",
"matchPattern": "action order [0-9]*: gact action",
"matchCount": "0",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "f02c",
"name": "Replace gact action",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
],
"$TC actions add action drop index 10",
"$TC actions add action drop index 12"
],
"cmdUnderTest": "$TC actions replace action ok index 12",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action gact",
"matchPattern": "action order [0-9]*: gact action pass",
"matchCount": "1",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "525f",
"name": "Get gact action by index",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
],
"$TC actions add action drop index 3900800700"
],
"cmdUnderTest": "$TC actions get action gact index 3900800700",
"expExitCode": "0",
"verifyCmd": "$TC actions get action gact index 3900800700",
"matchPattern": "index 3900800700",
"matchCount": "1",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "1021",
"name": "Add batch of 32 gact pass actions",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
]
],
"cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action pass index \\$i \\\"; args=\"\\$args\\$cmd\"; done && $TC actions add \\$args\"",
"expExitCode": "0",
"verifyCmd": "$TC actions list action gact",
"matchPattern": "^[ \t]+index [0-9]+ ref",
"matchCount": "32",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "da7a",
"name": "Add batch of 32 gact continue actions with cookie",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
]
],
"cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action continue index \\$i cookie aabbccddeeff112233445566778800a1 \\\"; args=\"\\$args\\$cmd\"; done && $TC actions add \\$args\"",
"expExitCode": "0",
"verifyCmd": "$TC actions list action gact",
"matchPattern": "^[ \t]+index [0-9]+ ref",
"matchCount": "32",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "8aa3",
"name": "Delete batch of 32 gact continue actions",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
],
"bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action continue index \\$i \\\"; args=\\\"\\$args\\$cmd\\\"; done && $TC actions add \\$args\""
],
"cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action gact index \\$i \\\"; args=\"\\$args\\$cmd\"; done && $TC actions del \\$args\"",
"expExitCode": "0",
"verifyCmd": "$TC actions list action gact",
"matchPattern": "^[ \t]+index [0-9]+ ref",
"matchCount": "0",
"teardown": []
},
{
"id": "8e47",
"name": "Add gact action with random determ goto chain control action",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action pass random determ goto chain 1 2 index 90",
"expExitCode": "255",
"verifyCmd": "$TC actions list action gact",
"matchPattern": "action order [0-9]*: gact action pass random type determ goto chain 1 val 2.*index 90 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "ca89",
"name": "Replace gact action with invalid goto chain control",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
],
"$TC actions add action pass random determ drop 2 index 90"
],
"cmdUnderTest": "$TC actions replace action goto chain 42 random determ drop 5 index 90 cookie c1a0c1a0",
"expExitCode": "255",
"verifyCmd": "$TC actions list action gact",
"matchPattern": "action order [0-9]*: gact action pass.*random type determ drop val 2.*index 90 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "95ad",
"name": "Add gact pass action with no_percpu flag",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action pass no_percpu",
"expExitCode": "0",
"verifyCmd": "$TC actions list action gact",
"matchPattern": "action order [0-9]*: gact action pass.*no_percpu",
"matchCount": "1",
"teardown": [
"$TC actions flush action gact"
]
},
{
"id": "7f52",
"name": "Try to flush action which is referenced by filter",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
],
"$TC qdisc add dev $DEV1 ingress",
"$TC actions add action pass index 1",
"$TC filter add dev $DEV1 protocol all ingress prio 1 handle 0x1234 matchall action gact index 1"
],
"cmdUnderTest": "$TC actions flush action gact",
"expExitCode": "1",
"verifyCmd": "$TC actions ls action gact",
"matchPattern": "total acts 1.*action order [0-9]*: gact action pass.*index 1 ref 2 bind 1",
"matchCount": "1",
"teardown": [
"$TC qdisc del dev $DEV1 ingress",
[
"sleep 1; $TC actions flush action gact",
0,
1
]
]
},
{
"id": "ae1e",
"name": "Try to flush actions when last one is referenced by filter",
"category": [
"actions",
"gact"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gact",
0,
1,
255
],
"$TC qdisc add dev $DEV1 ingress",
[
"$TC actions add action pass index 1",
0,
1,
255
],
"$TC actions add action reclassify index 2",
"$TC actions add action drop index 3",
"$TC filter add dev $DEV1 protocol all ingress prio 1 handle 0x1234 matchall action gact index 3"
],
"cmdUnderTest": "$TC actions flush action gact",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action gact",
"matchPattern": "total acts 1.*action order [0-9]*: gact action drop.*index 3 ref 2 bind 1",
"matchCount": "1",
"teardown": [
"$TC qdisc del dev $DEV1 ingress",
[
"sleep 1; $TC actions flush action gact",
0,
1
]
]
}
]
@@ -0,0 +1,351 @@
[
{
"id": "5153",
"name": "Add gate action with priority and sched-entry",
"category": [
"actions",
"gate"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC action flush action gate",
0,
1,
255
]
],
"cmdUnderTest": "$TC action add action gate priority 1 sched-entry close 100000000ns index 100",
"expExitCode": "0",
"verifyCmd": "$TC action get action gate index 100",
"matchPattern": "action order [0-9]*: .*priority 1.*index 100 ref",
"matchCount": "1",
"teardown": [
"$TC action flush action gate"
]
},
{
"id": "7189",
"name": "Add gate action with base-time",
"category": [
"actions",
"gate"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gate",
0,
1,
255
]
],
"cmdUnderTest": "$TC action add action gate base-time 200000000000ns sched-entry close 100000000ns index 10",
"expExitCode": "0",
"verifyCmd": "$TC action ls action gate",
"matchPattern": "action order [0-9]*: .*base-time 200s.*index 10 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action gate"
]
},
{
"id": "a721",
"name": "Add gate action with cycle-time",
"category": [
"actions",
"gate"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC action flush action gate",
0,
1,
255
]
],
"cmdUnderTest": "$TC action add action gate cycle-time 200000000000ns sched-entry close 100000000ns index 1000",
"expExitCode": "0",
"verifyCmd": "$TC action ls action gate",
"matchPattern": "action order [0-9]*: .*cycle-time 200s.*index 1000 ref",
"matchCount": "1",
"teardown": [
"$TC action flush action gate"
]
},
{
"id": "c029",
"name": "Add gate action with cycle-time-ext",
"category": [
"actions",
"gate"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC action flush action gate",
0,
1,
255
]
],
"cmdUnderTest": "$TC action add action gate cycle-time-ext 20000000000ns sched-entry close 100000000ns index 1000",
"expExitCode": "0",
"verifyCmd": "$TC action get action gate index 1000",
"matchPattern": "action order [0-9]*: .*cycle-time-ext 20s.*index 1000 ref",
"matchCount": "1",
"teardown": [
"$TC action flush action gate"
]
},
{
"id": "3719",
"name": "Replace gate base-time action",
"category": [
"actions",
"gate"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gate",
0,
1,
255
],
[
"$TC action add action gate base-time 200000000000ns sched-entry open 200000000ns -1 8000000b index 20",
0,
1,
255
]
],
"cmdUnderTest": "$TC action replace action gate base-time 400000000000ns index 20",
"expExitCode": "0",
"verifyCmd": "$TC action get action gate index 20",
"matchPattern": "action order [0-9]*: .*base-time 400s.*index 20 ref",
"matchCount": "1",
"teardown": [
"$TC action flush action gate"
]
},
{
"id": "d821",
"name": "Delete gate action with valid index",
"category": [
"actions",
"gate"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gate",
0,
1,
255
],
[
"$TC action add action gate base-time 200000000000ns sched-entry open 200000000ns -1 8000000b index 302",
0,
1,
255
]
],
"cmdUnderTest": "$TC action delete action gate index 302",
"expExitCode": "0",
"verifyCmd": "$TC action get action bpf index 302",
"matchPattern": "action order [0-9]*: .*base-time 200s.*index 302 ref",
"matchCount": "0",
"teardown": [
"$TC action flush action gate"
]
},
{
"id": "3128",
"name": "Delete gate action with invalid index",
"category": [
"actions",
"gate"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gate",
0,
1,
255
],
[
"$TC action add action gate base-time 600000000000ns sched-entry open 200000000ns -1 8000000b index 999",
0,
1,
255
]
],
"cmdUnderTest": "$TC action delete action gate index 333",
"expExitCode": "255",
"verifyCmd": "$TC action get action gate index 999",
"matchPattern": "action order [0-9]*: .*base-time 600s.*index 999 ref",
"matchCount": "1",
"teardown": [
"$TC action flush action gate"
]
},
{
"id": "7837",
"name": "List gate actions",
"category": [
"actions",
"gate"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC action flush action gate",
0,
1,
255
],
"$TC action add action gate base-time 600000000000ns sched-entry open 200000000ns -1 8000000b index 101",
"$TC action add action gate cycle-time 600000000000ns sched-entry open 600000000ns -1 8000000b index 102",
"$TC action add action gate cycle-time-ext 400000000000ns sched-entry close 100000000ns index 103"
],
"cmdUnderTest": "$TC action list action gate",
"expExitCode": "0",
"verifyCmd": "$TC action list action gate",
"matchPattern": "action order [0-9]*:",
"matchCount": "3",
"teardown": [
"$TC actions flush action gate"
]
},
{
"id": "9273",
"name": "Flush gate actions",
"category": [
"actions",
"gate"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gate",
0,
1,
255
],
"$TC action add action gate base-time 600000000000ns sched-entry open 200000000ns -1 8000000b index 101",
"$TC action add action gate cycle-time 600000000000ns sched-entry open 600000000ns -1 8000000b index 102",
"$TC action add action gate cycle-time-ext 400000000000ns sched-entry close 100000000ns index 103"
],
"cmdUnderTest": "$TC action flush action gate",
"expExitCode": "0",
"verifyCmd": "$TC action list action gate",
"matchPattern": "action order [0-9]*: .*priority",
"matchCount": "0",
"teardown": [
"$TC actions flush action gate"
]
},
{
"id": "c829",
"name": "Add gate action with duplicate index",
"category": [
"actions",
"gate"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gate",
0,
1,
255
],
"$TC action add action gate cycle-time 600000000000ns sched-entry open 600000000ns -1 8000000b index 4294967295"
],
"cmdUnderTest": "$TC action add action gate cycle-time 600000000000ns sched-entry open 600000000ns -1 8000000b index 4294967295",
"expExitCode": "255",
"verifyCmd": "$TC action get action gate index 4294967295",
"matchPattern": "action order [0-9]*: .*index 4294967295",
"matchCount": "1",
"teardown": [
"$TC action flush action gate"
]
},
{
"id": "3043",
"name": "Add gate action with invalid index",
"category": [
"actions",
"gate"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gate",
0,
1,
255
]
],
"cmdUnderTest": "$TC action add action gate cycle-time-ext 400000000000ns sched-entry close 100000000ns index 4294967296",
"expExitCode": "255",
"verifyCmd": "$TC action ls action gate",
"matchPattern": "action order [0-9]*:",
"matchCount": "0",
"teardown": [
"$TC action flush action gate"
]
},
{
"id": "2930",
"name": "Add gate action with cookie",
"category": [
"actions",
"gate"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action gate",
0,
1,
255
]
],
"cmdUnderTest": "$TC action add action gate cycle-time-ext 400000000000ns sched-entry close 100000000ns index 4294 cookie d0d0d0d0d0d0d0d0",
"expExitCode": "0",
"verifyCmd": "$TC action list action gate",
"matchPattern": "action order [0-9]*: .*cookie d0d0d0d0d0d0d0",
"matchCount": "1",
"teardown": [
"$TC action flush action gate"
]
}
]
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,749 @@
[
{
"id": "7565",
"name": "Add nat action on ingress with default control action",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat ingress 192.168.1.1 200.200.200.1",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action nat",
"matchPattern": "action order [0-9]+: nat ingress 192.168.1.1/32 200.200.200.1 pass",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "fd79",
"name": "Add nat action on ingress with pipe control action",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat ingress 1.1.1.1 2.2.2.1 pipe index 77",
"expExitCode": "0",
"verifyCmd": "$TC actions get action nat index 77",
"matchPattern": "action order [0-9]+: nat ingress 1.1.1.1/32 2.2.2.1 pipe.*index 77 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "eab9",
"name": "Add nat action on ingress with continue control action",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat ingress 192.168.10.10 192.168.20.20 continue index 1000",
"expExitCode": "0",
"verifyCmd": "$TC actions get action nat index 1000",
"matchPattern": "action order [0-9]+: nat ingress 192.168.10.10/32 192.168.20.20 continue.*index 1000 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "c53a",
"name": "Add nat action on ingress with reclassify control action",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat ingress 192.168.10.10 192.168.20.20 reclassify index 1000",
"expExitCode": "0",
"verifyCmd": "$TC actions get action nat index 1000",
"matchPattern": "action order [0-9]+: nat ingress 192.168.10.10/32 192.168.20.20 reclassify.*index 1000 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "76c9",
"name": "Add nat action on ingress with jump control action",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat ingress 12.18.10.10 12.18.20.20 jump 10 index 22",
"expExitCode": "0",
"verifyCmd": "$TC actions get action nat index 22",
"matchPattern": "action order [0-9]+: nat ingress 12.18.10.10/32 12.18.20.20 jump 10.*index 22 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "24c6",
"name": "Add nat action on ingress with drop control action",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat ingress 1.18.1.1 1.18.2.2 drop index 722",
"expExitCode": "0",
"verifyCmd": "$TC actions get action nat index 722",
"matchPattern": "action order [0-9]+: nat ingress 1.18.1.1/32 1.18.2.2 drop.*index 722 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "2120",
"name": "Add nat action on ingress with maximum index value",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat ingress 1.18.1.1 1.18.2.2 index 4294967295",
"expExitCode": "0",
"verifyCmd": "$TC actions get action nat index 4294967295",
"matchPattern": "action order [0-9]+: nat ingress 1.18.1.1/32 1.18.2.2 pass.*index 4294967295 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "3e9d",
"name": "Add nat action on ingress with invalid index value",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat ingress 1.18.1.1 1.18.2.2 index 4294967295555",
"expExitCode": "255",
"verifyCmd": "$TC actions get action nat index 4294967295555",
"matchPattern": "action order [0-9]+: nat ingress 1.18.1.1/32 1.18.2.2 pass.*index 4294967295555 ref",
"matchCount": "0",
"teardown": [
[
"$TC actions flush action nat",
0,
1,
255
]
]
},
{
"id": "f6c9",
"name": "Add nat action on ingress with invalid IP address",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat ingress 1.1.1.1 1.1888.2.2 index 7",
"expExitCode": "255",
"verifyCmd": "$TC actions get action nat index 7",
"matchPattern": "action order [0-9]+: nat ingress 1.1.1.1/32 1.1888.2.2 pass.*index 7 ref",
"matchCount": "0",
"teardown": [
[
"$TC actions flush action nat",
0,
1,
255
]
]
},
{
"id": "be25",
"name": "Add nat action on ingress with invalid argument",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat ingress 1.1.1.1 1.18.2.2 another_arg index 12",
"expExitCode": "255",
"verifyCmd": "$TC actions get action nat index 12",
"matchPattern": "action order [0-9]+: nat ingress 1.1.1.1/32 1.18.2.2 pass.*another_arg.*index 12 ref",
"matchCount": "0",
"teardown": [
[
"$TC actions flush action nat",
0,
1,
255
]
]
},
{
"id": "a7bd",
"name": "Add nat action on ingress with DEFAULT IP address",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat ingress default 10.10.10.1 index 12",
"expExitCode": "0",
"verifyCmd": "$TC actions get action nat index 12",
"matchPattern": "action order [0-9]+: nat ingress 0.0.0.0/0 10.10.10.1 pass.*index 12 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "ee1e",
"name": "Add nat action on ingress with ANY IP address",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat ingress any 10.10.10.1 index 12",
"expExitCode": "0",
"verifyCmd": "$TC actions get action nat index 12",
"matchPattern": "action order [0-9]+: nat ingress 0.0.0.0/0 10.10.10.1 pass.*index 12 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "1de8",
"name": "Add nat action on ingress with ALL IP address",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat ingress all 10.10.10.1 index 12",
"expExitCode": "0",
"verifyCmd": "$TC actions get action nat index 12",
"matchPattern": "action order [0-9]+: nat ingress 0.0.0.0/0 10.10.10.1 pass.*index 12 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "8dba",
"name": "Add nat action on egress with default control action",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat egress 10.10.10.1 20.20.20.1",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action nat",
"matchPattern": "action order [0-9]+: nat egress 10.10.10.1/32 20.20.20.1 pass",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "19a7",
"name": "Add nat action on egress with pipe control action",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat egress 10.10.10.1 20.20.20.1 pipe",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action nat",
"matchPattern": "action order [0-9]+: nat egress 10.10.10.1/32 20.20.20.1 pipe",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "f1d9",
"name": "Add nat action on egress with continue control action",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat egress 10.10.10.1 20.20.20.1 continue",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action nat",
"matchPattern": "action order [0-9]+: nat egress 10.10.10.1/32 20.20.20.1 continue",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "6d4a",
"name": "Add nat action on egress with reclassify control action",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat egress 10.10.10.1 20.20.20.1 reclassify",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action nat",
"matchPattern": "action order [0-9]+: nat egress 10.10.10.1/32 20.20.20.1 reclassify",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "b313",
"name": "Add nat action on egress with jump control action",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat egress 10.10.10.1 20.20.20.1 jump 777",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action nat",
"matchPattern": "action order [0-9]+: nat egress 10.10.10.1/32 20.20.20.1 jump 777",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "d9fc",
"name": "Add nat action on egress with drop control action",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat egress 10.10.10.1 20.20.20.1 drop",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action nat",
"matchPattern": "action order [0-9]+: nat egress 10.10.10.1/32 20.20.20.1 drop",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "a895",
"name": "Add nat action on egress with DEFAULT IP address",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat egress default 20.20.20.1 pipe index 10",
"expExitCode": "0",
"verifyCmd": "$TC actions get action nat index 10",
"matchPattern": "action order [0-9]+: nat egress 0.0.0.0/0 20.20.20.1 pipe.*index 10 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "2572",
"name": "Add nat action on egress with ANY IP address",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat egress any 20.20.20.1 pipe index 10",
"expExitCode": "0",
"verifyCmd": "$TC actions get action nat index 10",
"matchPattern": "action order [0-9]+: nat egress 0.0.0.0/0 20.20.20.1 pipe.*index 10 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "37f3",
"name": "Add nat action on egress with ALL IP address",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat egress all 20.20.20.1 pipe index 10",
"expExitCode": "0",
"verifyCmd": "$TC actions get action nat index 10",
"matchPattern": "action order [0-9]+: nat egress 0.0.0.0/0 20.20.20.1 pipe.*index 10 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "6054",
"name": "Add nat action on egress with cookie",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat egress all 20.20.20.1 pipe index 10 cookie aa1bc2d3eeff112233445566778800a1",
"expExitCode": "0",
"verifyCmd": "$TC actions get action nat index 10",
"matchPattern": "action order [0-9]+: nat egress 0.0.0.0/0 20.20.20.1 pipe.*index 10 ref.*cookie aa1bc2d3eeff112233445566778800a1",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "79d6",
"name": "Add nat action on ingress with cookie",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action nat ingress 192.168.1.1 10.10.10.1 reclassify index 1 cookie 112233445566778899aabbccddeeff11",
"expExitCode": "0",
"verifyCmd": "$TC actions get action nat index 1",
"matchPattern": "action order [0-9]+: nat ingress 192.168.1.1/32 10.10.10.1 reclassify.*index 1 ref.*cookie 112233445566778899aabbccddeeff11",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "4b12",
"name": "Replace nat action with invalid goto chain control",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
],
"$TC actions add action nat ingress 1.18.1.1 1.18.2.2 drop index 90"
],
"cmdUnderTest": "$TC actions replace action nat ingress 1.18.1.1 1.18.2.2 goto chain 42 index 90 cookie c1a0c1a0",
"expExitCode": "255",
"verifyCmd": "$TC actions get action nat index 90",
"matchPattern": "action order [0-9]+: nat ingress 1.18.1.1/32 1.18.2.2 drop.*index 90 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "b811",
"name": "Delete nat action with valid index",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
],
"$TC actions add action nat ingress 1.1.1.1 2.2.2.2 drop index 20"
],
"cmdUnderTest": "$TC actions del action nat index 20",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action nat index 20",
"matchPattern": "action order [0-9]+: nat ingress 1.1.1.1/32 2.2.2.2 drop.*index 20 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action nat"
]
},
{
"id": "a521",
"name": "Delete nat action with invalid index",
"category": [
"actions",
"nat"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action nat",
0,
1,
255
],
"$TC actions add action nat ingress 1.1.1.1 2.2.2.2 drop index 20"
],
"cmdUnderTest": "$TC actions del action nat index 10",
"expExitCode": "255",
"verifyCmd": "$TC actions ls action nat index 20",
"matchPattern": "action order [0-9]+: nat ingress 1.1.1.1/32 2.2.2.2 drop.*index 20 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action nat"
]
}
]
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,942 @@
[
{
"id": "49aa",
"name": "Add valid basic police action",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 1kbit burst 10k index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action police",
"matchPattern": "action order [0-9]*: police 0x1 rate 1Kbit burst 10Kb",
"matchCount": "1",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "3abe",
"name": "Add police action with duplicate index",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
],
"$TC actions add action police rate 4Mbit burst 120k index 9"
],
"cmdUnderTest": "$TC actions add action police rate 8kbit burst 24k index 9",
"expExitCode": "255",
"verifyCmd": "$TC actions ls action police",
"matchPattern": "action order [0-9]*: police 0x9",
"matchCount": "1",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "49fa",
"name": "Add valid police action with mtu",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 1k index 98",
"expExitCode": "0",
"verifyCmd": "$TC actions get action police index 98",
"matchPattern": "action order [0-9]*: police 0x62 rate 90Kbit burst 10Kb mtu 1Kb",
"matchCount": "1",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "7943",
"name": "Add valid police action with peakrate",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 2kb peakrate 100kbit index 3",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action police",
"matchPattern": "action order [0-9]*: police 0x3 rate 90Kbit burst 10Kb mtu 2Kb peakrate 100Kbit",
"matchCount": "1",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "055e",
"name": "Add police action with peakrate and no mtu",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 5kbit burst 6kb peakrate 10kbit index 9",
"expExitCode": "255",
"verifyCmd": "$TC actions ls action police",
"matchPattern": "action order [0-9]*: police 0x9 rate 5Kb burst 10Kb",
"matchCount": "0",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "f057",
"name": "Add police action with valid overhead",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 1mbit burst 100k overhead 64 index 64",
"expExitCode": "0",
"verifyCmd": "$TC actions get action police index 64",
"matchPattern": "action order [0-9]*: police 0x40 rate 1Mbit burst 100Kb mtu 2Kb action reclassify overhead 64b",
"matchCount": "1",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "7ffb",
"name": "Add police action with ethernet linklayer type",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 2mbit burst 200k linklayer ethernet index 8",
"expExitCode": "0",
"verifyCmd": "$TC actions show action police",
"matchPattern": "action order [0-9]*: police 0x8 rate 2Mbit burst 200Kb mtu 2Kb action reclassify overhead 0b",
"matchCount": "1",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "3dda",
"name": "Add police action with atm linklayer type",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 2mbit burst 200k linklayer atm index 8",
"expExitCode": "0",
"verifyCmd": "$TC actions show action police",
"matchPattern": "action order [0-9]*: police 0x8 rate 2Mbit burst 200Kb mtu 2Kb action reclassify overhead 0b linklayer atm",
"matchCount": "1",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "551b",
"name": "Add police actions with conform-exceed control continue/drop",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed continue/drop index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions get action police index 1",
"matchPattern": "action order [0-9]*: police 0x1 rate 3Mbit burst 250Kb mtu 2Kb action continue/drop",
"matchCount": "1",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "0c70",
"name": "Add police actions with conform-exceed control pass/reclassify",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed pass/reclassify index 4",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action police",
"matchPattern": "action order [0-9]*: police 0x4 rate 3Mbit burst 250Kb mtu 2Kb action pass/reclassify",
"matchCount": "1",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "d946",
"name": "Add police actions with conform-exceed control pass/pipe",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed pass/pipe index 5",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action police",
"matchPattern": "action order [0-9]*: police 0x5 rate 3Mbit burst 250Kb mtu 2Kb action pass/pipe",
"matchCount": "1",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "ddd6",
"name": "Add police action with invalid rate value",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 3tb burst 250k conform-exceed pass/pipe index 5",
"expExitCode": "255",
"verifyCmd": "$TC actions ls action police",
"matchPattern": "action order [0-9]*: police 0x5 rate 3Tb burst 250Kb mtu 2Kb action pass/pipe",
"matchCount": "0",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "f61c",
"name": "Add police action with invalid burst value",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 3kbit burst 250P conform-exceed pass/pipe index 5",
"expExitCode": "255",
"verifyCmd": "$TC actions ls action police",
"matchPattern": "action order [0-9]*: police 0x5 rate 3Kbit burst 250Pb mtu 2Kb action pass/pipe",
"matchCount": "0",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "6aaf",
"name": "Add police actions with conform-exceed control pass/pipe [with numeric values]",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed 0/3 index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions get action police index 1",
"matchPattern": "action order [0-9]*: police 0x1 rate 3Mbit burst 250Kb mtu 2Kb action pass/pipe",
"matchCount": "1",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "29b1",
"name": "Add police actions with conform-exceed control <invalid>/drop",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed 10/drop index 1",
"expExitCode": "255",
"verifyCmd": "$TC actions ls action police",
"matchPattern": "action order [0-9]*: police 0x1 rate 3Mbit burst 250Kb mtu 2Kb action ",
"matchCount": "0",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "c26f",
"name": "Add police action with invalid peakrate value",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 2kb peakrate 100T index 1",
"expExitCode": "255",
"verifyCmd": "$TC actions ls action police",
"matchPattern": "action order [0-9]*: police 0x1 rate 90Kbit burst 10Kb mtu 2Kb peakrate 100Tbit",
"matchCount": "0",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "db04",
"name": "Add police action with invalid mtu value",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 10kbit burst 10k mtu 2Pbit index 1",
"expExitCode": "255",
"verifyCmd": "$TC actions ls action police",
"matchPattern": "action order [0-9]*: police 0x1 rate 10Kbit burst 1Kb mtu 2Pb",
"matchCount": "0",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "f3c9",
"name": "Add police action with cookie",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 10mbit burst 10k index 1 cookie a1b1c1d1e1f12233bb",
"expExitCode": "0",
"verifyCmd": "$TC actions get action police index 1",
"matchPattern": "action order [0-9]*: police 0x1 rate 10Mbit burst 10Kb mtu 2Kb.*cookie a1b1c1d1e1f12233bb",
"matchCount": "1",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "d190",
"name": "Add police action with maximum index",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 10mbit burst 10k index 4294967295",
"expExitCode": "0",
"verifyCmd": "$TC actions get action police index 4294967295",
"matchPattern": "action order [0-9]*: police 0xffffffff rate 10Mbit burst 10Kb mtu 2Kb",
"matchCount": "1",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "336e",
"name": "Delete police action",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
],
"$TC actions add action police rate 5mbit burst 2m index 12"
],
"cmdUnderTest": "$TC actions delete action police index 12",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action police",
"matchPattern": "action order [0-9]*: police 0xc rate 5Mb burst 2Mb",
"matchCount": "0",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "77fa",
"name": "Get single police action from many actions",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
],
"$TC actions add action police rate 1mbit burst 100k index 1",
"$TC actions add action police rate 2mbit burst 200k index 2",
"$TC actions add action police rate 3mbit burst 300k index 3",
"$TC actions add action police rate 4mbit burst 400k index 4",
"$TC actions add action police rate 5mbit burst 500k index 5",
"$TC actions add action police rate 6mbit burst 600k index 6",
"$TC actions add action police rate 7mbit burst 700k index 7",
"$TC actions add action police rate 8mbit burst 800k index 8"
],
"cmdUnderTest": "$TC actions get action police index 4",
"expExitCode": "0",
"verifyCmd": "$TC actions get action police index 4",
"matchPattern": "action order [0-9]*: police 0x4 rate 4Mbit burst 400Kb",
"matchCount": "1",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "aa43",
"name": "Get single police action without specifying index",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
],
"$TC actions add action police rate 1mbit burst 100k index 1"
],
"cmdUnderTest": "$TC actions get action police",
"expExitCode": "255",
"verifyCmd": "$TC actions get action police",
"matchPattern": "action order [0-9]*: police",
"matchCount": "0",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "858b",
"name": "List police actions",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
],
"$TC actions add action police rate 1mbit burst 100k index 1",
"$TC actions add action police rate 2mbit burst 200k index 2",
"$TC actions add action police rate 3mbit burst 300k index 3",
"$TC actions add action police rate 4mbit burst 400k index 4",
"$TC actions add action police rate 5mbit burst 500k index 5",
"$TC actions add action police rate 6mbit burst 600k index 6",
"$TC actions add action police rate 7mbit burst 700k index 7",
"$TC actions add action police rate 8mbit burst 800k index 8"
],
"cmdUnderTest": "$TC actions list action police",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action police",
"matchPattern": "action order [0-9]*: police 0x[1-8] rate [1-8]Mbit burst [1-8]00Kb",
"matchCount": "8",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "1c3a",
"name": "Flush police actions",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
"$TC actions add action police rate 1mbit burst 100k index 1",
"$TC actions add action police rate 2mbit burst 200k index 2",
"$TC actions add action police rate 3mbit burst 300k index 3",
"$TC actions add action police rate 4mbit burst 400k index 4",
"$TC actions add action police rate 5mbit burst 500k index 5",
"$TC actions add action police rate 6mbit burst 600k index 6",
"$TC actions add action police rate 7mbit burst 700k index 7",
"$TC actions add action police rate 8mbit burst 800k index 8"
],
"cmdUnderTest": "$TC actions flush action police",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action police",
"matchPattern": "action order [0-9]*: police",
"matchCount": "0",
"teardown": [
""
]
},
{
"id": "7326",
"name": "Add police action with control continue",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m continue index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions get action police index 1",
"matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst (1024Kb|1Mb) mtu 2Kb action continue",
"matchCount": "1",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "34fa",
"name": "Add police action with control drop",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m drop index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action police",
"matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst (1024Kb|1Mb) mtu 2Kb action drop",
"matchCount": "1",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "8dd5",
"name": "Add police action with control ok",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m ok index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action police",
"matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst (1024Kb|1Mb) mtu 2Kb action pass",
"matchCount": "1",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "b9d1",
"name": "Add police action with control reclassify",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m reclassify index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions get action police index 1",
"matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst (1024Kb|1Mb) mtu 2Kb action reclassify",
"matchCount": "1",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "c534",
"name": "Add police action with control pipe",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m pipe index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action police",
"matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst (1024Kb|1Mb) mtu 2Kb action pipe",
"matchCount": "1",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "b48b",
"name": "Add police action with exceed goto chain control action",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"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"
]
},
{
"id": "689e",
"name": "Replace police action with invalid goto chain control",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
],
"$TC actions add action police rate 3mbit burst 250k drop index 90"
],
"cmdUnderTest": "$TC actions replace action police rate 3mbit burst 250k goto chain 42 index 90 cookie c1a0c1a0",
"expExitCode": "255",
"verifyCmd": "$TC actions get action police index 90",
"matchPattern": "action order [0-9]*: police 0x5a rate 3Mbit burst 250Kb mtu 2Kb action drop",
"matchCount": "1",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "cdd7",
"name": "Add valid police action with packets per second rate limit",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police pkts_rate 1000 pkts_burst 200 index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action police",
"matchPattern": "action order [0-9]*: police 0x1 rate 0bit burst 0b mtu (4Gb|4096Mb) pkts_rate 1000 pkts_burst 200",
"matchCount": "1",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "f5bc",
"name": "Add invalid police action with both bps and pps",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 1kbit burst 10k pkts_rate 1000 pkts_burst 200 index 1",
"expExitCode": "255",
"verifyCmd": "$TC actions ls action police",
"matchPattern": "action order [0-9]*: police 0x1 ",
"matchCount": "0",
"teardown": [
"$TC actions flush action police"
]
},
{
"id": "7d64",
"name": "Add police action with skip_hw option",
"category": [
"actions",
"police"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action police",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action police rate 1kbit burst 10k index 100 skip_hw",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action police | grep skip_hw",
"matchPattern": "skip_hw",
"matchCount": "1",
"teardown": [
"$TC actions flush action police"
]
}
]
@@ -0,0 +1,774 @@
[
{
"id": "9784",
"name": "Add valid sample action with mandatory arguments",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action sample rate 10 group 1 index 2",
"expExitCode": "0",
"verifyCmd": "$TC actions get action sample index 2",
"matchPattern": "action order [0-9]+: sample rate 1/10 group 1.*index 2 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action sample"
]
},
{
"id": "5c91",
"name": "Add valid sample action with mandatory arguments and continue control action",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action sample rate 700 group 2 continue index 2",
"expExitCode": "0",
"verifyCmd": "$TC actions get action sample index 2",
"matchPattern": "action order [0-9]+: sample rate 1/700 group 2 continue.*index 2 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action sample"
]
},
{
"id": "334b",
"name": "Add valid sample action with mandatory arguments and drop control action",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action sample rate 10000 group 11 drop index 22",
"expExitCode": "0",
"verifyCmd": "$TC actions list action sample",
"matchPattern": "action order [0-9]+: sample rate 1/10000 group 11 drop.*index 22 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action sample"
]
},
{
"id": "da69",
"name": "Add valid sample action with mandatory arguments and reclassify control action",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action sample rate 20000 group 72 reclassify index 100",
"expExitCode": "0",
"verifyCmd": "$TC actions list action sample",
"matchPattern": "action order [0-9]+: sample rate 1/20000 group 72 reclassify.*index 100 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action sample"
]
},
{
"id": "13ce",
"name": "Add valid sample action with mandatory arguments and pipe control action",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action sample rate 20 group 2 pipe index 100",
"expExitCode": "0",
"verifyCmd": "$TC actions list action sample",
"matchPattern": "action order [0-9]+: sample rate 1/20 group 2 pipe.*index 100 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action sample"
]
},
{
"id": "1886",
"name": "Add valid sample action with mandatory arguments and jump control action",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action sample rate 700 group 25 jump 4 index 200",
"expExitCode": "0",
"verifyCmd": "$TC actions get action sample index 200",
"matchPattern": "action order [0-9]+: sample rate 1/700 group 25 jump 4.*index 200 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action sample"
]
},
{
"id": "7571",
"name": "Add sample action with invalid rate",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action sample rate 0 group 1 index 2",
"expExitCode": "255",
"verifyCmd": "$TC actions get action sample index 2",
"matchPattern": "action order [0-9]+: sample rate 1/0 group 1.*index 2 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action sample"
]
},
{
"id": "b6d4",
"name": "Add sample action with mandatory arguments and invalid control action",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action sample rate 200000 group 52 foo index 1",
"expExitCode": "255",
"verifyCmd": "$TC actions list action sample",
"matchPattern": "action order [0-9]+: sample rate 1/200000 group 52 foo.*index 1 ref",
"matchCount": "0",
"teardown": []
},
{
"id": "a874",
"name": "Add invalid sample action without mandatory arguments",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action sample index 1",
"expExitCode": "255",
"verifyCmd": "$TC actions list action sample",
"matchPattern": "action order [0-9]+: sample.*index 1 ref",
"matchCount": "0",
"teardown": []
},
{
"id": "ac01",
"name": "Add invalid sample action without mandatory argument rate",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action sample group 10 index 1",
"expExitCode": "255",
"verifyCmd": "$TC actions list action sample",
"matchPattern": "action order [0-9]+: sample.*group 10.*index 1 ref",
"matchCount": "0",
"teardown": []
},
{
"id": "4203",
"name": "Add invalid sample action without mandatory argument group",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action sample rate 100 index 10",
"expExitCode": "255",
"verifyCmd": "$TC actions get action sample index 10",
"matchPattern": "action order [0-9]+: sample rate 1/100.*index 10 ref",
"matchCount": "0",
"teardown": []
},
{
"id": "14a7",
"name": "Add invalid sample action without mandatory argument group",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action sample rate 100 index 10",
"expExitCode": "255",
"verifyCmd": "$TC actions get action sample index 10",
"matchPattern": "action order [0-9]+: sample rate 1/100.*index 10 ref",
"matchCount": "0",
"teardown": []
},
{
"id": "8f2e",
"name": "Add valid sample action with trunc argument",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action sample rate 1024 group 4 trunc 1024 index 10",
"expExitCode": "0",
"verifyCmd": "$TC actions get action sample index 10",
"matchPattern": "action order [0-9]+: sample rate 1/1024 group 4 trunc_size 1024 pipe.*index 10 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action sample"
]
},
{
"id": "45f8",
"name": "Add sample action with maximum rate argument",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action sample rate 4294967295 group 4 index 10",
"expExitCode": "0",
"verifyCmd": "$TC actions get action sample index 10",
"matchPattern": "action order [0-9]+: sample rate 1/4294967295 group 4 pipe.*index 10 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action sample"
]
},
{
"id": "ad0c",
"name": "Add sample action with maximum trunc argument",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action sample rate 16000 group 4 trunc 4294967295 index 10",
"expExitCode": "0",
"verifyCmd": "$TC actions get action sample index 10",
"matchPattern": "action order [0-9]+: sample rate 1/16000 group 4 trunc_size 4294967295 pipe.*index 10 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action sample"
]
},
{
"id": "83a9",
"name": "Add sample action with maximum group argument",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action sample rate 4294 group 4294967295 index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions get action sample index 1",
"matchPattern": "action order [0-9]+: sample rate 1/4294 group 4294967295 pipe.*index 1 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action sample"
]
},
{
"id": "ed27",
"name": "Add sample action with invalid rate argument",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action sample rate 4294967296 group 4 index 10",
"expExitCode": "255",
"verifyCmd": "$TC actions get action sample index 10",
"matchPattern": "action order [0-9]+: sample rate 1/4294967296 group 4 pipe.*index 10 ref",
"matchCount": "0",
"teardown": []
},
{
"id": "2eae",
"name": "Add sample action with invalid group argument",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action sample rate 4098 group 5294967299 continue index 1",
"expExitCode": "255",
"verifyCmd": "$TC actions get action sample index 1",
"matchPattern": "action order [0-9]+: sample rate 1/4098 group 5294967299 continue.*index 1 ref",
"matchCount": "0",
"teardown": []
},
{
"id": "6ff3",
"name": "Add sample action with invalid trunc size",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action sample rate 1024 group 4 trunc 112233445566 index 11",
"expExitCode": "255",
"verifyCmd": "$TC actions get action sample index 11",
"matchPattern": "action order [0-9]+: sample rate 1/1024 group 4 trunc_size 112233445566.*index 11 ref",
"matchCount": "0",
"teardown": []
},
{
"id": "2b2a",
"name": "Add sample action with invalid index",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action sample rate 1024 group 4 index 5294967299",
"expExitCode": "255",
"verifyCmd": "$TC actions get action sample index 5294967299",
"matchPattern": "action order [0-9]+: sample rate 1/1024 group 4 pipe.*index 5294967299 ref",
"matchCount": "0",
"teardown": []
},
{
"id": "dee2",
"name": "Add sample action with maximum allowed index",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action sample rate 1024 group 4 index 4294967295",
"expExitCode": "0",
"verifyCmd": "$TC actions get action sample index 4294967295",
"matchPattern": "action order [0-9]+: sample rate 1/1024 group 4 pipe.*index 4294967295 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action sample"
]
},
{
"id": "560e",
"name": "Add sample action with cookie",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action sample rate 1024 group 4 index 45 cookie aabbccdd",
"expExitCode": "0",
"verifyCmd": "$TC actions get action sample index 45",
"matchPattern": "action order [0-9]+: sample rate 1/1024 group 4 pipe.*index 45.*cookie aabbccdd",
"matchCount": "1",
"teardown": [
"$TC actions flush action sample"
]
},
{
"id": "704a",
"name": "Replace existing sample action with new rate argument",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
],
"$TC actions add action sample rate 1024 group 4 index 4"
],
"cmdUnderTest": "$TC actions replace action sample rate 2048 group 4 index 4",
"expExitCode": "0",
"verifyCmd": "$TC actions list action sample",
"matchPattern": "action order [0-9]+: sample rate 1/2048 group 4 pipe.*index 4",
"matchCount": "1",
"teardown": [
"$TC actions flush action sample"
]
},
{
"id": "60eb",
"name": "Replace existing sample action with new group argument",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
],
"$TC actions add action sample rate 1024 group 4 index 4"
],
"cmdUnderTest": "$TC actions replace action sample rate 1024 group 7 index 4",
"expExitCode": "0",
"verifyCmd": "$TC actions list action sample",
"matchPattern": "action order [0-9]+: sample rate 1/1024 group 7 pipe.*index 4",
"matchCount": "1",
"teardown": [
"$TC actions flush action sample"
]
},
{
"id": "2cce",
"name": "Replace existing sample action with new trunc argument",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
],
"$TC actions add action sample rate 1024 group 4 trunc 48 index 4"
],
"cmdUnderTest": "$TC actions replace action sample rate 1024 group 7 trunc 64 index 4",
"expExitCode": "0",
"verifyCmd": "$TC actions list action sample",
"matchPattern": "action order [0-9]+: sample rate 1/1024 group 7 trunc_size 64 pipe.*index 4",
"matchCount": "1",
"teardown": [
"$TC actions flush action sample"
]
},
{
"id": "59d1",
"name": "Replace existing sample action with new control argument",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
],
"$TC actions add action sample rate 1024 group 4 reclassify index 4"
],
"cmdUnderTest": "$TC actions replace action sample rate 1024 group 7 pipe index 4",
"expExitCode": "0",
"verifyCmd": "$TC actions list action sample",
"matchPattern": "action order [0-9]+: sample rate 1/1024 group 7 pipe.*index 4",
"matchCount": "1",
"teardown": [
"$TC actions flush action sample"
]
},
{
"id": "0a6e",
"name": "Replace sample action with invalid goto chain control",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
],
"$TC actions add action sample rate 1024 group 4 pass index 90"
],
"cmdUnderTest": "$TC actions replace action sample rate 1024 group 7 goto chain 42 index 90 cookie c1a0c1a0",
"expExitCode": "255",
"verifyCmd": "$TC actions list action sample",
"matchPattern": "action order [0-9]+: sample rate 1/1024 group 4 pass.*index 90",
"matchCount": "1",
"teardown": [
"$TC actions flush action sample"
]
},
{
"id": "3872",
"name": "Delete sample action with valid index",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
],
"$TC actions add action sample rate 10 group 1 index 20"
],
"cmdUnderTest": "$TC actions del action sample index 20",
"expExitCode": "0",
"verifyCmd": "$TC actions get action sample index 20",
"matchPattern": "action order [0-9]+: sample rate 1/10 group 1.*index 20 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action sample"
]
},
{
"id": "a394",
"name": "Delete sample action with invalid index",
"category": [
"actions",
"sample"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action sample",
0,
1,
255
],
"$TC actions add action sample rate 10 group 1 index 20"
],
"cmdUnderTest": "$TC actions del action sample index 10",
"expExitCode": "255",
"verifyCmd": "$TC actions get action sample index 20",
"matchPattern": "action order [0-9]+: sample rate 1/10 group 1.*index 20 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action sample"
]
}
]
@@ -0,0 +1,265 @@
[
{
"id": "b078",
"name": "Add simple action",
"category": [
"actions",
"simple"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action simple",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action simple sdata \"A triumph\" index 60",
"expExitCode": "0",
"verifyCmd": "$TC actions list action simple",
"matchPattern": "action order [0-9]*: Simple <A triumph>.*index 60 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action simple"
]
},
{
"id": "4297",
"name": "Add simple action with change command",
"category": [
"actions",
"simple"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action simple",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions change action simple sdata \"Not changed\" index 60",
"expExitCode": "0",
"verifyCmd": "$TC actions list action simple",
"matchPattern": "action order [0-9]*: Simple <Not changed>.*index 60 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action simple"
]
},
{
"id": "6d4c",
"name": "Add simple action with duplicate index",
"category": [
"actions",
"simple"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action simple",
0,
1,
255
],
"$TC actions add action simple sdata \"Aruba\" index 4"
],
"cmdUnderTest": "$TC actions add action simple sdata \"Jamaica\" index 4",
"expExitCode": "255",
"verifyCmd": "$TC actions list action simple",
"matchPattern": "action order [0-9]*: Simple <Jamaica>.*ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action simple"
]
},
{
"id": "2542",
"name": "List simple actions",
"category": [
"actions",
"simple"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action simple",
0,
1,
255
],
"$TC actions add action simple sdata \"Rock\"",
"$TC actions add action simple sdata \"Paper\"",
"$TC actions add action simple sdata \"Scissors\" index 98"
],
"cmdUnderTest": "$TC actions list action simple",
"expExitCode": "0",
"verifyCmd": "$TC actions list action simple",
"matchPattern": "action order [0-9]*: Simple <[A-Z][a-z]*>",
"matchCount": "3",
"teardown": [
"$TC actions flush action simple"
]
},
{
"id": "ea67",
"name": "Delete simple action",
"category": [
"actions",
"simple"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action simple",
0,
1,
255
],
"$TC actions add action simple sdata \"Blinkenlights\" index 1"
],
"cmdUnderTest": "$TC actions delete action simple index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions list action simple",
"matchPattern": "action order [0-9]*: Simple <Blinkenlights>.*index 1 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action simple"
]
},
{
"id": "8ff1",
"name": "Flush simple actions",
"category": [
"actions",
"simple"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action simple",
0,
1,
255
],
"$TC actions add action simple sdata \"Kirk\"",
"$TC actions add action simple sdata \"Spock\" index 50",
"$TC actions add action simple sdata \"McCoy\" index 9"
],
"cmdUnderTest": "$TC actions flush action simple",
"expExitCode": "0",
"verifyCmd": "$TC actions list action simple",
"matchPattern": "action order [0-9]*: Simple <[A-Z][a-z]*>",
"matchCount": "0",
"teardown": [
""
]
},
{
"id": "b776",
"name": "Replace simple action with invalid goto chain control",
"category": [
"actions",
"simple"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action simple",
0,
1,
255
],
"$TC actions add action simple sdata \"hello\" pass index 90"
],
"cmdUnderTest": "$TC actions replace action simple sdata \"world\" goto chain 42 index 90 cookie c1a0c1a0",
"expExitCode": "255",
"verifyCmd": "$TC actions list action simple",
"matchPattern": "action order [0-9]*: Simple <hello>.*index 90 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action simple"
]
},
{
"id": "8d07",
"name": "Verify cleanup of failed actions batch add",
"category": [
"actions",
"simple"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action simple",
0,
1,
255
],
"$TC actions add action simple sdata \"2\" index 2",
[
"$TC actions add action simple sdata \"1\" index 1 action simple sdata \"2\" index 2",
255
],
"$TC actions flush action simple"
],
"cmdUnderTest": "$TC actions add action simple sdata \"2\" index 2",
"expExitCode": "0",
"verifyCmd": "$TC actions list action simple",
"matchPattern": "action order [0-9]*: Simple <2>.*index 2 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action simple"
]
},
{
"id": "a68a",
"name": "Verify cleanup of failed actions batch change",
"category": [
"actions",
"simple"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action simple",
0,
1,
255
],
[
"$TC actions change action simple sdata \"1\" index 1 action simple sdata \"2\" goto chain 42 index 2",
255
],
"$TC actions flush action simple"
],
"cmdUnderTest": "$TC actions add action simple sdata \"1\" index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions list action simple",
"matchPattern": "action order [0-9]*: Simple <1>.*index 1 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action simple"
]
}
]
@@ -0,0 +1,811 @@
[
{
"id": "6236",
"name": "Add skbedit action with valid mark",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit mark 1",
"expExitCode": "0",
"verifyCmd": "$TC actions list action skbedit",
"matchPattern": "action order [0-9]*: skbedit mark 1",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "c8cf",
"name": "Add skbedit action with 32-bit maximum mark",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit mark 4294967295 pipe index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions get action skbedit index 1",
"matchPattern": "action order [0-9]*: skbedit mark 4294967295.*pipe.*index 1",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "407b",
"name": "Add skbedit action with mark exceeding 32-bit maximum",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit mark 666777888999",
"expExitCode": "255",
"verifyCmd": "$TC actions list action skbedit",
"matchPattern": "action order [0-9]*: skbedit mark",
"matchCount": "0",
"teardown": []
},
{
"id": "d4cd",
"name": "Add skbedit action with valid mark and mask",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit mark 1/0xaabb",
"expExitCode": "0",
"verifyCmd": "$TC actions list action skbedit",
"matchPattern": "action order [0-9]*: skbedit mark 1/0xaabb",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "baa7",
"name": "Add skbedit action with valid mark and 32-bit maximum mask",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit mark 1/0xffffffff",
"expExitCode": "0",
"verifyCmd": "$TC actions list action skbedit",
"matchPattern": "action order [0-9]*: skbedit mark 1/0xffffffff",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "62a5",
"name": "Add skbedit action with valid mark and mask exceeding 32-bit maximum",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit mark 1/0xaabbccddeeff112233",
"expExitCode": "255",
"verifyCmd": "$TC actions list action skbedit",
"matchPattern": "action order [0-9]*: skbedit mark 1/0xaabbccddeeff112233",
"matchCount": "0",
"teardown": []
},
{
"id": "bc15",
"name": "Add skbedit action with valid mark and mask with invalid format",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit mark 1/-1234",
"expExitCode": "255",
"verifyCmd": "$TC actions list action skbedit",
"matchPattern": "action order [0-9]*: skbedit mark 1/-1234",
"matchCount": "0",
"teardown": []
},
{
"id": "57c2",
"name": "Replace skbedit action with new mask",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
],
"$TC actions add action skbedit mark 1/0x11223344 index 1"
],
"cmdUnderTest": "$TC actions replace action skbedit mark 1/0xaabb index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions list action skbedit",
"matchPattern": "action order [0-9]*: skbedit mark 1/0xaabb",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "081d",
"name": "Add skbedit action with priority",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit prio 99",
"expExitCode": "0",
"verifyCmd": "$TC actions list action skbedit",
"matchPattern": "action order [0-9]*: skbedit priority :99",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "cc37",
"name": "Add skbedit action with invalid priority",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit prio foo",
"expExitCode": "255",
"verifyCmd": "$TC actions list action skbedit",
"matchPattern": "action order [0-9]*: skbedit priority",
"matchCount": "0",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "3c95",
"name": "Add skbedit action with queue_mapping",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit queue_mapping 909",
"expExitCode": "0",
"verifyCmd": "$TC actions list action skbedit",
"matchPattern": "action order [0-9]*: skbedit queue_mapping 909",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "985c",
"name": "Add skbedit action with queue_mapping exceeding 16-bit maximum",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit queue_mapping 67000",
"expExitCode": "255",
"verifyCmd": "$TC actions list action skbedit",
"matchPattern": "action order [0-9]*: skbedit queue_mapping",
"matchCount": "0",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "224f",
"name": "Add skbedit action with ptype host",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit ptype host",
"expExitCode": "0",
"verifyCmd": "$TC actions list action skbedit",
"matchPattern": "action order [0-9]*: skbedit ptype host",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "d1a3",
"name": "Add skbedit action with ptype otherhost",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit ptype otherhost",
"expExitCode": "0",
"verifyCmd": "$TC actions list action skbedit",
"matchPattern": "action order [0-9]*: skbedit ptype otherhost",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "b9c6",
"name": "Add skbedit action with invalid ptype",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit ptype openair",
"expExitCode": "255",
"verifyCmd": "$TC actions list action skbedit",
"matchPattern": "action order [0-9]*: skbedit ptype openair",
"matchCount": "0",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "464a",
"name": "Add skbedit action with control pipe",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit ptype host pipe index 11",
"expExitCode": "0",
"verifyCmd": "$TC actions get action skbedit index 11",
"matchPattern": "action order [0-9]*: skbedit ptype host pipe.*index 11 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "212f",
"name": "Add skbedit action with control reclassify",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit mark 56789 reclassify index 90",
"expExitCode": "0",
"verifyCmd": "$TC actions get action skbedit index 90",
"matchPattern": "action order [0-9]*: skbedit mark 56789 reclassify.*index 90 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "0651",
"name": "Add skbedit action with control pass",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit queue_mapping 3 pass index 271",
"expExitCode": "0",
"verifyCmd": "$TC actions get action skbedit index 271",
"matchPattern": "action order [0-9]*: skbedit queue_mapping 3 pass.*index 271 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "cc53",
"name": "Add skbedit action with control drop",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit queue_mapping 3 drop index 271",
"expExitCode": "0",
"verifyCmd": "$TC actions get action skbedit index 271",
"matchPattern": "action order [0-9]*: skbedit queue_mapping 3 drop.*index 271 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "ec16",
"name": "Add skbedit action with control jump",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit priority 8 jump 9 index 2",
"expExitCode": "0",
"verifyCmd": "$TC actions get action skbedit index 2",
"matchPattern": "action order [0-9]*: skbedit priority :8 jump 9.*index 2 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "db54",
"name": "Add skbedit action with control continue",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit priority 16 continue index 32",
"expExitCode": "0",
"verifyCmd": "$TC actions get action skbedit index 32",
"matchPattern": "action order [0-9]*: skbedit priority :16 continue.*index 32 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "1055",
"name": "Add skbedit action with cookie",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit priority 16 continue index 32 cookie deadbeef",
"expExitCode": "0",
"verifyCmd": "$TC actions get action skbedit index 32",
"matchPattern": "action order [0-9]*: skbedit priority :16 continue.*index 32 ref.*cookie deadbeef",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "5172",
"name": "List skbedit actions",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
],
"$TC actions add action skbedit ptype otherhost",
"$TC actions add action skbedit ptype broadcast",
"$TC actions add action skbedit mark 59",
"$TC actions add action skbedit mark 409"
],
"cmdUnderTest": "$TC actions list action skbedit",
"expExitCode": "0",
"verifyCmd": "$TC actions list action skbedit",
"matchPattern": "action order [0-9]*: skbedit",
"matchCount": "4",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "a6d6",
"name": "Add skbedit action with index at 32-bit maximum",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit mark 808 index 4294967295",
"expExitCode": "0",
"verifyCmd": "$TC actions get action skbedit index 4294967295",
"matchPattern": "action order [0-9]*: skbedit mark 808.*index 4294967295",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "f0f4",
"name": "Add skbedit action with index exceeding 32-bit maximum",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit mark 808 pass index 4294967297",
"expExitCode": "255",
"verifyCmd": "$TC actions get action skbedit index 4294967297",
"matchPattern": "action order [0-9]*:.*skbedit.*mark 808.*pass.*index 4294967297",
"matchCount": "0",
"teardown": []
},
{
"id": "38f3",
"name": "Delete skbedit action",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
],
"$TC actions add action skbedit mark 42 index 9009"
],
"cmdUnderTest": "$TC actions del action skbedit index 9009",
"expExitCode": "0",
"verifyCmd": "$TC actions list action skbedit",
"matchPattern": "action order [0-9]*: skbedit mark 42",
"matchCount": "0",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "ce97",
"name": "Flush skbedit actions",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
"$TC actions add action skbedit mark 500",
"$TC actions add action skbedit mark 501",
"$TC actions add action skbedit mark 502",
"$TC actions add action skbedit mark 503",
"$TC actions add action skbedit mark 504",
"$TC actions add action skbedit mark 505",
"$TC actions add action skbedit mark 506"
],
"cmdUnderTest": "$TC actions flush action skbedit",
"expExitCode": "0",
"verifyCmd": "$TC actions list action skbedit",
"matchPattern": "action order [0-9]*: skbedit",
"matchCount": "0",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "1b2b",
"name": "Replace skbedit action with invalid goto_chain control",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
],
"$TC actions add action skbedit ptype host pass index 90"
],
"cmdUnderTest": "$TC actions replace action skbedit ptype host goto chain 42 index 90 cookie c1a0c1a0",
"expExitCode": "255",
"verifyCmd": "$TC actions list action skbedit",
"matchPattern": "action order [0-9]*: skbedit ptype host pass.*index 90 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "630c",
"name": "Add batch of 32 skbedit actions with all parameters and cookie",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action skbedit queue_mapping 2 priority 10 mark 7/0xaabbccdd ptype host inheritdsfield index \\$i cookie aabbccddeeff112233445566778800a1 \\\"; args=\"\\$args\\$cmd\"; done && $TC actions add \\$args\"",
"expExitCode": "0",
"verifyCmd": "$TC actions list action skbedit",
"matchPattern": "^[ \t]+index [0-9]+ ref",
"matchCount": "32",
"teardown": [
"$TC actions flush action skbedit"
]
},
{
"id": "706d",
"name": "Delete batch of 32 skbedit actions with all parameters",
"category": [
"actions",
"skbedit"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
],
"bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action skbedit queue_mapping 2 priority 10 mark 7/0xaabbccdd ptype host inheritdsfield index \\$i \\\"; args=\\\"\\$args\\$cmd\\\"; done && $TC actions add \\$args\""
],
"cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action skbedit index \\$i \\\"; args=\"\\$args\\$cmd\"; done && $TC actions del \\$args\"",
"expExitCode": "0",
"verifyCmd": "$TC actions list action skbedit",
"matchPattern": "^[ \t]+index [0-9]+ ref",
"matchCount": "0",
"teardown": []
}
]
@@ -0,0 +1,499 @@
[
{
"id": "7d50",
"name": "Add skbmod action to set destination mac",
"category": [
"actions",
"skbmod"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbmod",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbmod set dmac 11:22:33:44:55:66 index 5",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action skbmod",
"matchPattern": "action order [0-9]*: skbmod pipe set dmac 11:22:33:44:55:66\\s+index 5",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbmod"
]
},
{
"id": "9b29",
"name": "Add skbmod action to set source mac",
"category": [
"actions",
"skbmod"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbmod",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbmod set smac 77:88:99:AA:BB:CC index 7",
"expExitCode": "0",
"verifyCmd": "$TC actions get action skbmod index 7",
"matchPattern": "action order [0-9]*: skbmod pipe set smac 77:88:99:aa:bb:cc\\s+index 7",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbmod"
]
},
{
"id": "1724",
"name": "Add skbmod action with invalid mac",
"category": [
"actions",
"skbmod"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbmod",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbmod set smac 00:44:55:44:55",
"expExitCode": "255",
"verifyCmd": "$TC actions ls action skbmod",
"matchPattern": "action order [0-9]*: skbmod pipe set smac 00:44:55:44:55",
"matchCount": "0",
"teardown": [
"$TC actions flush action skbmod"
]
},
{
"id": "3cf1",
"name": "Add skbmod action with valid etype",
"category": [
"actions",
"skbmod"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbmod",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbmod set etype 0xfefe",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action skbmod",
"matchPattern": "action order [0-9]*: skbmod pipe set etype 0xFEFE",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbmod"
]
},
{
"id": "a749",
"name": "Add skbmod action with invalid etype",
"category": [
"actions",
"skbmod"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbmod",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbmod set etype 0xfefef",
"expExitCode": "255",
"verifyCmd": "$TC actions ls action skbmod",
"matchPattern": "action order [0-9]*: skbmod pipe set etype 0xFEFEF",
"matchCount": "0",
"teardown": [
"$TC actions flush action skbmod"
]
},
{
"id": "bfe6",
"name": "Add skbmod action to swap mac",
"category": [
"actions",
"skbmod"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbmod",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbmod swap mac",
"expExitCode": "0",
"verifyCmd": "$TC actions get action skbmod index 1",
"matchPattern": "action order [0-9]*: skbmod pipe swap mac",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbmod"
]
},
{
"id": "839b",
"name": "Add skbmod action with control pipe",
"category": [
"actions",
"skbmod"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbmod",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbmod swap mac pipe",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action skbmod",
"matchPattern": "action order [0-9]*: skbmod pipe swap mac",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbmod"
]
},
{
"id": "c167",
"name": "Add skbmod action with control reclassify",
"category": [
"actions",
"skbmod"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbmod",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbmod set etype 0xbeef reclassify",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action skbmod",
"matchPattern": "action order [0-9]*: skbmod reclassify set etype 0xBEEF",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbmod"
]
},
{
"id": "0c2f",
"name": "Add skbmod action with control drop",
"category": [
"actions",
"skbmod"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbmod",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbmod set etype 0x0001 drop",
"expExitCode": "0",
"verifyCmd": "$TC actions get action skbmod index 1",
"matchPattern": "action order [0-9]*: skbmod drop set etype 0x1",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbmod"
]
},
{
"id": "d113",
"name": "Add skbmod action with control continue",
"category": [
"actions",
"skbmod"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbmod",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbmod set etype 0x1 continue",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action skbmod",
"matchPattern": "action order [0-9]*: skbmod continue set etype 0x1",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbmod"
]
},
{
"id": "7242",
"name": "Add skbmod action with control pass",
"category": [
"actions",
"skbmod"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbmod",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbmod set smac 00:00:00:00:00:01 pass",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action skbmod",
"matchPattern": "action order [0-9]*: skbmod pass set smac 00:00:00:00:00:01",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbmod"
]
},
{
"id": "6046",
"name": "Add skbmod action with control reclassify and cookie",
"category": [
"actions",
"skbmod"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbmod",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbmod set smac 00:01:02:03:04:01 reclassify index 1 cookie ddeeffaabb11cc22",
"expExitCode": "0",
"verifyCmd": "$TC actions get action skbmod index 1",
"matchPattern": "action order [0-9]*: skbmod reclassify set smac 00:01:02:03:04:01.*index 1 ref.*cookie ddeeffaabb11cc22",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbmod"
]
},
{
"id": "58cb",
"name": "List skbmod actions",
"category": [
"actions",
"skbmod"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbmod",
0,
1,
255
],
"$TC actions add action skbmod set etype 0x0001",
"$TC actions add action skbmod set etype 0x0011",
"$TC actions add action skbmod set etype 0x0021",
"$TC actions add action skbmod set etype 0x0031",
"$TC actions add action skbmod set etype 0x0041"
],
"cmdUnderTest": "$TC actions ls action skbmod",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action skbmod",
"matchPattern": "action order [0-9]*: skbmod",
"matchCount": "5",
"teardown": [
"$TC actions flush action skbmod"
]
},
{
"id": "9aa8",
"name": "Get a single skbmod action from a list",
"category": [
"actions",
"skbmod"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbmod",
0,
1,
255
],
"$TC actions add action skbmod set etype 0x0001",
"$TC actions add action skbmod set etype 0x0011",
"$TC actions add action skbmod set etype 0x0021",
"$TC actions add action skbmod set etype 0x0031",
"$TC actions add action skbmod set etype 0x0041"
],
"cmdUnderTest": "$TC actions ls action skbmod",
"expExitCode": "0",
"verifyCmd": "$TC actions get action skbmod index 4",
"matchPattern": "action order [0-9]*: skbmod pipe set etype 0x31",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbmod"
]
},
{
"id": "e93a",
"name": "Delete an skbmod action",
"category": [
"actions",
"skbmod"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbmod",
0,
1,
255
],
"$TC actions add action skbmod set etype 0x1111 index 909"
],
"cmdUnderTest": "$TC actions del action skbmod index 909",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action skbmod",
"matchPattern": "action order [0-9]*: skbmod pipe set etype 0x1111\\s+index 909",
"matchCount": "0",
"teardown": [
"$TC actions flush action skbmod"
]
},
{
"id": "40c2",
"name": "Flush skbmod actions",
"category": [
"actions",
"skbmod"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
"$TC actions add action skbmod set etype 0x0001",
"$TC actions add action skbmod set etype 0x0011",
"$TC actions add action skbmod set etype 0x0021",
"$TC actions add action skbmod set etype 0x0031",
"$TC actions add action skbmod set etype 0x0041"
],
"cmdUnderTest": "$TC actions flush action skbmod",
"expExitCode": "0",
"verifyCmd": "$TC actions ls action skbmod",
"matchPattern": "action order [0-9]*: skbmod",
"matchCount": "0",
"teardown": [
"$TC actions flush action skbmod"
]
},
{
"id": "b651",
"name": "Replace skbmod action with invalid goto_chain control",
"category": [
"actions",
"skbmod"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbmod",
0,
1,
255
],
"$TC actions add action skbmod set etype 0x1111 pass index 90"
],
"cmdUnderTest": "$TC actions replace action skbmod set etype 0x1111 goto chain 42 index 90 cookie c1a0c1a0",
"expExitCode": "255",
"verifyCmd": "$TC actions ls action skbmod",
"matchPattern": "action order [0-9]*: skbmod pass set etype 0x1111\\s+index 90 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbmod"
]
},
{
"id": "fe09",
"name": "Add skbmod action to mark ECN bits",
"category": [
"actions",
"skbmod"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action skbmod",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbmod ecn",
"expExitCode": "0",
"verifyCmd": "$TC actions get action skbmod index 1",
"matchPattern": "action order [0-9]*: skbmod pipe ecn",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbmod"
]
}
]
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,967 @@
[
{
"id": "6f5a",
"name": "Add vlan pop action with pipe opcode",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan pop pipe index 8",
"expExitCode": "0",
"verifyCmd": "$TC actions list action vlan",
"matchPattern": "action order [0-9]+: vlan.*pop.*pipe.*index 8 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "df35",
"name": "Add vlan pop action with pass opcode",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan pop pass index 8",
"expExitCode": "0",
"verifyCmd": "$TC actions get action vlan index 8",
"matchPattern": "action order [0-9]+: vlan.*pop.*pass.*index 8 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "b0d4",
"name": "Add vlan pop action with drop opcode",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan pop drop index 8",
"expExitCode": "0",
"verifyCmd": "$TC actions get action vlan index 8",
"matchPattern": "action order [0-9]+: vlan.*pop.*drop.*index 8 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "95ee",
"name": "Add vlan pop action with reclassify opcode",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan pop reclassify index 8",
"expExitCode": "0",
"verifyCmd": "$TC actions get action vlan index 8",
"matchPattern": "action order [0-9]+: vlan.*pop.*reclassify.*index 8 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "0283",
"name": "Add vlan pop action with continue opcode",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan pop continue index 8",
"expExitCode": "0",
"verifyCmd": "$TC actions get action vlan index 8",
"matchPattern": "action order [0-9]+: vlan.*pop.*continue.*index 8 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "b6b9",
"name": "Add vlan pop action with jump opcode",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan pop jump 10 index 8",
"expExitCode": "0",
"verifyCmd": "$TC actions list action vlan",
"matchPattern": "action order [0-9]+: vlan.*jump 10.*index 8 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "87c3",
"name": "Add vlan pop action with trap opcode",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan pop trap index 8",
"expExitCode": "0",
"verifyCmd": "$TC actions list action vlan",
"matchPattern": "action order [0-9]+: vlan.*pop trap.*index 8 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "a178",
"name": "Add vlan pop action with invalid opcode",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan pop foo index 8",
"expExitCode": "255",
"verifyCmd": "$TC actions list action vlan",
"matchPattern": "action order [0-9]+: vlan.*pop.*foo.*index 8 ref",
"matchCount": "0",
"teardown": []
},
{
"id": "ee6f",
"name": "Add vlan pop action with index at 32-bit maximum",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan pop index 4294967295",
"expExitCode": "0",
"verifyCmd": "$TC actions list action vlan",
"matchPattern": "action order [0-9]+: vlan.*pop.*index 4294967295 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "0dfa",
"name": "Add vlan pop action with index exceeding 32-bit maximum",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan pop reclassify index 429496729599",
"expExitCode": "255",
"verifyCmd": "$TC actions get action vlan index 429496729599",
"matchPattern": "action order [0-9]+: vlan.*pop.reclassify.*index 429496729599",
"matchCount": "0",
"teardown": []
},
{
"id": "2b91",
"name": "Add vlan invalid action",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan bad_mode",
"expExitCode": "255",
"verifyCmd": "$TC actions list action vlan",
"matchPattern": "action order [0-9]+: vlan.*bad_mode",
"matchCount": "0",
"teardown": []
},
{
"id": "57fc",
"name": "Add vlan push action with invalid protocol type",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan push protocol ABCD",
"expExitCode": "255",
"verifyCmd": "$TC actions list action vlan",
"matchPattern": "action order [0-9]+: vlan.*push",
"matchCount": "0",
"teardown": []
},
{
"id": "3989",
"name": "Add vlan push action with default protocol and priority",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan push id 123 index 18",
"expExitCode": "0",
"verifyCmd": "$TC actions get action vlan index 18",
"matchPattern": "action order [0-9]+: vlan.*push id 123 protocol 802.1Q priority 0 pipe.*index 18 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "79dc",
"name": "Add vlan push action with protocol 802.1Q and priority 3",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan push id 77 protocol 802.1Q priority 3 continue index 734",
"expExitCode": "0",
"verifyCmd": "$TC actions get action vlan index 734",
"matchPattern": "action order [0-9]+: vlan.*push id 77 protocol 802.1Q priority 3 continue.*index 734 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "4d73",
"name": "Add vlan push action with protocol 802.1AD",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan push id 1024 protocol 802.1AD pass index 10000",
"expExitCode": "0",
"verifyCmd": "$TC actions get action vlan index 10000",
"matchPattern": "action order [0-9]+: vlan.*push id 1024 protocol 802.1ad priority 0 pass.*index 10000 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "1f4b",
"name": "Add vlan push action with maximum 12-bit vlan ID",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan push id 4094 index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions get action vlan index 1",
"matchPattern": "action order [0-9]+: vlan.*push id 4094.*protocol 802.1Q.*priority 0.*index 1 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "1f7b",
"name": "Add vlan push action with invalid vlan ID",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan push id 5678 index 1",
"expExitCode": "255",
"verifyCmd": "$TC actions list action vlan",
"matchPattern": "action order [0-9]+: vlan.*push id 5678.*index 1 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "fe40",
"name": "Add vlan push action with maximum 3-bit IEEE 802.1p priority",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan push id 4 priority 7 reclassify index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions get action vlan index 1",
"matchPattern": "action order [0-9]+: vlan.*push id 4.*protocol 802.1Q.*priority 7.*reclassify.*index 1 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "5d02",
"name": "Add vlan push action with invalid IEEE 802.1p priority",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan push id 5 priority 10 index 1",
"expExitCode": "255",
"verifyCmd": "$TC actions list action vlan",
"matchPattern": "action order [0-9]+: vlan.*push id 5.*index 1 ref",
"matchCount": "0",
"teardown": []
},
{
"id": "ba5b",
"name": "Add vlan modify action for protocol 802.1Q setting priority 0",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan modify protocol 802.1Q id 5 priority 0 index 100",
"expExitCode": "0",
"verifyCmd": "$TC actions get action vlan index 100",
"matchPattern": "action order [0-9]+: vlan.*modify id 100 priority 0 protocol 802.1Q pipe.*index 100 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "6812",
"name": "Add vlan modify action for protocol 802.1Q",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan modify protocol 802.1Q id 5 index 100",
"expExitCode": "0",
"verifyCmd": "$TC actions get action vlan index 100",
"matchPattern": "action order [0-9]+: vlan.*modify id 100 protocol 802.1Q pipe.*index 100 ref",
"matchCount": "0",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "5a31",
"name": "Add vlan modify action for protocol 802.1AD",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan modify protocol 802.1ad id 500 reclassify index 12",
"expExitCode": "0",
"verifyCmd": "$TC actions get action vlan index 12",
"matchPattern": "action order [0-9]+: vlan.*modify id 500 protocol 802.1ad reclassify.*index 12 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "3deb",
"name": "Replace existing vlan push action with new ID",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
],
"$TC actions add action vlan push id 500 pipe index 12"
],
"cmdUnderTest": "$TC actions replace action vlan push id 700 pipe index 12",
"expExitCode": "0",
"verifyCmd": "$TC actions get action vlan index 12",
"matchPattern": "action order [0-9]+: vlan.*push id 700 protocol 802.1Q priority 0 pipe.*index 12 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "9e76",
"name": "Replace existing vlan push action with new protocol",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
],
"$TC actions add action vlan push id 1 protocol 802.1Q pipe index 1"
],
"cmdUnderTest": "$TC actions replace action vlan push id 1 protocol 802.1ad pipe index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions get action vlan index 1",
"matchPattern": "action order [0-9]+: vlan.*push id 1 protocol 802.1ad priority 0 pipe.*index 1 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "ede4",
"name": "Replace existing vlan push action with new priority",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
],
"$TC actions add action vlan push id 1 protocol 802.1Q priority 3 reclassify index 1"
],
"cmdUnderTest": "$TC actions replace action vlan push id 1 priority 4 reclassify index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions get action vlan index 1",
"matchPattern": "action order [0-9]+: vlan.*push id 1 protocol 802.1Q priority 4 reclassify.*index 1 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "d413",
"name": "Replace existing vlan pop action with new cookie",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
],
"$TC actions add action vlan pop continue index 1 cookie 22334455"
],
"cmdUnderTest": "$TC actions replace action vlan pop continue index 1 cookie a1b1c2d1",
"expExitCode": "0",
"verifyCmd": "$TC actions get action vlan index 1",
"matchPattern": "action order [0-9]+: vlan.*pop continue.*index 1 ref.*cookie a1b1c2d1",
"matchCount": "1",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "83a4",
"name": "Delete vlan pop action",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
],
"$TC actions add action vlan pop index 44"
],
"cmdUnderTest": "$TC actions del action vlan index 44",
"expExitCode": "0",
"verifyCmd": "$TC actions list action vlan",
"matchPattern": "action order [0-9]+: vlan.*pop.*index 44 ref",
"matchCount": "0",
"teardown": []
},
{
"id": "ed1e",
"name": "Delete vlan push action for protocol 802.1Q",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
],
"$TC actions add action vlan push id 4094 protocol 802.1Q index 999"
],
"cmdUnderTest": "$TC actions del action vlan index 999",
"expExitCode": "0",
"verifyCmd": "$TC actions list action vlan",
"matchPattern": "action order [0-9]+: vlan.*push id 4094 protocol 802.1Q priority 0 pipe.*index 999 ref",
"matchCount": "0",
"teardown": []
},
{
"id": "a2a3",
"name": "Flush vlan actions",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
],
"$TC actions add action vlan push id 4 protocol 802.1ad index 10",
"$TC actions add action vlan push id 4 protocol 802.1ad index 11",
"$TC actions add action vlan push id 4 protocol 802.1ad index 12",
"$TC actions add action vlan push id 4 protocol 802.1ad index 13"
],
"cmdUnderTest": "$TC actions flush action vlan",
"expExitCode": "0",
"verifyCmd": "$TC actions list action vlan",
"matchPattern": "action order [0-9]+: vlan.*push id 4 protocol 802.1ad",
"matchCount": "0",
"teardown": []
},
{
"id": "1d78",
"name": "Add vlan push action with cookie",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan push id 4 cookie a0a0a0a0a0a0a0",
"expExitCode": "0",
"verifyCmd": "$TC actions list action vlan",
"matchPattern": "action order [0-9]+: vlan.*push id 4.*cookie a0a0a0a0a0a0a0",
"matchCount": "1",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "e394",
"name": "Replace vlan push action with invalid goto chain control",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
],
"$TC actions add action vlan push id 500 pass index 90"
],
"cmdUnderTest": "$TC actions replace action vlan push id 500 goto chain 42 index 90 cookie c1a0c1a0",
"expExitCode": "255",
"verifyCmd": "$TC actions get action vlan index 90",
"matchPattern": "action order [0-9]+: vlan.*push id 500 protocol 802.1Q priority 0 pass.*index 90 ref",
"matchCount": "1",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "294e",
"name": "Add batch of 32 vlan push actions with cookie",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"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\"",
"expExitCode": "0",
"verifyCmd": "$TC actions list action vlan",
"matchPattern": "^[ \t]+index [0-9]+ ref",
"matchCount": "32",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "56f7",
"name": "Delete batch of 32 vlan push actions",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
],
"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\""
],
"cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action vlan index \\$i \\\"; args=\"\\$args\\$cmd\"; done && $TC actions del \\$args\"",
"expExitCode": "0",
"verifyCmd": "$TC actions list action vlan",
"matchPattern": "^[ \t]+index [0-9]+ ref",
"matchCount": "0",
"teardown": []
},
{
"id": "759f",
"name": "Add batch of 32 vlan pop actions with cookie",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"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\"",
"expExitCode": "0",
"verifyCmd": "$TC actions list action vlan",
"matchPattern": "^[ \t]+index [0-9]+ ref",
"matchCount": "32",
"teardown": [
"$TC actions flush action vlan"
]
},
{
"id": "c84a",
"name": "Delete batch of 32 vlan pop actions",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
],
"bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action vlan pop index \\$i \\\"; args=\\\"\\$args\\$cmd\\\"; done && $TC actions add \\$args\""
],
"cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action vlan index \\$i \\\"; args=\"\\$args\\$cmd\"; done && $TC actions del \\$args\"",
"expExitCode": "0",
"verifyCmd": "$TC actions list action vlan",
"matchPattern": "^[ \t]+index [0-9]+ ref",
"matchCount": "0",
"teardown": []
},
{
"id": "1a3d",
"name": "Add vlan pop action with no_percpu flag",
"category": [
"actions",
"vlan"
],
"plugins": {
"requires": "nsPlugin"
},
"setup": [
[
"$TC actions flush action vlan",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action vlan pop no_percpu",
"expExitCode": "0",
"verifyCmd": "$TC actions list action vlan",
"matchPattern": "action order [0-9]+: vlan.*pop.*no_percpu",
"matchCount": "1",
"teardown": [
"$TC actions flush action vlan"
]
}
]