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