mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Updated IPAM example drivers to be more consistent
This commit is contained in:
parent
ee349a9b53
commit
2f1fc2660d
@ -103,6 +103,7 @@ ADDR_SIZE="${XPATH_ELEMENTS[i++]}"
|
||||
BASE_IP=$(echo $AR_IP | cut -d'.' -f-3)
|
||||
HOST_ID=$RANDOM
|
||||
let "HOST_ID %= $AR_SIZE"
|
||||
HOST_ID=$(($HOST_ID+1))
|
||||
|
||||
cat << EOT
|
||||
ADDRESS = [ IP=$BASE_IP.$HOST_ID, SIZE=$ADDR_SIZE ]
|
||||
|
@ -121,7 +121,7 @@ else
|
||||
AR=$(cat <<EOF
|
||||
AR=[
|
||||
TYPE="IP4",
|
||||
IP ="10.0.0.10",
|
||||
IP ="10.0.0.1",
|
||||
SIZE="100",
|
||||
NETWORK_MASK="255.255.255.0",
|
||||
GATEWAY="10.0.0.1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user