summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/services/scapy_server/field_engine.json
diff options
context:
space:
mode:
authorVyacheslav Ogai <vyacheslav.ogai@gmail.com>2016-10-05 16:03:37 +0300
committerHanoh Haim <hhaim@cisco.com>2016-12-19 16:04:07 +0200
commit9218477a913ddab4f01fb1b7754dc2ae69a32898 (patch)
tree1b69be930809828edd959f9982472c31c1860cc1 /scripts/automation/trex_control_plane/stl/services/scapy_server/field_engine.json
parent82a9911f91c5190b3e76ab161d51a1b780fcbbb8 (diff)
Add instrucitons meta. Delete split_by_field field engine global parameter.
Signed-off-by: Vyacheslav Ogai <vyacheslav.ogai@gmail.com>
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/services/scapy_server/field_engine.json')
-rw-r--r--scripts/automation/trex_control_plane/stl/services/scapy_server/field_engine.json54
1 files changed, 49 insertions, 5 deletions
diff --git a/scripts/automation/trex_control_plane/stl/services/scapy_server/field_engine.json b/scripts/automation/trex_control_plane/stl/services/scapy_server/field_engine.json
index 082a6f32..9214f4c8 100644
--- a/scripts/automation/trex_control_plane/stl/services/scapy_server/field_engine.json
+++ b/scripts/automation/trex_control_plane/stl/services/scapy_server/field_engine.json
@@ -1,4 +1,23 @@
{
+ "instructions": [
+ {
+ "id": "STLVmFlowVar",
+ "parameters": ["max_value","min_value","step","op"]
+ },
+ {
+ "id": "STLVmWrFlowVar",
+ "parameters": ["fv_name", "pkt_offset"]
+ },
+ {
+ "id": "STLVmFixIpv4",
+ "parameters": ["offset"]
+ },
+ {
+ "id": "STLVmFixChecksumHw",
+ "parameters": ["l3_offset","l4_offset","l4_type"]
+ }
+ ],
+
"instruction_params_meta": [
{
"id": "max_value",
@@ -28,6 +47,36 @@
"inc": "Increment",
"random": "Random"
}
+ },
+ {
+ "id": "fv_name",
+ "name": "Variable name",
+ "type": "STRING"
+ },
+ {
+ "id": "pkt_offset",
+ "name": "Offset",
+ "type": "STRING"
+ },
+ {
+ "id": "offset",
+ "name": "Offset",
+ "type": "STRING"
+ },
+ {
+ "id": "l3_offset",
+ "name": "L3 offset",
+ "type": "STRING"
+ },
+ {
+ "id": "l4_offset",
+ "name": "L4 offset",
+ "type": "STRING"
+ },
+ {
+ "id": "l4_type",
+ "name": "L4 type",
+ "type": "STRING"
}
],
"protocol_fields": {
@@ -47,11 +96,6 @@
},
"global_params_meta":[
{
- "id": "split_by_field",
- "name": "Split by",
- "type": "ENUM"
- },
- {
"id": "cache_size",
"name": "Cache size",
"type": "STRING",