Increase Timeout ADTN OLT for Echo Message to OLT Logs
Change-Id: I34ae50964e6338d2277ff8364336c6d4f9371432
diff --git a/libraries/utils.robot b/libraries/utils.robot
index 1dae7e7..27e0c81 100755
--- a/libraries/utils.robot
+++ b/libraries/utils.robot
@@ -1185,15 +1185,17 @@
${olt_user} Evaluate ${olts}[${I}].get("user")
${olt_pass} Evaluate ${olts}[${I}].get("pass")
${olt_ssh_ip} Evaluate ${olts}[${I}].get("sship")
+ ${olt_type} Evaluate ${olts}[${I}].get("type")
Continue For Loop If "${olt_user}" == "${None}"
Continue For Loop If "${olt_pass}" == "${None}"
- Wait Until Keyword Succeeds 180s 10s Execute Remote Command
+ ${command_timeout}= Set Variable If "${olt_type}"=="adtranolt" 300s 180s
+ Wait Until Keyword Succeeds ${command_timeout} 10s Execute Remote Command
... printf '%s\n' '' '' '${message}' '' >> /var/log/openolt.log
... ${olt_ssh_ip} ${olt_user} ${olt_pass}
- Wait Until Keyword Succeeds 180s 10s Execute Remote Command
+ Wait Until Keyword Succeeds ${command_timeout} 10s Execute Remote Command
... printf '%s\n' '' '' '${message}' '' >> /var/log/dev_mgmt_daemon.log
... ${olt_ssh_ip} ${olt_user} ${olt_pass}
- Wait Until Keyword Succeeds 180s 10s Execute Remote Command
+ Wait Until Keyword Succeeds ${command_timeout} 10s Execute Remote Command
... printf '%s\n' '' '' '${message}' '' >> /var/log/openolt_process_watchdog.log
... ${olt_ssh_ip} ${olt_user} ${olt_pass}
END