80e28a00ec
- unmodified_drivers: handle IRQF_SAMPLE_RANDOM, it was removed in 3.6-rc1 - bnc#778105 - first XEN-PV VM fails to spawn xend: Increase wait time for disk to appear in host bootloader Modified existing xen-domUloader.diff - Disable the snapshot patches. Snapshot only supported the qcow2 image format which was poorly implemented qemu 0.10.2. Snapshot support may be restored in the future when the newer upstream qemu is used by Xen. - bnc#776995 - attaching scsi control luns with pvscsi - xend/pvscsi: fix passing of SCSI control LUNs xen-bug776995-pvscsi-no-devname.patch - xend/pvscsi: fix usage of persistant device names for SCSI devices xen-bug776995-pvscsi-persistent-names.patch - xend/pvscsi: update sysfs parser for Linux 3.0 xen-bug776995-pvscsi-sysfs-parser.patch - Update to Xen 4.2.0 RC3+ c/s 25779 - Update to Xen 4.2.0 RC2+ c/s 25765 OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=199
58 lines
1.7 KiB
Diff
58 lines
1.7 KiB
Diff
Index: xen-4.2.0-testing/tools/hotplug/Linux/network-bridge
|
|
===================================================================
|
|
--- xen-4.2.0-testing.orig/tools/hotplug/Linux/network-bridge
|
|
+++ xen-4.2.0-testing/tools/hotplug/Linux/network-bridge
|
|
@@ -251,6 +251,9 @@ op_start () {
|
|
|
|
claim_lock "network-bridge"
|
|
|
|
+ local bonded=""
|
|
+ [ -e /sys/class/net/${netdev}/bonding ] && bonded="yes"
|
|
+
|
|
vlans=$(find_active_vlans "${netdev}")
|
|
for vlan in $vlans ; do ifdown $vlan ; done
|
|
|
|
@@ -268,18 +271,32 @@ op_start () {
|
|
ip link set ${netdev} down
|
|
ip addr flush ${netdev}
|
|
fi
|
|
- ip link set ${netdev} name ${pdev}
|
|
- ip link set ${tdev} name ${bridge}
|
|
-
|
|
- setup_physical_bridge_port ${pdev}
|
|
|
|
- # Restore slaves
|
|
- if [ -n "${slaves}" ]; then
|
|
- ip link set ${pdev} up
|
|
- ifenslave ${pdev} ${slaves}
|
|
+ if [ "x${bonded}" = "xyes" ]
|
|
+ then
|
|
+ ip link set ${tdev} name ${bridge}
|
|
+ ln -sf /etc/sysconfig/network/ifcfg-${netdev} /etc/sysconfig/network/ifcfg-${pdev}
|
|
+ ifup ${pdev}
|
|
+ local gw=`ip route show dev ${pdev} | fgrep default | sed 's/default via //'`
|
|
+ ip addr flush ${pdev}
|
|
+ rm -f /etc/sysconfig/network/ifcfg-${pdev}
|
|
+ brctl addif ${bridge} ${pdev}
|
|
+ ip link set ${bridge} up
|
|
+ [ -n "$gw" ] && ip route add default via ${gw}
|
|
+ else
|
|
+ ip link set ${netdev} name ${pdev}
|
|
+ ip link set ${tdev} name ${bridge}
|
|
+
|
|
+ _setup_bridge_port ${pdev}
|
|
+
|
|
+ # Restore slaves
|
|
+ if [ -n "${slaves}" ]; then
|
|
+ ip link set ${pdev} up
|
|
+ ifenslave ${pdev} ${slaves}
|
|
+ fi
|
|
+ add_to_bridge2 ${bridge} ${pdev}
|
|
+ do_ifup ${bridge}
|
|
fi
|
|
- add_to_bridge2 ${bridge} ${pdev}
|
|
- do_ifup ${bridge}
|
|
|
|
for vlan in $vlans ; do ifup $vlan ; done
|
|
|