...
... TODO: RemoteBash.robot contains logic which could be reused here.
+Library RequestsLibrary
Library SSHLibrary
Resource ${CURDIR}/SSHKeywords.robot
Resource ${CURDIR}/RemoteBash.robot
[Arguments] ${session} ${exabgp_ip}=${TOOLS_SYSTEM_IP} ${connected}=${True}
${peer_check_url}= BuiltIn.Set_Variable ${REST_API}/bgp-rib:bgp-rib/rib=example-bgp-rib/peer=bgp:%2F%2F
${exp_status_code}= BuiltIn.Set_Variable_If ${connected} ${200} ${404}
- ${rsp}= RequestsLibrary.Get Request ${session} ${peer_check_url}${exabgp_ip}?content=nonconfig
+ ${rsp}= RequestsLibrary.GET On Session
+ ... alias=${session}
+ ... url=${peer_check_url}${exabgp_ip}?content=nonconfig
BuiltIn.Log ${rsp.content}
BuiltIn.Should_Be_Equal_As_Numbers ${exp_status_code} ${rsp.status_code}