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${REDFISH_SUPPORT_TRANS_STATE} ${1} 17 18# By default Delete all Redfish session per boot run. 19${REDFISH_DELETE_SESSIONS} ${1} 20 21${OPENBMC_MODEL} ${EMPTY} 22${OPENBMC_HOST} ${EMPTY} 23${DBUS_PREFIX} ${EMPTY} 24${PORT} ${EMPTY} 25 26# AUTH_SUFFIX here is derived from variables.py 27${AUTH_URI} https://${OPENBMC_HOST}${AUTH_SUFFIX} 28${OPENBMC_USERNAME} root 29${OPENBMC_PASSWORD} ${EMPTY} 30${OPENBMC_ADMIN_USERNAME} admin 31${OPENBMC_ADMIN_PASSWORD} ${EMPTY} 32 33# For users privilege admin or sudo. 34${USER_TYPE} ${EMPTY} 35 36${MANAGER_ID} bmc 37${CHASSIS_ID} chassis 38 39# MTLS_ENABLED indicates whether mTLS is enabled. 40${MTLS_ENABLED} False 41# Valid mTLS certificate for authentication. 42${VALID_CERT} ${EMPTY} 43# Path of mTLS certificates directory. 44${CERT_DIR_PATH} ${EMPTY} 45 46${IPMI_USERNAME} root 47# Assign BMC password as default. User can input using -v option to key in 48# IPMI password if different. 49${IPMI_PASSWORD} ${OPENBMC_PASSWORD} 50 51${OPENBMC_REBOOT_TIMEOUT} ${10} 52 53# IPMI_COMMAND here is set to "External" by default. User 54# can override to "Dbus" from command line. 55${IPMI_COMMAND} External 56 57# IPMI chipher default. 58${IPMI_CIPHER_LEVEL} ${17} 59 60# IPMI timeout default. 61${IPMI_TIMEOUT} ${3} 62${GEN_ID_BYTE_1} ${20} 63${GEN_ID_BYTE_2} ${00} 64 65# Log default path for IPMI SOL. 66${IPMI_SOL_LOG_FILE} ${EXECDIR}${/}logs${/}sol_${OPENBMC_HOST} 67 68# IPMI SOL console output types/parameters to verify. 69${SOL_BIOS_OUTPUT} ${EMPTY} 70${SOL_LOGIN_OUTPUT} ${EMPTY} 71 72# PDU related parameters 73${PDU_TYPE} ${EMPTY} 74${PDU_IP} ${EMPTY} 75${PDU_USERNAME} ${EMPTY} 76${PDU_PASSWORD} ${EMPTY} 77${PDU_SLOT_NO} ${EMPTY} 78 79# User define input SSH and HTTPS related parameters 80${SSH_PORT} 22 81${HTTPS_PORT} 443 82${IPMI_PORT} 623 83${HOST_SOL_PORT} 2200 84${OPENBMC_SERIAL_HOST} ${EMPTY} 85${OPENBMC_SERIAL_PORT} ${EMPTY} 86${OPENBMC_CONSOLE_CLIENT} ${EMPTY} 87 88# OS related parameters. 89${OS_HOST} ${EMPTY} 90${OS_USERNAME} ${EMPTY} 91${OS_PASSWORD} ${EMPTY} 92${OS_WAIT_TIMEOUT} ${15*60} 93 94# Networking related parameters 95${NETWORK_PORT} 80 96${PACKET_TYPE} tcp 97${ICMP_PACKETS} icmp 98${NETWORK_RETRY_TIME} 6 99${NETWORK_TIMEOUT} 18 100${ICMP_TIMESTAMP_REQUEST} 13 101${ICMP_ECHO_REQUEST} 8 102${CHANNEL_NUMBER} 1 103${SECONDARY_CHANNEL_NUMBER} 2 104${TCP_PACKETS} tcp 105${TCP_CONNECTION} tcp-connect 106${ICMP_NETMASK_REQUEST} 17 107${REDFISH_INTERFACE} 443 108${SYN_PACKETS} SYN 109${RESET_PACKETS} RST 110${FIN_PACKETS} FIN 111${SYN_ACK_RESET} SAR 112${ALL_FLAGS} ALL 113 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 *** 182 183Get Inventory Schema 184 [Documentation] Get inventory schema. 185 [Arguments] ${machine} 186 [Return] &{INVENTORY}[${machine}] 187 188Get Inventory Items Schema 189 [Documentation] Get inventory items schema. 190 [Arguments] ${machine} 191 [Return] &{INVENTORY_ITEMS}[${machine}] 192 193Get Sensor Schema 194 [Documentation] Get sensors schema. 195 [Arguments] ${machine} 196 [Return] &{SENSORS}[${machine}] 197