adding support to install the mellanox or intel nic
Change-Id: I11c240d53a4d494dbccd76c2e7f415ed0cdfb0eb
diff --git a/roles/compute-node/files/rename_ifaces.sh b/roles/compute-node/files/rename_ifaces.sh
index 27184f1..fdf2931 100755
--- a/roles/compute-node/files/rename_ifaces.sh
+++ b/roles/compute-node/files/rename_ifaces.sh
@@ -49,6 +49,9 @@
local DRIVER=$(ethtool -i $1 2>/dev/null | grep driver | awk '{print $2}')
local RESULT="DNC"
case $DRIVER in
+ mlx4_en)
+ RESULT="MLX4_EN"
+ ;;
i40e)
RESULT="I40G"
;;
@@ -170,7 +173,7 @@
ETH)
echo "$(get_mac $i)" >> $LIST_ETH
;;
- I40G)
+ I40G|MLX4_EN)
echo "$(get_mac $i)" >> $LIST_40G
;;
*) ;;