[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Don't use abbreviated ip subcommands -- these are not accepted by iproute2.
# HG changeset patch # User emellor@xxxxxxxxxxxxxxxxxxxxxx # Node ID d3b23e0165cc6b8dbd22049f185d292e7ee778ad # Parent 4c2cc7390312d66590cc84cabf95c66c61980340 Don't use abbreviated ip subcommands -- these are not accepted by iproute2. Closes bug #478. Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx> diff -r 4c2cc7390312 -r d3b23e0165cc tools/examples/README.incompatibilities --- a/tools/examples/README.incompatibilities Thu Mar 30 16:26:19 2006 +++ b/tools/examples/README.incompatibilities Thu Mar 30 23:09:42 2006 @@ -24,6 +24,13 @@ xen-network-common.sh. +ip +-- + +Newer ip commands (from iproute2) do not accept the abbreviated syntax "ip r a +..." etc. "ip route add ..." must be used instead. + + sed --- diff -r 4c2cc7390312 -r d3b23e0165cc tools/examples/vif-route --- a/tools/examples/vif-route Thu Mar 30 16:26:19 2006 +++ b/tools/examples/vif-route Thu Mar 30 23:09:42 2006 @@ -29,11 +29,11 @@ online) ifconfig ${vif} ${main_ip} netmask 255.255.255.255 up echo 1 >/proc/sys/net/ipv4/conf/${vif}/proxy_arp - ipcmd='a' + ipcmd='add' ;; offline) ifdown ${vif} - ipcmd='d' + ipcmd='del' ;; esac @@ -41,7 +41,7 @@ # If we've been given a list of IP addresses, then add routes from dom0 to # the guest using those addresses. for addr in ${ip} ; do - ip r ${ipcmd} ${addr} dev ${vif} src ${main_ip} + ip route ${ipcmd} ${addr} dev ${vif} src ${main_ip} done fi _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |