less output on qemu ifup scripts
This commit is contained in:
parent
2af76bb4e8
commit
78d6e4d4ff
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue