From 94a34f110f5ef93c7ab9b03a0f0eb68489888d96 Mon Sep 17 00:00:00 2001 From: alarig Date: Tue, 22 Jan 2019 21:13:20 +0100 Subject: [PATCH] Handle case where the VM also has a vmbr between 10 and 19 --- creationRoutesVM.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/creationRoutesVM.sh b/creationRoutesVM.sh index 4b65662..bcff2e4 100755 --- a/creationRoutesVM.sh +++ b/creationRoutesVM.sh @@ -150,7 +150,7 @@ if [ ${FEED_CACHE} = 1 ]; then CODE_RETOUR_INFOS_RANGES_V6='' 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/') # Pour chaque subnet V4