Lowering UDP throughput to match BWP -- DT
Change-Id: Ic6e28c365ab2f832f9184456d1bc20262533e779
diff --git a/tests/dt-workflow/Voltha_DT_PODTests.robot b/tests/dt-workflow/Voltha_DT_PODTests.robot
index 235a86a..be71939 100644
--- a/tests/dt-workflow/Voltha_DT_PODTests.robot
+++ b/tests/dt-workflow/Voltha_DT_PODTests.robot
@@ -466,7 +466,11 @@
${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.
@@ -474,7 +478,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.