1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

M #-: Fix dummy ipam driver (#2875)

(cherry picked from commit 9177157e2a74b6084ef5214e230d6cf88b69fdd3)
This commit is contained in:
Pavel Czerný 2024-01-03 14:13:34 +01:00 committed by Ruben S. Montero
parent c032990b70
commit 6379ecb979
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -104,7 +104,7 @@ ADDR_SIZE="${XPATH_ELEMENTS[i++]}"
BASE_IP=$(echo $AR_IP | cut -d'.' -f-3)
HOST_ID=$RANDOM
let "HOST_ID %= $AR_SIZE"
let "HOST_ID %= $AR_SIZE - $ADDR_SIZE"
HOST_ID=$(($HOST_ID+1))
cat << EOT