George Keishing | 4d6c1da | 2016-07-15 05:51:22 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation This module is for SSH connection override to QEMU |
| 3 | ... based openbmc systems. |
| 4 | |
| 5 | Library SSHLibrary |
| 6 | Library OperatingSystem |
| 7 | |
| 8 | *** Variables *** |
| 9 | |
| 10 | *** Keywords *** |
| 11 | Open Connection And Log In |
| 12 | Run Keyword If '${SSH_PORT}' != '${EMPTY}' and '${HTTPS_PORT}' != '${EMPTY}' |
| 13 | ... User input SSH and HTTPs Ports |
| 14 | |
| 15 | Run Keyword If '${SSH_PORT}' == '${EMPTY}' Open connection ${OPENBMC_HOST} |
| 16 | ... ELSE Run Keyword Open connection ${OPENBMC_HOST} port=${SSH_PORT} |
| 17 | |
| 18 | Login ${OPENBMC_USERNAME} ${OPENBMC_PASSWORD} |
| 19 | |
| 20 | User input SSH and HTTPs Ports |
| 21 | [Documentation] Update the global SSH and HTTPs port variable for QEMU |
| 22 | ${port_num}= Convert To Integer ${SSH_PORT} |
| 23 | ${SSH_PORT}= Replace Variables ${port_num} |
| 24 | |
| 25 | ${https_num}= Convert To Integer ${HTTPS_PORT} |
Sridevi Ramesh | 89a8692 | 2016-07-22 01:00:36 -0500 | [diff] [blame] | 26 | Set Global Variable ${AUTH_URI} https://${OPENBMC_HOST}:${https_num} |