mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 11:48:03 +00:00
Added option to GenCXProfile for iperf endp type
This commit is contained in:
@@ -1335,6 +1335,9 @@ class GenCXProfile(LFCliBase):
|
|||||||
raise ValueError("Please ensure cmd has been set correctly")
|
raise ValueError("Please ensure cmd has been set correctly")
|
||||||
elif self.type == "speedtest":
|
elif self.type == "speedtest":
|
||||||
self.cmd = "vrf_exec.bash %s speedtest-cli --json --share" % (sta_name)
|
self.cmd = "vrf_exec.bash %s speedtest-cli --json --share" % (sta_name)
|
||||||
|
elif self.type == "iperf3" and self.dest is not None:
|
||||||
|
self.cmd = "iperf3 --forceflush --format k --precision 4 -c %s -t 60 --tos 0 -b 1K --bind_dev %s -i 1 " \
|
||||||
|
"--pidfile /tmp/lf_helper_iperf3_test.pid" % (self.dest, sta_name)
|
||||||
else:
|
else:
|
||||||
raise ValueError("Unknown command type")
|
raise ValueError("Unknown command type")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user