User guide

AFastFabric Configuration Files
FastFabric Configuration File
IB0054607-01 A A-3
export CONFIG_DIR
fi
# Override default location for HOSTS_FILE
export HOSTS_FILE=${HOSTS_FILE:-$CONFIG_DIR/iba/hosts}
# Override default location for CHASSIS_FILE
export CHASSIS_FILE=${CHASSIS_FILE:-$CONFIG_DIR/iba/chassis}
# Override default location for ESM_CHASSIS_FILE
export ESM_CHASSIS_FILE=${ESM_CHASSIS_FILE:-$CONFIG_DIR/iba/esm_chassis}
# Override default location for IBNODES_FILE
export IBNODES_FILE=${IBNODES_FILE:-$CONFIG_DIR/iba/ibnodes}
# Override default location for PORTS_FILE
export PORTS_FILE=${PORTS_FILE:-$CONFIG_DIR/iba/ports}
# Default suffix for IPoIB host names
# the special value "NONE" is used to indicate a value of ""
# this value can be used in ff_host_basename_to_ipoib and ff_host_basename
# below to convert between IPoIB and Ethernet hostnames
export FF_IPOIB_SUFFIX=${FF_IPOIB_SUFFIX:--ib}
# Alternatively a IPoIB prefix can be provided, commented out
# examples in ff_host_basename and ff_host_basename can be enabled if desired
export FF_IPOIB_PREFIX=${FF_IPOIB_PREFIX:-ic-}
# Default management host
export MGMT_HOST=${MGMT_HOST:-localhost}
# The shell functions below are only defined if no existing function/command
# with given name, hence allowing use of shell functions or creation of a
# command for this operation
# shell Function to convert a basic hostname into an IPoIB hostname
# if FF_IPOIB_SUFFIX is "", this should return $1 unmodified
# such that commands can be used with -i "" to skip IPoIB operations
# (special value of NONE will be converted to "" before this is called)
if ! type ff_host_basename_to_ipoib >/dev/null 2>/dev/null
then
function ff_host_basename_to_ipoib()
{
# $1 = hostname provided
echo "$1$FF_IPOIB_SUFFIX"
# comment out line above and uncomment line below if using prefixes
#echo "$FF_IPOIB_PREFIX$1"
}
fi
# shell Function to convert a hostname into a basic hostname
# (eg. remove IPoIB suffix, etc) should match result of "hostname -s" on host
# if FF_IPOIB_SUFFIX is "", this should return $1 unmodified
# such that commands can be used with -i "" to skip IPoIB operations
# (special value of NONE will be converted to "" before this is called)
if ! type ff_host_basename >/dev/null 2>/dev/null
then
function ff_host_basename()
{