ia64/xen-unstable

changeset 19812:d9b988c65ebf

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@oracle.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jun 23 11:22:08 2009 +0100 (2009-06-23)
parents bfbd7a85d2f8
children b55070edb185
files tools/hotplug/Linux/network-bridge
line diff
     1.1 --- a/tools/hotplug/Linux/network-bridge	Tue Jun 23 11:20:10 2009 +0100
     1.2 +++ b/tools/hotplug/Linux/network-bridge	Tue Jun 23 11:22:08 2009 +0100
     1.3 @@ -111,9 +111,9 @@ do_ifup() {
     1.4              # use the info from get_ip_info()
     1.5              ip addr flush $1
     1.6              ip addr add ${addr_pfx} dev $1
     1.7 -            ip link set dev $1 up
     1.8 -            [ -n "$gateway" ] && ip route add default via ${gateway}
     1.9          fi
    1.10 +        ip link set dev $1 up
    1.11 +        [ -n "$gateway" ] && ip route add default via ${gateway}
    1.12      fi
    1.13  }
    1.14