Package: openvswitch-switch
Version: 2.3.0+git20140819-2
Followup-For: Bug #771863
Dear Maintainer,
The network_interfaces() function in the /etc/init.d/openvswitch-switch
script also does not handle "source" or "source-directory" statements in
/etc/network/interfaces.
Please consider the attached patch which, including the first problem in
this bug, also uses the "ifquery" command to list available bridges.
The ifquery command is from the "ifupdown" package.
-- System Information:
Debian Release: jessie/sid
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/8 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 openvswitch-switch depends on:
ii kmod 18-3
ii libatomic1 4.9.1-19
ii libc6 2.19-13
ii libpython2.7-stdlib [python-argparse] 2.7.8-11
ii libssl1.0.0 1.0.1j-1
ii netbase 5.3
ii openvswitch-common 2.3.0+git20140819-2
ii procps 2:3.3.9-8
pn python:any <none>
ii uuid-runtime 2.25.2-3
openvswitch-switch recommends no packages.
openvswitch-switch suggests no packages.
-- Configuration Files:
/etc/init.d/openvswitch-switch changed [not included]
-- no debconf information
--- /etc/init.d/openvswitch-switch.old 2014-08-19 17:30:43.000000000 +0200
+++ /etc/init.d/openvswitch-switch 2014-12-09 09:08:29.718205202 +0100
@@ -31,10 +31,7 @@
test -e /etc/default/openvswitch-switch && . /etc/default/openvswitch-switch
network_interfaces () {
- [ -z "${RUNLEVEL}" ] && return
- INTERFACES="/etc/network/interfaces"
- [ -e "${INTERFACES}" ] || return
- bridges=`awk '{ if ($1 == "allow-ovs") { print $2; } }' "${INTERFACES}"`
+ bridges="$(ifquery --allow=ovs --list)"
[ -n "${bridges}" ] && $1 --allow=ovs ${bridges}
}