daed39e878
checked in (request 35384) OBS-URL: https://build.opensuse.org/request/show/35384 OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=36
32 lines
933 B
Diff
32 lines
933 B
Diff
Index: xen-4.0.0-testing/tools/hotplug/Linux/network-bridge
|
|
===================================================================
|
|
--- xen-4.0.0-testing.orig/tools/hotplug/Linux/network-bridge
|
|
+++ xen-4.0.0-testing/tools/hotplug/Linux/network-bridge
|
|
@@ -262,18 +262,18 @@ op_stop () {
|
|
transfer_addrs ${bridge} ${pdev}
|
|
if ! ifdown ${bridge}; then
|
|
get_ip_info ${bridge}
|
|
- fi
|
|
- ip link set ${pdev} down
|
|
- ip addr flush ${bridge}
|
|
+ ip link set ${pdev} down
|
|
+ ip addr flush ${bridge}
|
|
|
|
- brctl delif ${bridge} ${pdev}
|
|
- ip link set ${bridge} down
|
|
+ brctl delif ${bridge} ${pdev}
|
|
+ ip link set ${bridge} down
|
|
|
|
- ip link set ${bridge} name ${tdev}
|
|
+ ip link set ${bridge} name ${tdev}
|
|
+ brctl delbr ${tdev}
|
|
+ fi
|
|
+ ip link set ${pdev} down
|
|
ip link set ${pdev} name ${netdev}
|
|
do_ifup ${netdev}
|
|
-
|
|
- brctl delbr ${tdev}
|
|
}
|
|
|
|
# adds $dev to $bridge but waits for $dev to be in running state first
|