ia64/xen-unstable

changeset 9541:d3b23e0165cc

Don't use abbreviated ip subcommands -- these are not accepted by iproute2.

Closes bug #478.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Fri Mar 31 00:09:42 2006 +0100 (2006-03-31)
parents 4c2cc7390312
children 601d0229a40e
files tools/examples/README.incompatibilities tools/examples/vif-route
line diff
     1.1 --- a/tools/examples/README.incompatibilities	Thu Mar 30 17:26:19 2006 +0100
     1.2 +++ b/tools/examples/README.incompatibilities	Fri Mar 31 00:09:42 2006 +0100
     1.3 @@ -24,6 +24,13 @@ Gentoo doesn't have ifup/ifdown; appropr
     1.4  xen-network-common.sh.
     1.5  
     1.6  
     1.7 +ip
     1.8 +--
     1.9 +
    1.10 +Newer ip commands (from iproute2) do not accept the abbreviated syntax "ip r a
    1.11 +..." etc.  "ip route add ..." must be used instead.
    1.12 +
    1.13 +
    1.14  sed
    1.15  ---
    1.16  
     2.1 --- a/tools/examples/vif-route	Thu Mar 30 17:26:19 2006 +0100
     2.2 +++ b/tools/examples/vif-route	Fri Mar 31 00:09:42 2006 +0100
     2.3 @@ -29,11 +29,11 @@ case "$command" in
     2.4      online)
     2.5          ifconfig ${vif} ${main_ip} netmask 255.255.255.255 up
     2.6          echo 1 >/proc/sys/net/ipv4/conf/${vif}/proxy_arp
     2.7 -        ipcmd='a'
     2.8 +        ipcmd='add'
     2.9          ;;
    2.10      offline)
    2.11          ifdown ${vif}
    2.12 -        ipcmd='d'
    2.13 +        ipcmd='del'
    2.14          ;;
    2.15  esac
    2.16  
    2.17 @@ -41,7 +41,7 @@ if [ "${ip}" ] ; then
    2.18      # If we've been given a list of IP addresses, then add routes from dom0 to
    2.19      # the guest using those addresses.
    2.20      for addr in ${ip} ; do
    2.21 -      ip r ${ipcmd} ${addr} dev ${vif} src ${main_ip}
    2.22 +      ip route ${ipcmd} ${addr} dev ${vif} src ${main_ip}
    2.23      done 
    2.24  fi
    2.25