]> gitweb.fluxo.info Git - kvm-manager.git/commitdiff
use ${VMNAME}0 instead of ${VMNAME} for tap interface
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 7 Jun 2011 02:04:14 +0000 (22:04 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 7 Jun 2011 02:04:14 +0000 (22:04 -0400)
kvm-manager

index a8616c3f649c03428dab50917e0b60c9bf4e4bc1..ca01864d1a6026a0a06685af90b1ca12ead7fc77 100755 (executable)
@@ -19,7 +19,7 @@ if [ -z "$VMNAME" ] ; then
     exit 1
 fi
 
-TAP="${TAP:-${VMNAME}}"
+TAP="${TAP:-${VMNAME}0}"
 # MAC address is derived from a hash of the host's name and the guest's name:
 MAC="${MAC:-$(printf "02:%s" "$(printf "%s\0%s" "$(hostname)" "${VMNAME}" | sha256sum | sed 's/\(..\)/\1:/g' | cut -f1-5 -d:)" )}"