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:
parent
c032990b70
commit
6379ecb979
@ -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…
x
Reference in New Issue
Block a user