From 82a9911f91c5190b3e76ab161d51a1b780fcbbb8 Mon Sep 17 00:00:00 2001 From: Vyacheslav Ogai Date: Fri, 30 Sep 2016 19:18:46 +0300 Subject: Added initial implementation of Field Engine support. Signed-off-by: Vyacheslav Ogai --- .../stl/services/scapy_server/field_engine.json | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 scripts/automation/trex_control_plane/stl/services/scapy_server/field_engine.json (limited to 'scripts/automation/trex_control_plane/stl/services/scapy_server/field_engine.json') 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 new file mode 100644 index 00000000..082a6f32 --- /dev/null +++ b/scripts/automation/trex_control_plane/stl/services/scapy_server/field_engine.json @@ -0,0 +1,62 @@ +{ + "instruction_params_meta": [ + { + "id": "max_value", + "name": "Maximum value", + "type": "STRING", + "defaultValue": "0" + }, + { + "id": "min_value", + "name": "Minimum value", + "type": "STRING", + "defaultValue": "0" + }, + { + "id": "step", + "name": "Step", + "type": "NUMBER", + "defaultValue": "1" + }, + { + "id": "op", + "name": "Operation", + "type": "ENUM", + "defaultValue": "inc", + "dict": { + "dec": "Decrement", + "inc": "Increment", + "random": "Random" + } + } + ], + "protocol_fields": { + "IP": [ + "ttl", + "src", + "dst" + ], + "TCP": [ + "sport", + "dport" + ], + "UDP": [ + "sport", + "dport" + ] + }, + "global_params_meta":[ + { + "id": "split_by_field", + "name": "Split by", + "type": "ENUM" + }, + { + "id": "cache_size", + "name": "Cache size", + "type": "STRING", + "defaultValue": "1000" + } + ] +} + -- cgit 1.2.3-korg