+ SSHLibrary.Close_Connection
+ RETURN ${output}
+ [Teardown] SSHKeywords.Restore_Current_SSH_Connection_From_Index ${current_connection.index}
+
+Check Diagstatus
+ [Documentation] GET http://${ip_address}:${RESTCONFPORT}/diagstatus and return the response. ${check_status}
+ ... and ${expected_status_code} can be used to ignore the status code, or validate any status code value.
+ ... By default, this keyword will pass if the status code returned is 200, and fail otherwise.
+ [Arguments] ${ip_address}=${ODL_SYSTEM_IP} ${check_status}=True ${expected_status}=${200}
+ RequestsLibrary.Create Session diagstatus_session http://${ip_address}:${RESTCONFPORT}
+ ${resp}= RequestsLibrary.Get On Session diagstatus_session url=/diagstatus
+ IF "${check_status}" == "True"
+ BuiltIn.Should Be Equal As Strings ${resp.status_code} ${expected_status}
+ END
+ RETURN ${resp}
+
+Download File On Openstack Node
+ [Documentation] Download a file from web to the node. the input will be a session ID with established SSH connection.
+ [Arguments] ${conn_id} ${save_file_name} ${url}
+ SSHLibrary.Switch Connection ${conn_id}
+ Utils.Write Commands Until Expected Prompt
+ ... wget -O /tmp/${save_file_name} ${url}
+ ... ${DEFAULT_LINUX_PROMPT_STRICT}