[VOL-3092] Fixing calculation issue in device flows
Change-Id: Ic634947d392f823d89e1dd829cc0a24505a1c469
diff --git a/libraries/voltctl.robot b/libraries/voltctl.robot
index 33f5247..16f4829 100644
--- a/libraries/voltctl.robot
+++ b/libraries/voltctl.robot
@@ -530,6 +530,7 @@
${targetFlows}= Calculate flows by workflow ${workflow} ${uni_count} ${olt_count} ${provisioned}
... ${withEapol} ${withDhcp} ${withIgmp}
# In the physical device we only have 2 data plane flows (on the PON) instead of 4
- ${targetFlows}= Evaluate ${targetFlows} - (${uni_count} * 2)
+ Run Keyword If $provisioned=='true'
+ ... ${targetFlows}= Evaluate ${targetFlows} - (${uni_count} * 2)
Log ${targetFlows}
Wait Until Keyword Succeeds 10m 5s Count OpenOLT Device Flows ${targetFlows}
\ No newline at end of file