X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Flibraries%2FSwitchUtils.robot;h=4058ff0549a29df480bc0952f68d305242d2144a;hb=b42a6c471001dd3d30e75ac3921bacc2f282a41f;hp=e863f4c457988ea3799f0b9faaafba706c81cef3;hpb=8eb3825a167dbf41c2e2cd455b3962a59efe91f4;p=integration%2Ftest.git diff --git a/csit/libraries/SwitchUtils.robot b/csit/libraries/SwitchUtils.robot index e863f4c457..4058ff0549 100644 --- a/csit/libraries/SwitchUtils.robot +++ b/csit/libraries/SwitchUtils.robot @@ -92,8 +92,8 @@ Open Connection Wrapper Run Keyword If "${switch.mgmt_protocol}" == "ssh" Call Method ${switch} set_mgmt_user ${MININET_USER} ${connection_index}= Run Keyword If "${switch.mgmt_protocol}" == "ssh" SSHLibrary.Open Connection ${switch.mgmt_ip} prompt=${switch.mgmt_prompt} timeout=30s Run Keyword If "${switch.mgmt_protocol}" == "ssh" Login With Public Key ${switch.mgmt_user} ${switch.ssh_key} any - ${connection_index}= Run Keyword If "${switch.mgmt_protocol}" == "telnet" Telnet.Open Connection ${switch.mgmt_ip} ELSE Set Variable - ... ${connection_index} + ${connection_index}= Run Keyword If "${switch.mgmt_protocol}" == "telnet" Telnet.Open Connection ${switch.mgmt_ip} + ... ELSE Set Variable ${connection_index} [Return] ${connection_index} Configure Connection Index And Prompt Wrapper @@ -124,8 +124,8 @@ Execute Command Wrapper [Documentation] Wraps the Execute Command keyword so that depending on the switch.mgmt_protocol the right ... library (Telnet or SSHLibrary) is used. ${output}= Run Keyword If "${switch.mgmt_protocol}" == "ssh" SSHLibrary.Execute Command ${cmd} - ${output}= Run Keyword If "${switch.mgmt_protocol}" == "telnet" Telnet.Execute Command ${cmd} ELSE Set Variable - ... ${output} + ${output}= Run Keyword If "${switch.mgmt_protocol}" == "telnet" Telnet.Execute Command ${cmd} + ... ELSE Set Variable ${output} [Return] ${output} Connect To Switch