Package: release.debian.org
Severity: normal
Tags: stretch
User: [email protected]
Usertags: pu

When updating a production machine to Stretch I found that the check for
vlan interfaces was wrong and thus some of the vlans were not being created.

I have worked on a fix for this which is on -14 version of the package, I
have uploaded that already to unstable, but I'd like this to be parth of the
next point release, here is the diff for the fix:

--- bridge-utils.sh-1.5-13      2017-06-26 23:42:52.791730487 +0200
+++ bridge-utils.sh-1.5-14      2017-06-26 23:42:10.215270353 +0200
@@ -58,11 +58,11 @@
 create_vlan_port()
 {
 # port doesn't yet exist
-if ! grep -q "$port" /proc/net/dev
+if ! grep -q "$port:" /proc/net/dev
 then
   dev="${port%.*}"
   # port is a vlan and the device exists?
-  if [ "$port" != "$dev" ] && grep -q "$dev" /proc/net/dev
+  if [ "$port" != "$dev" ] && grep -q "$dev:" /proc/net/dev
   then
     if [ -f /proc/sys/net/ipv6/conf/$dev/disable_ipv6 ]
     then
@@ -77,7 +77,7 @@
 destroy_vlan_port()
 {
 # port exists
-if grep -q "$port" /proc/net/dev
+if grep -q "$port:" /proc/net/dev
 then
   dev="${port%.*}"
   # port is a vlan

I hope we can get this into the next stable release.

Regards.

-- System Information:
Debian Release: 9.0
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'oldoldstable'), (500, 'unstable'), (500, 
'oldstable'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=gl_ES.UTF-8, LC_CTYPE=gl_ES.UTF-8 (charmap=UTF-8), 
LANGUAGE=gl_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Reply via email to