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} 0penBmc 31${REST_USERNAME} root 32${REST_PASSWORD} 0penBmc 33${OPENBMC_ADMIN_PASSWORD} 0penBmc 34${SERVICE_USER_PASSWORD} 0penBmc 35 36# For users privilege admin or sudo. 37${USER_TYPE} ${EMPTY} 38 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${IPMI_PASSWORD} 0penBmc 50${MACHINE_TYPE} palmetto 51${DBUS_POLL_INTERVAL} 15s 52${OPENBMC_REBOOT_TIMEOUT} ${10} 53# IPMI_COMMAND here is set to "External" by default. User 54# can override to "Dbus" from command line. 55${IPMI_COMMAND} External 56# IPMI chipher default. 57${IPMI_CIPHER_LEVEL} ${17} 58# IPMI timeout default. 59${IPMI_TIMEOUT} ${3} 60 61# Log default path for IPMI SOL. 62${IPMI_SOL_LOG_FILE} ${EXECDIR}${/}logs${/}sol_${OPENBMC_HOST} 63 64# IPMI SOL console output types/parameters to verify. 65${SOL_BIOS_OUTPUT} ${EMPTY} 66${SOL_LOGIN_OUTPUT} ${EMPTY} 67 68# PDU related parameters 69${PDU_TYPE} ${EMPTY} 70${PDU_IP} ${EMPTY} 71${PDU_USERNAME} ${EMPTY} 72${PDU_PASSWORD} ${EMPTY} 73${PDU_SLOT_NO} ${EMPTY} 74 75# User define input SSH and HTTPS related parameters 76${SSH_PORT} 22 77${HTTPS_PORT} 443 78${IPMI_PORT} 623 79${HOST_SOL_PORT} 2200 80${OPENBMC_SERIAL_HOST} ${EMPTY} 81${OPENBMC_SERIAL_PORT} ${EMPTY} 82${OPENBMC_CONSOLE_CLIENT} ${EMPTY} 83 84# OS related parameters. 85${OS_HOST} ${EMPTY} 86${OS_USERNAME} ${EMPTY} 87${OS_PASSWORD} ${EMPTY} 88${OS_WAIT_TIMEOUT} ${15*60} 89 90# Networking related parameters 91${NETWORK_PORT} 80 92${PACKET_TYPE} tcp 93${ICMP_PACKETS} icmp 94${NETWORK_RETRY_TIME} 6 95${NETWORK_TIMEOUT} 18 96${ICMP_TIMESTAMP_REQUEST} 13 97${ICMP_ECHO_REQUEST} 8 98${CHANNEL_NUMBER} 1 99${TCP_PACKETS} tcp 100${TCP_CONNECT} tcp-connect 101${ICMP_NETMASK_REQUEST} 17 102${REDFISH_INTERFACE} 443 103${SYN_PACKETS} SYN 104${RESET_PACKETS} RST 105${FIN_PACKETS} FIN 106${SYN_ACK_RESET} SAR 107${ALL_FLAGS} ALL 108# Used to set BMC static IPv4 configuration. 109${STATIC_IP} 10.10.10.10 110${NETMASK} 255.255.255.0 111${GATEWAY} 10.10.10.10 112 113# BMC debug tarball parameter 114${DEBUG_TARBALL_PATH} ${EMPTY} 115 116# Upload Image parameters 117${TFTP_SERVER} ${EMPTY} 118${PNOR_TFTP_FILE_NAME} ${EMPTY} 119${BMC_TFTP_FILE_NAME} ${EMPTY} 120${IMAGE_FILE_PATH} ${EMPTY} 121${ALTERNATE_IMAGE_FILE_PATH} ${EMPTY} 122${PNOR_IMAGE_FILE_PATH} ${EMPTY} 123${BMC_IMAGE_FILE_PATH} ${EMPTY} 124${BAD_IMAGES_DIR_PATH} ${EMPTY} 125${SKIP_UPDATE_IF_ACTIVE} false 126 127# Parameters for doing N-1 and N+1 code updates. 128${N_MINUS_ONE_IMAGE_FILE_PATH} ${EMPTY} 129${N_PLUS_ONE_IMAGE_FILE_PATH} ${EMPTY} 130 131# The caller must set this to the string "true" in order to delete images. The 132# code is picky. 133${DELETE_OLD_PNOR_IMAGES} false 134${DELETE_OLD_GUARD_FILE} false 135 136# Caller can specify a value for LAST_KNOWN_GOOD_VERSION to indicate that if 137# the machine already has that version on it, the update should be skipped. 138${LAST_KNOWN_GOOD_VERSION} ${EMPTY} 139 140# By default field mode is disabled. 141${FIELD_MODE} ${False} 142 143# LDAP related variables. 144${LDAP_BASE_DN} ${EMPTY} 145${LDAP_BIND_DN} ${EMPTY} 146${LDAP_SERVER_HOST} ${EMPTY} 147${LDAP_SECURE_MODE} ${EMPTY} 148${LDAP_BIND_DN_PASSWORD} ${EMPTY} 149${LDAP_SEARCH_SCOPE} ${EMPTY} 150${LDAP_TYPE} ${EMPTY} 151${LDAP_USER} ${EMPTY} 152${LDAP_USER_PASSWORD} ${EMPTY} 153${GROUP_PRIVILEGE} ${EMPTY} 154${GROUP_NAME} ${EMPTY} 155${LDAP_SERVER_URI} ldap://${LDAP_SERVER_HOST} 156 157# General tool variables 158# FFDC_DEFAULT == 1; use Default FFDC methods 159${FFDC_DEFAULT} ${1} 160 161*** Keywords *** 162Get Inventory Schema 163 [Documentation] Get inventory schema. 164 [Arguments] ${machine} 165 [Return] &{INVENTORY}[${machine}] 166 167Get Inventory Items Schema 168 [Documentation] Get inventory items schema. 169 [Arguments] ${machine} 170 [Return] &{INVENTORY_ITEMS}[${machine}] 171 172Get Sensor Schema 173 [Documentation] Get sensors schema. 174 [Arguments] ${machine} 175 [Return] &{SENSORS}[${machine}] 176