Browse Source

cleanup capacity-available

main
forest 3 months ago
parent
commit
94cd846355
  1. 3
      capsulflask/shell_scripts/capacity-avaliable.sh

3
capsulflask/shell_scripts/capacity-avaliable.sh

@ -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…
Cancel
Save