Handle case where the VM also has a vmbr between 10 and 19

This commit is contained in:
Alarig Le Lay 2019-01-22 21:13:20 +01:00
parent 821f014799
commit 94a34f110f

View file

@ -150,7 +150,7 @@ if [ ${FEED_CACHE} = 1 ]; then
CODE_RETOUR_INFOS_RANGES_V6='' CODE_RETOUR_INFOS_RANGES_V6=''
fi fi
MAC=$(grep vmbr1 /etc/pve/qemu-server/${VM_ID}.conf | \ MAC=$(grep 'vmbr1$' /etc/pve/qemu-server/${VM_ID}.conf | \
sed -E 's/.*([[:xdigit:]:]{17}).*/\1/') sed -E 's/.*([[:xdigit:]:]{17}).*/\1/')
# Pour chaque subnet V4 # Pour chaque subnet V4