cleanup capacity-available

This commit is contained in:
forest 2022-04-11 17:34:02 -05:00
parent 0cb2731876
commit 94cd846355
1 changed files with 1 additions and 2 deletions

View File

@ -21,9 +21,8 @@ fi
ipv4_limit=61
total_addresses_used=$(virsh net-dhcp-leases public3 | grep -E '.+' | tail -n +3 | wc -l)
ipv4_count=$(printf "$total_addresses_used")
if [ "$ipv4_count" -ge "$ipv4_limit" ]; then
if [ "$total_addresses_used" -ge "$ipv4_limit" ]; then
echo "IPv4 address limit reached"
exit 1
fi