aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorAndre Puschmann <andre@softwareradiosystems.com>2020-03-28 15:34:00 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-04-01 15:35:03 +0200
commit2dcc4312a024c25b9f18f113507b1e4329360c88 (patch)
treef525462aaa546b341f707744f478044e59b0fb26 /example
parentc04528cb1fabe970f7ac28ca98fcfbfbc9e9c41f (diff)
iperf3: add config to adjust the duration of the iperf run
the time is passed as a string param and is then converted into seconds when literals "h" or "m" are found. So it would accept 2m and would convert it to 120s, for example. Example: +cfg-iperf3-time@15+ Change-Id: Iff28816f83670751e9e91de31ec59b1b0ad8fc0d
Diffstat (limited to 'example')
-rw-r--r--example/defaults.conf3
-rw-r--r--example/scenarios/cfg-iperf3-time@.conf3
2 files changed, 6 insertions, 0 deletions
diff --git a/example/defaults.conf b/example/defaults.conf
index aa1e1dc..0b9136d 100644
--- a/example/defaults.conf
+++ b/example/defaults.conf
@@ -123,3 +123,6 @@ srsue:
airplane_t_on_ms: -1
airplane_t_off_ms: -1
num_carriers: 1
+
+iperf3cli:
+ time: 60
diff --git a/example/scenarios/cfg-iperf3-time@.conf b/example/scenarios/cfg-iperf3-time@.conf
new file mode 100644
index 0000000..f46c59a
--- /dev/null
+++ b/example/scenarios/cfg-iperf3-time@.conf
@@ -0,0 +1,3 @@
+config:
+ iperf3cli:
+ time: ${param1}