Support multiple NICs on HVMs dev prod 0.0.37
authorMitchell E Berger <mitchb@mit.edu>
Sun, 30 Oct 2011 01:53:56 +0000 (21:53 -0400)
committerMitchell E Berger <mitchb@mit.edu>
Sun, 30 Oct 2011 01:53:56 +0000 (21:53 -0400)
debian/changelog
qemu-ifup.invirt

index 3c47cc9..4260ecb 100644 (file)
@@ -1,3 +1,9 @@
+invirt-xen-config (0.0.37) unstable; urgency=low
+
+  * Support multiple NICs on HVMs.
+
+ -- Mitchell Berger <mitchb@mit.edu>  Sat, 29 Oct 2011 21:53:00 -0400
+
 invirt-xen-config (0.0.36) unstable; urgency=low
 
   * Version bump to recover from invirtibuilder version error. No changes.
index d50b412..588bb92 100755 (executable)
@@ -8,9 +8,10 @@ if [ -z "$domid" ]; then
 fi
 
 dev=$1
+ifnum=${1##*.}
 qemu_online=yes
-XENBUS_PATH=/local/domain/0/backend/vif/${domid}/0
-vif=vif${domid}.0
+XENBUS_PATH=/local/domain/0/backend/vif/${domid}/${ifnum}
+vif=vif${domid}.${ifnum}
 export vif qemu_online XENBUS_PATH dev 
 
 exec /etc/xen/scripts/vif-invirtroute online