Don't create iptables rules in vif-invirtroute - they don't do anything.
[invirt/packages/invirt-xen-config.git] / vif-invirtroute
index 63b2679..26464a0 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 
@@ -81,8 +81,6 @@ if [  ${vif_type} != "ioemu"  -o  x${qemu_online} = xyes ] ; then
     fi
 fi
 
-handle_iptable
-
 log debug "Successful vif-route $command for $vif."
 if [ "$command" == "online" ]
 then