1*** Settings ***
2Library           Collections
3Library           String
4Library           RequestsLibrary.RequestsKeywords
5Library           OperatingSystem
6Variables         ../data/variables.py
7
8*** Variables ***
9
10# Transition REST vs Redfish ONLY temporary changes for stagging
11# automation infrastructure change and for continuity.
12${REDFISH_SUPPORT_TRANS_STATE}    0
13
14${OPENBMC_MODEL}  ${EMPTY}
15${OPENBMC_HOST}   ${EMPTY}
16${DBUS_PREFIX}    ${EMPTY}
17${PORT}           ${EMPTY}
18# AUTH_SUFFIX here is derived from variables.py
19${AUTH_URI}       https://${OPENBMC_HOST}${AUTH_SUFFIX}
20${OPENBMC_USERNAME}    root
21${OPENBMC_PASSWORD}    0penBmc
22${REST_USERNAME}       root
23${REST_PASSWORD}       0penBmc
24${IPMI_PASSWORD}       0penBmc
25${MACHINE_TYPE}    palmetto
26${DBUS_POLL_INTERVAL}      15s
27${OPENBMC_REBOOT_TIMEOUT}   ${10}
28# IPMI_COMMAND here is set to "External" by default. User
29# can override to "Dbus" from command line.
30${IPMI_COMMAND}    External
31# IPMI chipher default.
32${IPMI_CIPHER_LEVEL}  ${17}
33
34# PDU related parameters
35${PDU_TYPE}         ${EMPTY}
36${PDU_IP}           ${EMPTY}
37${PDU_USERNAME}     ${EMPTY}
38${PDU_PASSWORD}     ${EMPTY}
39${PDU_SLOT_NO}      ${EMPTY}
40
41# User define input SSH and HTTPS related parameters
42${SSH_PORT}         22
43${HTTPS_PORT}       443
44${IPMI_PORT}        623
45${HOST_SOL_PORT}    2200
46${OPENBMC_SERIAL_HOST}      ${EMPTY}
47${OPENBMC_SERIAL_PORT}      ${EMPTY}
48
49# OS related parameters.
50${OS_HOST}          ${EMPTY}
51${OS_USERNAME}      ${EMPTY}
52${OS_PASSWORD}      ${EMPTY}
53${OS_WAIT_TIMEOUT}  ${15*60}
54
55# Networking related parameters
56${NETWORK_PORT}            80
57${PACKET_TYPE}             tcp
58${ICMP_PACKETS}            icmp
59${NETWORK_RETRY_TIME}      6
60${NETWORK_TIMEOUT}         18
61${ICMP_TIMESTAMP_REQUEST}  13
62${ICMP_ECHO_REQUEST}       8
63${CHANNEL_NUMBER}          1
64
65# BMC debug tarball parameter
66${DEBUG_TARBALL_PATH}  ${EMPTY}
67
68# Upload Image parameters
69${TFTP_SERVER}                  ${EMPTY}
70${PNOR_TFTP_FILE_NAME}          ${EMPTY}
71${BMC_TFTP_FILE_NAME}           ${EMPTY}
72${IMAGE_FILE_PATH}              ${EMPTY}
73${ALTERNATE_IMAGE_FILE_PATH}    ${EMPTY}
74${PNOR_IMAGE_FILE_PATH}         ${EMPTY}
75${BMC_IMAGE_FILE_PATH}          ${EMPTY}
76${BAD_IMAGES_DIR_PATH}          ${EMPTY}
77${SKIP_UPDATE_IF_ACTIVE}        false
78
79# Parameters for doing N-1 and N+1 code updates.
80${N_MINUS_ONE_IMAGE_FILE_PATH}    ${EMPTY}
81${N_PLUS_ONE_IMAGE_FILE_PATH}     ${EMPTY}
82
83# The caller must set this to the string "true" in order to delete images. The
84# code is picky.
85${DELETE_OLD_PNOR_IMAGES}   false
86${DELETE_OLD_GUARD_FILE}    false
87
88# Caller can specify a value for LAST_KNOWN_GOOD_VERSION to indicate that if
89# the machine already has that version on it, the update should be skipped.
90${LAST_KNOWN_GOOD_VERSION}  ${EMPTY}
91
92# By default field mode is disabled.
93${FIELD_MODE}               ${False}
94
95# LDAP related variables.
96${LDAP_BASE_DN}             ${EMPTY}
97${LDAP_BIND_DN}             ${EMPTY}
98${LDAP_SERVER_HOST}         ${EMPTY}
99${LDAP_SECURE_MODE}         ${EMPTY}
100${LDAP_BIND_DN_PASSWORD}    ${EMPTY}
101${LDAP_SEARCH_SCOPE}        ${EMPTY}
102${LDAP_TYPE}                ${EMPTY}
103${LDAP_USER}                ${EMPTY}
104${LDAP_USER_PASSWORD}       ${EMPTY}
105
106*** Keywords ***
107Get Inventory Schema
108    [Documentation]  Get inventory schema.
109    [Arguments]    ${machine}
110    [Return]    &{INVENTORY}[${machine}]
111
112Get Inventory Items Schema
113    [Documentation]  Get inventory items schema.
114    [Arguments]    ${machine}
115    [Return]    &{INVENTORY_ITEMS}[${machine}]
116
117Get Sensor Schema
118    [Documentation]  Get sensors schema.
119    [Arguments]    ${machine}
120    [Return]    &{SENSORS}[${machine}]
121