bridge-utils: /etc/network/if-pre-up.d/bridge doesn't handle multiple stanzas of bridge_portprio
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bridge-utils (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
1. % lsb_release -rd
Description: Ubuntu 16.04 LTS
Release: 16.04
2. % apt-cache policy bridge-utils
bridge-utils:
Installed: 1.5-9ubuntu1
Candidate: 1.5-9ubuntu1
Version table:
*** 1.5-9ubuntu1 500
500 http://
100 /var/lib/
3. with a bridge stanza like this:
auto br0
iface br0 inet static
address 192.168.14.2/24
bridge_ports eth1 eth2
bridge_portprio eth1 28
bridge_portprio eth2 16
After ifup br0, /sys/class/
4.
/etc/network/
brctl setportprio br0 eth1 28 eth2 16
which succeeds in setting eth1 to 28, but does not apply a setting to eth2
Instead, we need to iterate over the ports (in case there is more than one port per bridge)
# diff -u bridge.orig bridge
--- bridge.orig 2016-04-29 21:52:34.785204215 +0000
+++ bridge 2016-04-29 21:51:47.237066594 +0000
@@ -134,7 +134,11 @@
if [ "$IF_BRIDGE_
then
- brctl setportprio $IFACE $IF_BRIDGE_PORTPRIO
+ echo "$IF_BRIDGE_
+ while read PORT PRIO; do
+ brctl setportprio $IFACE $PORT $PRIO
+ done
+ }
fi
if [ "$IF_BRIDGE_STP" ]
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: bridge-utils 1.5-9ubuntu1
ProcVersionSign
Uname: Linux 4.4.0-21-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: GNOME-Flashback
Date: Fri Apr 29 16:45:30 2016
Dependencies:
gcc-6-base 6.0.1-0ubuntu1
libc6 2.23-0ubuntu3
libgcc1 1:6.0.1-0ubuntu1
InstallationDate: Installed on 2016-01-01 (119 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20151209)
SourcePackage: bridge-utils
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in bridge-utils (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Medium |
This bug was fixed in the package bridge-utils - 1.5-9ubuntu2
---------------
bridge-utils (1.5-9ubuntu2) yakkety; urgency=medium
* debian/ifupdown.sh: bridge- utils-interface .5:
- Handle bridge params which use port and value (LP: #1576876)
* debian/
- Update max, default value for path cost (LP: #1576870)
- Update unsettable gcint value for newer kernels (LP: #1576858)
-- Ryan Harper <email address hidden> Thu, 05 May 2016 10:38:12 -0500