blob: 2cc8413f481d159264113926f9417afe744313d8 [file] [log] [blame]
George Keishing4d6c1da2016-07-15 05:51:22 -05001*** Settings ***
2Documentation This module is for SSH connection override to QEMU
3... based openbmc systems.
4
5Library SSHLibrary
6Library OperatingSystem
7
8*** Variables ***
9
10*** Keywords ***
11Open 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
20User 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 Ramesh89a86922016-07-22 01:00:36 -050026 Set Global Variable ${AUTH_URI} https://${OPENBMC_HOST}:${https_num}