|
|
|
@ -17,7 +17,17 @@ else
|
|
|
|
|
printf 'Can’t source "creds": file not found\n'
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
# check for commands in the path
|
|
|
|
|
for bin in curl ipv6calc ip; do
|
|
|
|
|
if [ -z $(which ${bin} 2>/dev/null) ]; then
|
|
|
|
|
MISSING="${MISSING} ${bin}"
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
if [ ! -z "${MISSING}" ]; then
|
|
|
|
|
printf "You’r missing this:${MISSING}\n"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# ID subnets IPAM V4 et V6 contenants les VMs
|
|
|
|
|
ID_RANGES_V4=( "74" "181" )
|
|
|
|
|