2008-09-25 01:20:56 +02:00
|
|
|
Index: xen-3.3.1-testing/tools/examples/network-bridge
|
2008-05-24 00:00:43 +02:00
|
|
|
===================================================================
|
2008-09-25 01:20:56 +02:00
|
|
|
--- xen-3.3.1-testing.orig/tools/examples/network-bridge
|
|
|
|
+++ xen-3.3.1-testing/tools/examples/network-bridge
|
2008-08-18 00:24:29 +02:00
|
|
|
@@ -253,18 +253,18 @@ op_stop () {
|
2008-05-24 00:00:43 +02:00
|
|
|
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
|