blob: 1e74357de08d1041247d3ce3806a54991e7a4214 [file] [log] [blame]
*** Settings ***
Documentation This module is for SSH connection override to QEMU
... based openbmc systems.
Library SSHLibrary
Library OperatingSystem
*** Variables ***
*** Keywords ***
Open Connection And Log In
Run Keyword If '${SSH_PORT}' != '${EMPTY}' and '${HTTPS_PORT}' != '${EMPTY}'
... User input SSH and HTTPs Ports
Run Keyword If '${SSH_PORT}' == '${EMPTY}' Open connection ${OPENBMC_HOST}
... ELSE Run Keyword Open connection ${OPENBMC_HOST} port=${SSH_PORT}
Login ${OPENBMC_USERNAME} ${OPENBMC_PASSWORD}
User input SSH and HTTPs Ports
[Documentation] Update the global SSH and HTTPs port variable for QEMU
${port_num}= Convert To Integer ${SSH_PORT}
${SSH_PORT}= Replace Variables ${port_num}
${https_num}= Convert To Integer ${HTTPS_PORT}
${AUTH_URI}= Replace Variables https://${OPENBMC_HOST}:${https_num}