summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--validation/validlib/iperf.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/validation/validlib/iperf.py b/validation/validlib/iperf.py
index d078c23bbc..816de0b4fc 100644
--- a/validation/validlib/iperf.py
+++ b/validation/validlib/iperf.py
@@ -58,9 +58,12 @@ def update_config(new_config):
def check_tokens():
for host in ["host_a", "host_b"]:
- user = config[host]["user"]
- non_plc_ip_address = config[host]["non_plc_ip_address"]
- host_token.check(user, non_plc_ip_address)
+ check_token(host)
+
+def check_token(host):
+ user = config[host]["user"]
+ non_plc_ip_address = config[host]["non_plc_ip_address"]
+ host_token.check(user, non_plc_ip_address)
def clear_tokens():
for host in ["host_a", "host_b"]: