mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-11 05:17:41 +03:00
M #-: Fix dummy ipam driver (#2875)
This commit is contained in:
parent
e2f2782195
commit
9177157e2a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user