cleanup capacity-available
This commit is contained in:
parent
0cb2731876
commit
94cd846355
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user