lowering UDP throughput to match BWP
Change-Id: I468582f41c34e7a68fdec2ab0c25db00c4b398e7
diff --git a/tests/functional/Voltha_PODTests.robot b/tests/functional/Voltha_PODTests.robot
index eb9e8e2..3dcef7b 100644
--- a/tests/functional/Voltha_PODTests.robot
+++ b/tests/functional/Voltha_PODTests.robot
@@ -556,7 +556,10 @@
${limiting_bw_value_dnstream} Get Bandwidth Details ${bandwidth_profile_name}
# Stream UDP packets from RG to server
- ${uprate}= Evaluate ${limiting_bw_value_upstream}*${udp_rate_multiplier}
+ Run Keyword If ${limiting_bw_value_upstream} != 1000000
+ ... ${uprate}= Evaluate ${limiting_bw_value_upstream}*${udp_rate_multiplier}
+ ... ELSE
+ ... ${uprate}= Set Variable ${limiting_bw_value_upstream}
${updict}= Run Iperf3 Test Client ${src} server=${dst['dp_iface_ip_qinq']}
... args=-u -b ${uprate}K -t 30 -l ${udp_packet_bytes} --pacing-timer 0
# With UDP test, bits per second is the sending rate. Multiply by the loss rate to get the throughput.
@@ -564,7 +567,10 @@
... (100 - ${updict['end']['sum']['lost_percent']})*${updict['end']['sum']['bits_per_second']}/100000
# Stream UDP packets from server to RG
- ${dnrate}= Evaluate ${limiting_bw_value_dnstream}*${udp_rate_multiplier}
+ Run Keyword If ${limiting_bw_value_dnstream} != 1000000
+ ... ${dnrate}= Evaluate ${limiting_bw_value_dnstream}*${udp_rate_multiplier}
+ ... ELSE
+ ... ${dnrate}= Set Variable ${limiting_bw_value_dnstream}
${dndict}= Run Iperf3 Test Client ${src} server=${dst['dp_iface_ip_qinq']}
... args=-u -b ${dnrate}K -R -t 30 -l ${udp_packet_bytes} --pacing-timer 0
# With UDP test, bits per second is the sending rate. Multiply by the loss rate to get the throughput.