[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Possible issue in vif-route script

I may have misconfigured something, but it seems that the vif-route script executes ip route with invalid parameters when it is run with the 'add' and 'remove' commands.

For clarity, this is the script I was looking at: http://xenbits.xen.org/gitweb/?p=xen.git;a=blob_plain;f=tools/hotplug/Linux/vif-route;hb=HEAD

If ${command} is 'online' or 'offline' the variable ${ipcmd} receives a value, but in case of 'add' or 'remove' it is empty and causes the ip route command to fail which prevents the starting of any VMs that use script=vif-route.

For now I've changed the line 38 to the following and it seems to be working as intended:
if [ "${ip}" ] && [ "${ipcmd}" ] ; then

My setup:
ÂÂÂ OS: debian jessie
ÂÂÂ Xen version: 4.4.1

Relevant hvm configuration:
ÂÂÂ vif = [ 'script=vif-route,ip=,gatewaydev=br0' ]

All the best,
Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.