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

Re: [Xen-devel] [ANNOUNCE] Tree freeze for 3.2.0



Keir Fraser a écrit :
> On 7/11/07 12:49, "Guillaume Rousse" <Guillaume.Rousse@xxxxxxxx> wrote:
> 
>> May I ask then this patch I already submitted twice get included ?
>>
>> Basically, the original network-bridge scripts assume interface is the
>> last element on on the ouput line, whereas it is not always true,
>> especially if you use routing metrics.
> 
> The code in the tree looks like your patch has been applied, yes. You can
> always check for yourself, of course.
The patch was reversed, sorry (/me sux).

here is the correct one.
-- 
Guillaume Rousse
Moyens Informatiques - INRIA Futurs
Tel: 01 69 35 69 62
Signed-off-by: Guillaume Rousse <Guillaume.Rousse@xxxxxxxx>
--- network-bridge~     2007-11-07 13:37:55.000000000 +0100
+++ network-bridge      2007-11-07 13:46:30.000000000 +0100
@@ -72,8 +72,8 @@
     echo "$ifs"
 }
 
-netdev=${netdev:-$(ip route list | awk '/^default / { print $NF }' |
-                  sed 's/.* dev //')}
+netdev=${netdev:-$(ip route list 0.0.0.0/0  | \
+                   sed 's/.*dev \([a-z]\+[0-9]\+\).*$/\1/')}
 if is_network_root ; then
     altdevs=$(find_alt_device $netdev)
     for netdev in $altdevs; do break; done
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

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