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${ICMP_NETMASK_REQUEST} 17 101${REDFISH_INTERFACE} 443 102${SYN_PACKETS} SYN 103${RESET_PACKETS} RST 104${FIN_PACKETS} FIN 105${SYN_ACK_RESET} SAR 106${ALL_FLAGS} ALL 107# Used to set BMC static IPv4 configuration. 108${STATIC_IP} 10.10.10.10 109${NETMASK} 255.255.255.0 110${GATEWAY} 10.10.10.10 111 112# BMC debug tarball parameter 113${DEBUG_TARBALL_PATH} ${EMPTY} 114 115# Upload Image parameters 116${TFTP_SERVER} ${EMPTY} 117${PNOR_TFTP_FILE_NAME} ${EMPTY} 118${BMC_TFTP_FILE_NAME} ${EMPTY} 119${IMAGE_FILE_PATH} ${EMPTY} 120${ALTERNATE_IMAGE_FILE_PATH} ${EMPTY} 121${PNOR_IMAGE_FILE_PATH} ${EMPTY} 122${BMC_IMAGE_FILE_PATH} ${EMPTY} 123${BAD_IMAGES_DIR_PATH} ${EMPTY} 124${SKIP_UPDATE_IF_ACTIVE} false 125 126# Parameters for doing N-1 and N+1 code updates. 127${N_MINUS_ONE_IMAGE_FILE_PATH} ${EMPTY} 128${N_PLUS_ONE_IMAGE_FILE_PATH} ${EMPTY} 129 130# The caller must set this to the string "true" in order to delete images. The 131# code is picky. 132${DELETE_OLD_PNOR_IMAGES} false 133${DELETE_OLD_GUARD_FILE} false 134 135# Caller can specify a value for LAST_KNOWN_GOOD_VERSION to indicate that if 136# the machine already has that version on it, the update should be skipped. 137${LAST_KNOWN_GOOD_VERSION} ${EMPTY} 138 139# By default field mode is disabled. 140${FIELD_MODE} ${False} 141 142# LDAP related variables. 143${LDAP_BASE_DN} ${EMPTY} 144${LDAP_BIND_DN} ${EMPTY} 145${LDAP_SERVER_HOST} ${EMPTY} 146${LDAP_SECURE_MODE} ${EMPTY} 147${LDAP_BIND_DN_PASSWORD} ${EMPTY} 148${LDAP_SEARCH_SCOPE} ${EMPTY} 149${LDAP_TYPE} ${EMPTY} 150${LDAP_USER} ${EMPTY} 151${LDAP_USER_PASSWORD} ${EMPTY} 152${GROUP_PRIVILEGE} ${EMPTY} 153${GROUP_NAME} ${EMPTY} 154${LDAP_SERVER_URI} ldap://${LDAP_SERVER_HOST} 155 156# General tool variables 157# FFDC_DEFAULT == 1; use Default FFDC methods 158${FFDC_DEFAULT} ${1} 159 160*** Keywords *** 161Get Inventory Schema 162 [Documentation] Get inventory schema. 163 [Arguments] ${machine} 164 [Return] &{INVENTORY}[${machine}] 165 166Get Inventory Items Schema 167 [Documentation] Get inventory items schema. 168 [Arguments] ${machine} 169 [Return] &{INVENTORY_ITEMS}[${machine}] 170 171Get Sensor Schema 172 [Documentation] Get sensors schema. 173 [Arguments] ${machine} 174 [Return] &{SENSORS}[${machine}] 175