less output on qemu ifup scripts

This commit is contained in:
toby 2019-01-29 22:31:07 -08:00
parent 2af76bb4e8
commit 78d6e4d4ff
1 changed files with 0 additions and 2 deletions

View File

@ -33,9 +33,7 @@ arp -i ${IFACE} -Ds 169.254.0.1 ${IFACE} netmask 255.255.255.255 pub
IFS=',' read -ra IPS <<< "$IP" IFS=',' read -ra IPS <<< "$IP"
for IP in "${IPS[@]}"; do for IP in "${IPS[@]}"; do
echo $IP
if [[ $IP =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/([0-9]{2})$ ]]; then ### we got a IPv4 prefix < maxprefixv4 if [[ $IP =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/([0-9]{2})$ ]]; then ### we got a IPv4 prefix < maxprefixv4
echo matched ${BASH_REMATCH[1]}
if [ ${BASH_REMATCH[1]} -lt $maxprefixv4 ]; then if [ ${BASH_REMATCH[1]} -lt $maxprefixv4 ]; then
echo "we don't support such a big customer net?" echo "we don't support such a big customer net?"
continue continue