1*** Settings *** 2Library Collections 3Library String 4Library RequestsLibrary 5Library OperatingSystem 6Variables ../data/variables.py 7 8*** Variables *** 9 10# By default power, support x86 as well. 11${PLATFORM_ARCH_TYPE} power 12 13# FFDC Redfish OEM path /<oem>/v1/ 14${OEM_REDFISH_PATH} ${EMPTY} 15 16# Transition REST vs Redfish ONLY temporary changes for stagging 17# automation infrastructure change and for continuity. 18${REDFISH_SUPPORT_TRANS_STATE} ${0} 19 20# By default Delete all Redfish session per boot run. 21${REDFISH_DELETE_SESSIONS} ${1} 22 23${OPENBMC_MODEL} ${EMPTY} 24${OPENBMC_HOST} ${EMPTY} 25${DBUS_PREFIX} ${EMPTY} 26${PORT} ${EMPTY} 27# AUTH_SUFFIX here is derived from variables.py 28${AUTH_URI} https://${OPENBMC_HOST}${AUTH_SUFFIX} 29${OPENBMC_USERNAME} root 30${OPENBMC_PASSWORD} ${EMPTY} 31${OPENBMC_ADMIN_USERNAME} admin 32${OPENBMC_ADMIN_PASSWORD} ${EMPTY} 33${SERVICE_USER_PASSWORD} ${EMPTY} 34 35# For users privilege admin or sudo. 36${USER_TYPE} ${EMPTY} 37 38${MANAGER_ID} bmc 39${CHASSIS_ID} chassis 40 41# MTLS_ENABLED indicates whether mTLS is enabled. 42${MTLS_ENABLED} False 43# Valid mTLS certificate for authentication. 44${VALID_CERT} ${EMPTY} 45# Path of mTLS certificates directory. 46${CERT_DIR_PATH} ${EMPTY} 47 48${IPMI_USERNAME} root 49# Assign BMC password as default. User can input using -v option to key in 50# IPMI password if different. 51${IPMI_PASSWORD} ${OPENBMC_PASSWORD} 52 53${MACHINE_TYPE} palmetto 54${DBUS_POLL_INTERVAL} 15s 55${OPENBMC_REBOOT_TIMEOUT} ${10} 56# IPMI_COMMAND here is set to "External" by default. User 57# can override to "Dbus" from command line. 58${IPMI_COMMAND} External 59# IPMI chipher default. 60${IPMI_CIPHER_LEVEL} ${17} 61# IPMI timeout default. 62${IPMI_TIMEOUT} ${3} 63${GEN_ID_BYTE_1} ${20} 64${GEN_ID_BYTE_2} ${00} 65 66# Log default path for IPMI SOL. 67${IPMI_SOL_LOG_FILE} ${EXECDIR}${/}logs${/}sol_${OPENBMC_HOST} 68 69# IPMI SOL console output types/parameters to verify. 70${SOL_BIOS_OUTPUT} ${EMPTY} 71${SOL_LOGIN_OUTPUT} ${EMPTY} 72 73# PDU related parameters 74${PDU_TYPE} ${EMPTY} 75${PDU_IP} ${EMPTY} 76${PDU_USERNAME} ${EMPTY} 77${PDU_PASSWORD} ${EMPTY} 78${PDU_SLOT_NO} ${EMPTY} 79 80# User define input SSH and HTTPS related parameters 81${SSH_PORT} 22 82${HTTPS_PORT} 443 83${IPMI_PORT} 623 84${HOST_SOL_PORT} 2200 85${OPENBMC_SERIAL_HOST} ${EMPTY} 86${OPENBMC_SERIAL_PORT} ${EMPTY} 87${OPENBMC_CONSOLE_CLIENT} ${EMPTY} 88 89# OS related parameters. 90${OS_HOST} ${EMPTY} 91${OS_USERNAME} ${EMPTY} 92${OS_PASSWORD} ${EMPTY} 93${OS_WAIT_TIMEOUT} ${15*60} 94 95# Networking related parameters 96${NETWORK_PORT} 80 97${PACKET_TYPE} tcp 98${ICMP_PACKETS} icmp 99${NETWORK_RETRY_TIME} 6 100${NETWORK_TIMEOUT} 18 101${ICMP_TIMESTAMP_REQUEST} 13 102${ICMP_ECHO_REQUEST} 8 103${CHANNEL_NUMBER} 1 104${SECONDARY_CHANNEL_NUMBER} 2 105${TCP_PACKETS} tcp 106${TCP_CONNECTION} tcp-connect 107${ICMP_NETMASK_REQUEST} 17 108${REDFISH_INTERFACE} 443 109${SYN_PACKETS} SYN 110${RESET_PACKETS} RST 111${FIN_PACKETS} FIN 112${SYN_ACK_RESET} SAR 113${ALL_FLAGS} ALL 114# Used to set BMC static IPv4 configuration. 115${STATIC_IP} 10.10.10.10 116${NETMASK} 255.255.255.0 117${GATEWAY} 10.10.10.10 118 119# BMC debug tarball parameter 120${DEBUG_TARBALL_PATH} ${EMPTY} 121 122# Upload Image parameters 123${TFTP_SERVER} ${EMPTY} 124${PNOR_TFTP_FILE_NAME} ${EMPTY} 125${BMC_TFTP_FILE_NAME} ${EMPTY} 126${IMAGE_FILE_PATH} ${EMPTY} 127${ALTERNATE_IMAGE_FILE_PATH} ${EMPTY} 128${PNOR_IMAGE_FILE_PATH} ${EMPTY} 129${BMC_IMAGE_FILE_PATH} ${EMPTY} 130${BAD_IMAGES_DIR_PATH} ${EMPTY} 131${SKIP_UPDATE_IF_ACTIVE} false 132 133# Parameters for doing N-1 and N+1 code updates. 134${N_MINUS_ONE_IMAGE_FILE_PATH} ${EMPTY} 135${N_PLUS_ONE_IMAGE_FILE_PATH} ${EMPTY} 136 137# The caller must set this to the string "true" in order to delete images. The 138# code is picky. 139${DELETE_OLD_PNOR_IMAGES} false 140${DELETE_OLD_GUARD_FILE} false 141 142# Caller can specify a value for LAST_KNOWN_GOOD_VERSION to indicate that if 143# the machine already has that version on it, the update should be skipped. 144${LAST_KNOWN_GOOD_VERSION} ${EMPTY} 145 146# By default field mode is disabled. 147${FIELD_MODE} ${False} 148 149# LDAP related variables. 150${LDAP_BASE_DN} ${EMPTY} 151${LDAP_BIND_DN} ${EMPTY} 152${LDAP_SERVER_HOST} ${EMPTY} 153${LDAP_SECURE_MODE} ${EMPTY} 154${LDAP_BIND_DN_PASSWORD} ${EMPTY} 155${LDAP_SEARCH_SCOPE} ${EMPTY} 156${LDAP_TYPE} ${EMPTY} 157${LDAP_USER} ${EMPTY} 158${LDAP_USER_PASSWORD} ${EMPTY} 159${GROUP_PRIVILEGE} ${EMPTY} 160${GROUP_NAME} ${EMPTY} 161${LDAP_SERVER_URI} ldap://${LDAP_SERVER_HOST} 162 163# General tool variables 164# FFDC_DEFAULT == 1; use Default FFDC methods 165${FFDC_DEFAULT} ${1} 166 167# NTP Server Address 168# NTP Address needs to be given as an list. 169# For example, 170# 1 NTP Address - 14.139.60.103 171# 2 NTP Address - 14.139.60.103 14.139.60.106 172@{NTP_SERVER_ADDRESSES} ${EMPTY} 173 174# Client related parameters 175${CLIENT_PASSWORD} ${EMPTY} 176 177# Task Service related variables. 178${TASK_JSON_FILE_PATH} data/task_state.json 179 180 181*** Keywords *** 182Get Inventory Schema 183 [Documentation] Get inventory schema. 184 [Arguments] ${machine} 185 [Return] &{INVENTORY}[${machine}] 186 187Get Inventory Items Schema 188 [Documentation] Get inventory items schema. 189 [Arguments] ${machine} 190 [Return] &{INVENTORY_ITEMS}[${machine}] 191 192Get Sensor Schema 193 [Documentation] Get sensors schema. 194 [Arguments] ${machine} 195 [Return] &{SENSORS}[${machine}] 196