Apex: baremetal to use vfio-pci driver, adds nosdn-fdio to daily
[releng.git] / jjb / apex / apex-deploy.sh
index c91e3ee..564c9cd 100755 (executable)
@@ -196,6 +196,15 @@ else
   NETWORK_SETTINGS_DIR="/root/network"
   INVENTORY_FILE="/root/inventory/pod_settings.yaml"
 
+  # if fdio on baremetal, then we are using UCS enic and
+  # need to use vfio-pci instead of uio generic
+  if [[ "$DEPLOY_SCENARIO" == *fdio* ]]; then
+    TMP_DEPLOY_FILE="${WORKSPACE}/${DEPLOY_SCENARIO}.yaml"
+    cp -f ${DEPLOY_FILE} ${TMP_DEPLOY_FILE}
+    sed -i 's/^\(\s*uio-driver:\).*$/\1 vfio-pci/g' ${TMP_DEPLOY_FILE}
+    DEPLOY_FILE=${TMP_DEPLOY_FILE}
+  fi
+
   if ! sudo test -e "$INVENTORY_FILE"; then
     echo "ERROR: Required settings file missing: Inventory settings file ${INVENTORY_FILE}"
     exit 1