eth2 -> config.xen.network.iface
authorGreg Price <price@mit.edu>
Sat, 31 Jan 2009 09:47:50 +0000 (04:47 -0500)
committerGreg Price <price@mit.edu>
Sat, 31 Jan 2009 09:47:50 +0000 (04:47 -0500)
svn path=/trunk/packages/invirt-xen-config/; revision=2055

debian/changelog
invirt-database
vif-invirtroute

index 1459f86..c691403 100644 (file)
@@ -1,8 +1,9 @@
 invirt-xen-config (0.0.21) unstable; urgency=low
 
   * Move sysvms/* into xvm-prodconfig from invirt-xen-config
+  * eth2 -> config.xen.network.iface
 
- -- Greg Price <price@mit.edu>  Fri, 30 Jan 2009 21:15:25 -0500
+ -- Greg Price <price@mit.edu>  Sat, 31 Jan 2009 04:43:54 -0500
 
 invirt-xen-config (0.0.20) unstable; urgency=low
 
index 76e959e..5ee57f9 100644 (file)
@@ -84,7 +84,8 @@ elif codepath == 'paravm':
 
 for n in machine.nics:
     check(re.match('^[0-9a-fA-F:]+$', n.mac_addr) and re.match('^[0-9.]*$', n.ip))
-    d = '%smac=%s, ip=%s, script=vif-invirtroute netdev=eth2' % (viftype, n.mac_addr, n.ip)
+    d = ('%smac=%s, ip=%s, script=vif-invirtroute netdev=%s'
+         % (viftype, n.mac_addr, n.ip, config.xen.network.iface))
     vif.append(d)
 
 for d in machine.disks:
index 63b2679..2b3a88d 100755 (executable)
@@ -65,7 +65,7 @@ if [  ${vif_type} != "ioemu"  -o  x${qemu_online} = xyes ] ; then
     # the guest using those addresses.
        for addr in ${ip} ; do
            ${cmdprefix} ip route ${ipcmd} ${addr} dev ${dev} src ${main_ip}
-           arpspoof -i eth2 -t 18.181.0.1 ${addr}&
+           arpspoof -i $(invirt-getconf xen.network.iface) -t 18.181.0.1 ${addr}&
            sleep 5
            kill %arpspoof
        done