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

[Xen-changelog] [xen-unstable] Fix network-bridge ifup problem when bridge has no IP address.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1245752528 -3600
# Node ID d9b988c65ebfab24cd61d467bd8a4374419de55e
# Parent  bfbd7a85d2f87786725bc947b9be898a73d661ce
Fix network-bridge ifup problem when bridge has no IP address.

When we want to setup a bridge without a ip address, function
do_ifup will not activate the bridge.

We should make the bridge active, then vif-bridge can work on the
bridge.

Signed-off-by: Zhigang Wang <zhigang.x.wang@xxxxxxxxxx>
---
 tools/hotplug/Linux/network-bridge |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r bfbd7a85d2f8 -r d9b988c65ebf tools/hotplug/Linux/network-bridge
--- a/tools/hotplug/Linux/network-bridge        Tue Jun 23 11:20:10 2009 +0100
+++ b/tools/hotplug/Linux/network-bridge        Tue Jun 23 11:22:08 2009 +0100
@@ -111,9 +111,9 @@ do_ifup() {
             # use the info from get_ip_info()
             ip addr flush $1
             ip addr add ${addr_pfx} dev $1
-            ip link set dev $1 up
-            [ -n "$gateway" ] && ip route add default via ${gateway}
         fi
+        ip link set dev $1 up
+        [ -n "$gateway" ] && ip route add default via ${gateway}
     fi
 }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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