You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
find_interface() {
local HWADDR=$1
local DEV
for DEV in $(echo /sys/class/net/* | xargs -n1 /usr/bin/basename | grep -v lo); do
local DEVHWADDR=$(cat /sys/class/net/$DEV/address)
# Use GUID if IB
if [ ${#DEVHWADDR} -eq 59 ]; then
DEVHWADDR=$(expr substr $DEVHWADDR 37 23)
fi
if [ $DEVHWADDR == $HWADDR ]; then
echo $DEV
return 0
fi
done
return 1
}
Similar to what is currently done for normal interfaces at https://github.com/warewulf/warewulf3/blob/development/provision/initramfs/init#L428, fallback to matching against HWADDR for bonding devices. Currently only interface names are matched against in bondup().
The text was updated successfully, but these errors were encountered: