-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmultiplex.json
181 lines (181 loc) · 7.08 KB
/
multiplex.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
{
"presets": {
"essentials": [
{ "arg": "compress-files", "vals": [ "ON" ] },
{ "arg": "result-output", "vals": [ "none" ] },
{ "arg": "process-all-profiler-data", "vals": [ "ON" ] }
]
},
"validations": {
"pci_device_list": {
"description": "1 or more (comma separated) device pairs",
"args": [ "trex-devices", "trex-active-devices", "server-devices" ],
"vals": [
"^0{4}(:[0-9a-fA-F]{2}){2}\\.[0-9],0{4}(:[0-9a-fA-F]{2}){2}\\.[0-9](,0{4}(:[0-9a-fA-F]{2}){2}\\.[0-9],0{4}(:[0-9a-fA-F]{2}){2}\\.[0-9])*$",
"^VAR:\\w+(:(.+)){0,1},VAR:\\w+(:(.+)){0,1}(,VAR:\\w+(:(.+)){0,1},VAR:\\w+(:(.+)){0,1})*$"
]
},
"trex_cpus": {
"description": "1 or more (comma separated) cpu or cpu ranges",
"args": [ "trex-cpus" ],
"vals": [ "^(([0-9]+-[0-9]+)|[0-9]+)(,([0-9]+-[0-9]+|[0-9]+))*$" ]
},
"trex_on_off_toggles": {
"description": "trex options which are toggled with on/off values",
"args": [ "trex-software-mode", "trex-mellanox-support" ],
"vals": [ "^(on|off)$" ]
},
"testpmd_forward_mode": {
"description": "supported testpmd forwarding modes",
"args": [ "testpmd-forward-mode" ],
"vals": [ "^(io|mac)$" ]
},
"testpmd_queues": {
"description": "supported testpmd queue counts",
"args": [ "testpmd-queues" ],
"vals": [ "^(1|2|3|4|8)$" ]
},
"testpmd_queues_per_pmd": {
"description": "how many queues each pmd polls",
"args": [ "testpmd-queues-per-pmd" ],
"vals": [ "^(1|2|3|4|8)$" ]
},
"testpmd_descriptors": {
"description": "supported testpmd device descriptor counts",
"args": [ "testpmd-descriptors" ],
"vals": [ "^(256|512|1024|2048|4096)$" ]
},
"testpmd_smt_mode": {
"description": "supported testpmd smt ordering modes",
"args": [ "testpmd-smt-mode" ],
"vals": [ "^(grouped|separate)$" ]
},
"testpmd_on_off_toggles": {
"description": "testpmd options which are toggled with on/off values",
"args": [ "testpmd-smt", "testpmd-enable-scatter", "estpmd-enable-rx-cksum",
"testpmd-enable-rss-udp" ],
"vals": [ "^(on|off)$" ]
},
"string": {
"description": "any string value",
"args": [ "output-dir", "traffic-profile", "pre-trial-cmd", "warmup-traffic-profile",
"trex-host", "testpmd-devopt", "trex-config" ],
"vals": [ "^.+$" ]
},
"nonzero_positive_integer": {
"description": "any non-zero postive integer value",
"args": [ "frame-size", "num-flows", "teaching-warmup-packet-rate",
"teaching-measurement-packet-rate", "warmup-trial-runtime",
"trex-mem-limit", "testpmd-mtu", "testpmd-burst", "trex-mbuf-factor" ],
"vals": [ "^[1-9][0-9]*$" ]
},
"positive_integer": {
"description": "any positive integer value",
"args": [ "validation-runtime", "search-runtime", "sniff-runtime", "latency-rate",
"trial-gap", "max-retries" ],
"vals": [ "^[0-9]+$" ]
},
"positive_integer_list": {
"description": "1 or more (comma separated) positive integer values",
"args": [ "src-ports", "dst-ports", "vxlan-ids", "vlan-ids" ],
"vals": [ "^[1-9][0-9]*(,[1-9][0-9]*)*$" ]
},
"nonezero_positive_float": {
"description": "any non-zero positive floating point value",
"args": [ "search-granularity", "rate", "teaching-measurement-interval", "trex-profiler-interval" ],
"vals": [ "^([1-9][0-9]*\\.?[0-9]*)|(0?\\.[0-9]+)$" ]
},
"positive_float": {
"description": "any positive floating point value",
"args": [ "min-rate", "rate-tolerance", "runtime-tolerance", "max-loss-pct", "random-seed" ],
"vals": [ "^([1-9][0-9]*\\.?[0-9]*)|(0?\\.[0-9]+)|(0)$" ]
},
"mac_address_list": {
"description": "1 or more (comma separated) list of mac addresses",
"args": [ "src-macs", "dst-macs", "encap-dst-macs", "encap-src-macs", "testpmd-dst-macs" ],
"vals": [ "^([0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}(,([0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2})*$" ]
},
"ip_address_list": {
"description": "1 or more (comma separated) list of ip addresses",
"args": [ "dst-ips", "src-ips", "encap-dst-ips", "encap-src-ips" ],
"vals": [ "^([0-9]{1,3}\\.){3}[0-9]{1,3}(,([0-9]{1,3}\\.){3}[0-9]{1,3})*$" ]
},
"integer_boolean": {
"description": "a boolean value represented by either 0 or 1",
"args": [ "use-src-ip-flows", "use-dst-ip-flows", "use-src-mac-flows", "use-dst-mac-flows",
"use-src-port-flows", "use-dst-port-flows", "use-protocol-flows",
"use-encap-src-ip-flows", "use-encap-dst-ip-flows", "use-encap-src-mac-flows",
"use-encap-dst-mac-flows",
"one-shot", "measure-latency" ],
"vals": [ "^[0,1]$" ]
},
"traffic_direction": {
"description": "available traffic directions",
"args": [ "traffic-direction" ],
"vals": [ "^(bidirectional|unidirectional|revunidirectional)$" ]
},
"traffic_generator": {
"description": "available traffic generators",
"args": [ "traffic-generator" ],
"vals": [ "^(trex-txrx|trex-txrx-profile|valkyrie2544|null-txrx)$" ]
},
"rate_unit": {
"description": "the unit that the traffic rate is specified in",
"args": [ "rate-unit" ],
"vals": [ "^(%|mpps)$" ]
},
"protocol": {
"description": "supported packet protocols",
"args": [ "packet-protocol" ],
"vals": [ "^(UDP|TCP)$" ]
},
"trial_results": {
"description": "supported trial result handling modes",
"args": [ "duplicate-packet-failure", "rate-tolerance-failure", "--negative-packet-loss" ],
"vals": [ "^(fail|quit|retry-to-fail|retry-to-quit)$" ]
},
"loss_granularity": {
"description": "supported loss granularity modes",
"args": [ "loss-granularity" ],
"vals": [ "^(direction|device|segment)$" ]
},
"stream_mode": {
"description": "supported stream modes",
"args": [ "stream-mode" ],
"vals": [ "^(continuous|segmented)$" ]
},
"on_off": {
"description": "parameters that should be set to ON or OFF -- handled by rickshaw.json param regex",
"args": [ "use-device-stats", "enable-segment-monitor", "disable-flow-cache",
"send-teaching-warmup", "send-teaching-measurement", "disable-trex-profiler",
"process-all-profiler-data", "repeat-final-validation", "warmup-trial",
"disable-upward-search", "no-promisc", "compress-files" ],
"vals": [ "^(ON|OFF)$" ]
},
"device_pair_list": {
"description": "1 or more (comma separated) list of TRex device index pairs",
"args": [ "device-pairs", "active-device-pairs" ],
"vals": [ "^[0-9]+:[0-9]+(,[0-9]+:[0-9]+)*$" ]
},
"device_pair": {
"description": "a single DPDK device index pair",
"args": [ "latency-device-pair" ],
"vals": [ "^[0-9]+:[0-9]+$" ]
},
"teaching_packet_types": {
"description": "types of teaching packets allowed",
"args": [ "teaching-warmup-packet-type", "teaching-measurement-packet-type" ],
"vals": [ "^(garp|icmp|generic)$" ]
},
"result_output_types": {
"description": "types of result output allowed",
"args": [ "result-output" ],
"vals": [ "^(none|device)$" ]
},
"switch_types": {
"description": "types of switches",
"args": [ "switch-type" ],
"vals": [ "^(null|testpmd)$" ]
}
}
}