1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-11 05:17:41 +03:00

M #-: Fix dummy ipam driver ()

This commit is contained in:
Pavel Czerný 2024-01-03 14:13:34 +01:00 committed by GitHub
parent e2f2782195
commit 9177157e2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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