Package: xen-utils-common
Version: 4.1.4-3+deb7u1
Severity: normal
Tags: patch
Dear Maintainer,
* What led up to the situation?
I have a xen dom0 with more than one interface that I want to make bridges on
* What exactly did you do (or not do) that was effective (or
ineffective)?
I have my own bridge making script that calls network-bridge for each
interface. This used to work in xen-4.0
* What was the outcome of this action?
Only the first bridge got made
* What outcome did you expect instead?
I expected the other bridges to be made too.
The problem is the "brctl show" in op_start. It makes op_start if *any*
bridge already exists. I guess it's supposed to check if the bridge being
created already exists.
I include a patch to fix the test, letting me create multiple bridges.
-- System Information:
Debian Release: 7.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages xen-utils-common depends on:
ii gawk 1:4.0.1+dfsg-2.1
ii lsb-base 4.1+Debian8
ii python 2.7.3-4
ii ucf 3.0025+nmu3
ii udev 175-7.2
ii xenstore-utils 4.1.4-3+deb7u1
xen-utils-common recommends no packages.
xen-utils-common suggests no packages.
-- Configuration Files:
/etc/xen/scripts/network-bridge changed [not included]
/etc/xen/xend-config.sxp changed [not included]
-- no debconf information
--- /etc/xen/scripts/network-bridge.dist 2013-01-22 17:41:48.000000000 +0100
+++ /etc/xen/scripts/network-bridge 2013-05-15 15:28:21.000000000 +0200
@@ -216,7 +216,7 @@
return
fi
- if [ `brctl show | wc -l` != 1 ]; then
+ if [ `brctl show ${bridge} | wc -l` != 1 ]; then
return
fi