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