mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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>
This commit is contained in:
1 parent
7aeb062fbc
commit
d1abeffc81
1 file changed
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
|
||||