From 2b6992eec14443c2422bc07540babafde401e43c Mon Sep 17 00:00:00 2001 From: toby Date: Fri, 22 Mar 2019 19:55:03 +0000 Subject: [PATCH] qemu-ifup: use variable for consistency --- files/qemu-ifup | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/qemu-ifup b/files/qemu-ifup index e7c7f92..fc3bf3e 100755 --- a/files/qemu-ifup +++ b/files/qemu-ifup @@ -17,7 +17,6 @@ fi LOOPBACKIP=$(ip -4 addr show dev lo | grep -Po 'inet \K[\d.]+' | grep -v "^127.0.0.1$") BRIDGE=br${CLUSTER} VIF=vxlan${CLUSTER} - [ -z ${PARENTIF:=""} ] || VIF=vlan${CLUSTER} ### if we have a parentif set we're just going to handle it as a legacy old school vlan ip link set up ${IFACE} @@ -27,7 +26,7 @@ if ! ip link show dev ${VIF} &>/dev/null; then then ip link add ${VIF} type vxlan id ${CLUSTER} dstport 4789 local ${LOOPBACKIP} nolearning else - ip link add link ${PARENTIF} name vlan${CLUSTER} type vlan protocol 802.1q id ${CLUSTER} + ip link add link ${PARENTIF} name ${VIF} type vlan protocol 802.1q id ${CLUSTER} fi ip link set up ${VIF} fi