field_engine.json revision adba1571
1{
2  "instructions": [
3    {
4      "id": "STLVmFlowVar",
5      "parameters": ["name", "init_value", "max_value","min_value","step", "size","op"]
6    },
7    {
8      "id": "STLVmWrFlowVar",
9      "parameters": ["fv_name", "pkt_offset","offset_fixup","add_val","is_big"]
10    },
11    {
12      "id": "STLVmWrMaskFlowVar",
13      "parameters": ["fv_name", "pkt_offset", "pkt_cast_size","mask", "shift","add_value","is_big"]
14    },
15    {
16      "id": "STLVmFixIpv4",
17      "parameters": ["offset"]
18    },
19    {
20      "id": "STLVmTrimPktSize",
21      "parameters": ["fv_name"]
22    },
23    {
24      "id": "STLVmTupleGen",
25      "parameters": ["name", "ip_min", "ip_max", "port_min", "port_max", "limit_flows", "flags"]
26    },
27    {
28      "id": "STLVmFlowVarRepetableRandom",
29      "parameters": ["name", "size", "limit", "seed", "min_value", "max_value"]
30    },
31    {
32      "id": "STLVmFixChecksumHw",
33      "parameters": ["l3_offset","l4_offset","l4_type"]
34    }
35  ],
36
37  "instruction_params_meta": [
38    {
39      "id": "name",
40      "name": "Name",
41      "type": "ENUM",
42      "editable": true,
43      "required": true,
44      "defaultValue": "Not defined"
45    },
46    {
47      "id": "init_value",
48      "name": "Initial value",
49      "type": "STRING",
50      "defaultValue": "0"
51    },
52    {
53      "id": "max_value",
54      "name": "Maximum value",
55      "type": "STRING",
56      "required": true,
57      "defaultValue": "0"
58    },
59    {
60      "id": "min_value",
61      "name": "Minimum value",
62      "type": "STRING",
63      "required": true,
64      "defaultValue": "0"
65    },
66    {
67      "id": "step",
68      "name": "Step",
69      "type": "NUMBER",
70      "required": true,
71      "defaultValue": "1"
72    },
73    {
74      "id": "op",
75      "name": "Operation",
76      "type": "ENUM",
77      "defaultValue": "inc",
78      "dict": {
79        "dec": "Decrement",
80        "inc": "Increment",
81        "random": "Random"
82      },
83      "required": true
84    },
85    {
86      "id": "size",
87      "name": "Size",
88      "type": "ENUM",
89      "defaultValue": "4",
90      "dict": {
91        "1": "1",
92        "2": "2",
93        "4": "4",
94        "8": "8"
95      }
96    },
97    {
98      "id": "fv_name",
99      "name": "Variable name",
100      "type": "ENUM",
101      "required": true,
102      "editable": false
103    },
104    {
105      "id": "pkt_offset",
106      "name": "Offset",
107      "type": "ENUM",
108      "required": true,
109      "editable": true,
110      "defaultValue": 0
111    },
112    {
113      "id": "pkt_cast_size",
114      "name": "Packet cast size",
115      "type": "ENUM",
116      "defaultValue": 1,
117      "dict":{
118        "1":1,
119        "2":2,
120        "4":4
121      }
122    },
123    {
124      "id": "shift",
125      "name": "Shift",
126      "type": "NUMBER",
127      "defaultValue": 0
128    },
129    {
130      "id": "mask",
131      "name": "Mask",
132      "type": "STRING",
133      "defaultValue": "0xff"
134    },
135    {
136      "id": "offset_fixup",
137      "name": "offset_fixup",
138      "type": "NUMBER",
139      "defaultValue": 0
140    },
141    {
142      "id": "add_val",
143      "name": "add_val",
144      "type": "NUMBER",
145      "defaultValue": 0
146    },
147    {
148      "id": "add_value",
149      "name": "add_value",
150      "type": "NUMBER",
151      "defaultValue": 0
152    },
153    {
154      "id": "is_big",
155      "name": "is_big",
156      "type": "ENUM",
157      "defaultValue": "true",
158      "dict": {
159        "true": "true",
160        "false": "false"
161      }
162    },
163    {
164      "id": "offset",
165      "name": "Offset",
166      "type": "ENUM",
167      "required": true,
168      "editable": true,
169      "defaultValue": 0
170    },
171    {
172      "id": "l3_offset",
173      "name": "L3 offset",
174      "type": "STRING",
175      "required": true,
176      "autocomplete": true,
177      "defaultValue": "IP"
178    },
179    {
180      "id": "l4_offset",
181      "name": "L4 offset",
182      "type": "STRING",
183      "required": true,
184      "defaultValue": "0"
185    },
186    {
187      "id": "ip_min",
188      "name": "Min IP",
189      "type": "STRING",
190      "defaultValue": "0.0.0.1"
191    },
192    {
193      "id": "ip_max",
194      "name": "Max IP",
195      "type": "STRING",
196      "defaultValue": "0.0.0.10"
197    },
198    {
199      "id": "port_max",
200      "name": "Max Port number",
201      "type": "NUMBER",
202      "defaultValue": 65535
203    },
204    {
205      "id": "port_min",
206      "name": "Min Port number",
207      "type": "NUMBER",
208      "defaultValue": 1025
209    },
210    {
211      "id": "limit_flows",
212      "name": "FLows limit",
213      "type": "NUMBER",
214      "defaultValue": 100000
215    },
216    {
217      "id": "limit",
218      "name": "Limit",
219      "type": "NUMBER",
220      "defaultValue": 100
221    },
222    {
223      "id": "seed",
224      "name": "Seed",
225      "type": "String",
226      "defaultValue": "None"
227    },
228    {
229      "id": "flags",
230      "name": "Flags",
231      "type": "NUMBER",
232      "defaultValue": 0
233    },
234    {
235      "id": "l4_type",
236      "name": "L4 type",
237      "type": "ENUM",
238      "required": true,
239      "editable": false,
240      "defaultValue": "13",
241      "dict": {
242        "11": "L4_TYPE_UDP",
243        "13": "L4_TYPE_TCP"
244      }
245    }
246  ],
247  "supported_protocols": ["IP","TCP","UDP"],
248  "global_params_meta":[
249    {
250      "id": "cache_size",
251      "name": "Cache size",
252      "type": "NUMBER",
253      "defaultValue": "1000"
254    }
255  ]
256}
257
258