[
{
"id": "2b11",
"name": "Add tunnel_key set action with mandatory parameters",
"category": [
"actions",
"tunnel_key"
],
"setup": [
[
"$TC actions flush action tunnel_key",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action tunnel_key set src_ip 10.10.10.1 dst_ip 20.20.20.2 id 1",
"expExitCode": "0",
"verifyCmd": "$TC actions list action tunnel_key",
"matchPattern": "action order [0-9]+: tunnel_key.*set.*src_ip 10.10.10.1.*dst_ip 20.20.20.2.*key_id 1",
"matchCount": "1",
"teardown": [
"$TC actions flush action tunnel_key"
]
},
{
"id": "dc6b",
"name": "Add tunnel_key set action with missing mandatory src_ip parameter",
"category": [
"actions",
"tunnel_key"
],
"setup": [
[
"$TC actions flush action tunnel_key",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action tunnel_key set dst_ip 20.20.20.2 id 100",
"expExitCode": "255",
"verifyCmd": "$TC actions list action tunnel_key",
"matchPattern": "action order [0-9]+: tunnel_key set.*dst_ip 20.20.20.2.*key_id 100",
"matchCount": "0",
"teardown": [
[
"$TC actions flush action tunnel_key",
0,
1,
255
]
]
},
{
"id": "7f25",
"name": "Add tunnel_key set action with missing mandatory dst_ip parameter",
"category": [
"actions",
"tunnel_key"
],
"setup": [
[
"$TC actions flush action tunnel_key",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action tunnel_key set src_ip 10.10.10.1 id 100",
"expExitCode": "255",
"verifyCmd": "$TC actions list action tunnel_key",
"matchPattern": "action order [0-9]+: tunnel_key set.*src_ip 10.10.10.1.*key_id 100",
"matchCount": "0",
"teardown": [
[
"$TC actions flush action tunnel_key",
0,
1,
255
]
]
},
{
"id": "a5e0",
"name": "Add tunnel_key set action with invalid src_ip parameter",
"category": [
"actions",
"tunnel_key"
],
"setup": [
[
"$TC actions flush action tunnel_key",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action tunnel_key set src_ip 300.168.100.1 dst_ip 192.168.200.1 id 7 index 1",
"expExitCode": "1",
"verifyCmd": "$TC actions get action tunnel_key index 1",
"matchPattern": "action order [0-9]+: tunnel_key set.*src_ip 300.168.100.1.*dst_ip 192.168.200.1.*key_id 7.*index 1 ref",
"matchCount": "0",
"teardown": [
[
"$TC actions flush action tunnel_key",
0,
1,
255
]
]
},
{
"id": "eaa8",
"name": "Add tunnel_key set action with invalid dst_ip parameter",
"category": [
"actions",
"tunnel_key"
],
"setup": [
[
"$TC actions flush action tunnel_key",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action tunnel_key set src_ip 192.168.100.1 dst_ip 192.168.800.1 id 10 index 11",
"expExitCode": "1",
"verifyCmd": "$TC actions get action tunnel_key index 11",
"matchPattern": "action order [0-9]+: tunnel_key set.*src_ip 192.168.100.1.*dst_ip 192.168.800.1.*key_id 10.*index 11 ref",
"matchCount": "0",
"teardown": [
[
"$TC actions flush action tunnel_key",
0,
1,
255
]
]
},
{
"id": "3b09",
"name": "Add tunnel_key set action with invalid id parameter",
"category": [
"actions",
"tunnel_key"
],
"setup": [
[
"$TC actions flush action tunnel_key",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 112233445566778899 index 1",
"expExitCode": "255",
"verifyCmd": "$TC actions get action tunnel_key index 1",
"matchPattern": "action order [0-9]+: tunnel_key set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 112233445566778899.*index 1 ref",
"matchCount": "0",
"teardown": [
[
"$TC actions flush action tunnel_key",
0,
1,
255
]
]
},
{
"id": "9625",
"name": "Add tunnel_key set action with invalid dst_port parameter",
"category": [
"actions",
"tunnel_key"
],
"setup": [
[
"$TC actions flush action tunnel_key",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action tunnel_key set src_ip 1.1.1.1 dst_ip 2.2.2.2 id 11 dst_port 998877 index 1",
"expExitCode": "255",
"verifyCmd": "$TC actions get action tunnel_key index 1",
"matchPattern": "action order [0-9]+: tunnel_key set.*src_ip 1.1.1.1.*dst_ip 2.2.2.2.*key_id 11.*dst_port 998877.*index 1 ref",
"matchCount": "0",
"teardown": [
[
"$TC actions flush action tunnel_key",
0,
1,
255
]
]
},
{
"id": "05af",
"name": "Add tunnel_key set action with optional dst_port parameter",
"category": [
"actions",
"tunnel_key"
],
"setup": [
[
"$TC actions flush action tunnel_key",
0,
1,
255
]
],