summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/services
diff options
context:
space:
mode:
authorVyacheslav Ogai <vyacheslav.ogai@gmail.com>2016-11-30 01:30:41 +0200
committerHanoh Haim <hhaim@cisco.com>2016-12-19 16:04:07 +0200
commitadba1571de39dc65a3de192ec0a86828c2a95ded (patch)
treeed34e91f7beb55a5c518d34f52088e0e3fa77595 /scripts/automation/trex_control_plane/stl/services
parent7a5f76d1df647c22cd0f2f4cd152b9fcae9e48ab (diff)
Add more VM insructions.
Signed-off-by: Vyacheslav Ogai <vyacheslav.ogai@gmail.com>
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/services')
-rw-r--r--scripts/automation/trex_control_plane/stl/services/scapy_server/field_engine.json142
1 files changed, 115 insertions, 27 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 c978e42c..30c8dc15 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
@@ -2,17 +2,33 @@
"instructions": [
{
"id": "STLVmFlowVar",
- "parameters": ["name", "max_value","min_value","step", "size","op"]
+ "parameters": ["name", "init_value", "max_value","min_value","step", "size","op"]
},
{
"id": "STLVmWrFlowVar",
"parameters": ["fv_name", "pkt_offset","offset_fixup","add_val","is_big"]
},
{
+ "id": "STLVmWrMaskFlowVar",
+ "parameters": ["fv_name", "pkt_offset", "pkt_cast_size","mask", "shift","add_value","is_big"]
+ },
+ {
"id": "STLVmFixIpv4",
"parameters": ["offset"]
},
{
+ "id": "STLVmTrimPktSize",
+ "parameters": ["fv_name"]
+ },
+ {
+ "id": "STLVmTupleGen",
+ "parameters": ["name", "ip_min", "ip_max", "port_min", "port_max", "limit_flows", "flags"]
+ },
+ {
+ "id": "STLVmFlowVarRepetableRandom",
+ "parameters": ["name", "size", "limit", "seed", "min_value", "max_value"]
+ },
+ {
"id": "STLVmFixChecksumHw",
"parameters": ["l3_offset","l4_offset","l4_type"]
}
@@ -22,7 +38,8 @@
{
"id": "name",
"name": "Name",
- "type": "STRING",
+ "type": "ENUM",
+ "editable": true,
"required": true,
"defaultValue": "Not defined"
},
@@ -69,7 +86,7 @@
"id": "size",
"name": "Size",
"type": "ENUM",
- "defaultValue": "1",
+ "defaultValue": "4",
"dict": {
"1": "1",
"2": "2",
@@ -80,18 +97,42 @@
{
"id": "fv_name",
"name": "Variable name",
- "type": "STRING",
+ "type": "ENUM",
"required": true,
- "defaultValue": "Not Defined"
+ "editable": false
},
{
"id": "pkt_offset",
"name": "Offset",
- "type": "STRING",
+ "type": "ENUM",
"required": true,
+ "editable": true,
"defaultValue": 0
},
{
+ "id": "pkt_cast_size",
+ "name": "Packet cast size",
+ "type": "ENUM",
+ "defaultValue": 1,
+ "dict":{
+ "1":1,
+ "2":2,
+ "4":4
+ }
+ },
+ {
+ "id": "shift",
+ "name": "Shift",
+ "type": "NUMBER",
+ "defaultValue": 0
+ },
+ {
+ "id": "mask",
+ "name": "Mask",
+ "type": "STRING",
+ "defaultValue": "0xff"
+ },
+ {
"id": "offset_fixup",
"name": "offset_fixup",
"type": "NUMBER",
@@ -104,6 +145,12 @@
"defaultValue": 0
},
{
+ "id": "add_value",
+ "name": "add_value",
+ "type": "NUMBER",
+ "defaultValue": 0
+ },
+ {
"id": "is_big",
"name": "is_big",
"type": "ENUM",
@@ -116,52 +163,93 @@
{
"id": "offset",
"name": "Offset",
- "type": "STRING",
+ "type": "ENUM",
"required": true,
- "defaultValue": "Not defined"
+ "editable": true,
+ "defaultValue": 0
},
{
"id": "l3_offset",
"name": "L3 offset",
"type": "STRING",
"required": true,
- "defaultValue": 0
+ "autocomplete": true,
+ "defaultValue": "IP"
},
{
"id": "l4_offset",
"name": "L4 offset",
"type": "STRING",
"required": true,
+ "defaultValue": "0"
+ },
+ {
+ "id": "ip_min",
+ "name": "Min IP",
+ "type": "STRING",
+ "defaultValue": "0.0.0.1"
+ },
+ {
+ "id": "ip_max",
+ "name": "Max IP",
+ "type": "STRING",
+ "defaultValue": "0.0.0.10"
+ },
+ {
+ "id": "port_max",
+ "name": "Max Port number",
+ "type": "NUMBER",
+ "defaultValue": 65535
+ },
+ {
+ "id": "port_min",
+ "name": "Min Port number",
+ "type": "NUMBER",
+ "defaultValue": 1025
+ },
+ {
+ "id": "limit_flows",
+ "name": "FLows limit",
+ "type": "NUMBER",
+ "defaultValue": 100000
+ },
+ {
+ "id": "limit",
+ "name": "Limit",
+ "type": "NUMBER",
+ "defaultValue": 100
+ },
+ {
+ "id": "seed",
+ "name": "Seed",
+ "type": "String",
+ "defaultValue": "None"
+ },
+ {
+ "id": "flags",
+ "name": "Flags",
+ "type": "NUMBER",
"defaultValue": 0
},
{
"id": "l4_type",
"name": "L4 type",
- "type": "STRING",
+ "type": "ENUM",
"required": true,
- "defaultValue": "Not defined"
+ "editable": false,
+ "defaultValue": "13",
+ "dict": {
+ "11": "L4_TYPE_UDP",
+ "13": "L4_TYPE_TCP"
+ }
}
],
- "protocol_fields": {
- "IP": [
- "ttl",
- "src",
- "dst"
- ],
- "TCP": [
- "sport",
- "dport"
- ],
- "UDP": [
- "sport",
- "dport"
- ]
- },
+ "supported_protocols": ["IP","TCP","UDP"],
"global_params_meta":[
{
"id": "cache_size",
"name": "Cache size",
- "type": "STRING",
+ "type": "NUMBER",
"defaultValue": "1000"
}
]