A bunch of low-level manipulation was left behind in that
commit. Additionally, this low level manipulation piece
was missing some parts, leading to failures. Replace with
a call to a SSHLibrary keyword that does exactly the same
thing.
Change-Id: I30c0bea4571e8c441612d526171464222882a1e8
Signed-off-by: Jozef Behran <jbehran@cisco.com>
SSHLibrary.Write sshpass -p ${password} ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ${user}\@127.0.0.1 -p ${port} -s netconf
${hello}= SSHLibrary.Read_Until ${ODL_NETCONF_PROMPT}
SSHLibrary.Switch_Connection ${ssh_control}
- SSHLibrary.Write ps -A | grep sshpass | cut -b 1-6
- ${pid}= SSHKeywords.Read_Command_Response
+ ${pid}= SSHLibrary.Execute_Command ps -A | grep sshpass | cut -b 1-6
BuiltIn.Set_Suite_Variable ${ssh_netconf_pid} ${pid}
SSHLibrary.Switch_Connection ${ssh_netconf}
[Return] ${hello}