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