1
0
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:
juanmont 2017-11-08 13:59:32 +01:00 committed by Ruben S. Montero
parent ee349a9b53
commit 2f1fc2660d
2 changed files with 2 additions and 1 deletions

View File

@ -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 ]

View File

@ -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",