blob: 2cc8413f481d159264113926f9417afe744313d8 [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}
Set Global Variable ${AUTH_URI} https://${OPENBMC_HOST}:${https_num}