Skip to content

Commit 311dcae

Browse files
committed
Skip nw configuration if efa-only
1 parent 9439ed7 commit 311dcae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cookbooks/aws-parallelcluster-environment/files/default/network_interfaces/configure_nw_interface.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ then
2222
exit 1
2323
fi
2424

25+
# Check if this is an EFA-only interface (no device name or IP)
26+
if [ -z "${DEVICE_NAME}" ] || [ -z "${DEVICE_IP_ADDRESS}" ]; then
27+
echo "EFA-only interface detected - skipping IP configuration"
28+
exit 0
29+
fi
30+
2531
SUFFIX=$NETWORK_CARD_INDEX$(printf "%02d" $DEVICE_NUMBER)
2632

2733
ROUTE_TABLE="$(( $SUFFIX + 1000 ))"

0 commit comments

Comments
 (0)