2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 05:47:55 +00:00

debian: Use ifquery for finding the interfaces in init script.

When using interfaces.d/<foobar>, interfaces are not picked up.
Let ifquery figure out the format of the interfaces files for us.

Signed-off-by: Jan Vansteenkiste <jan@vstone.eu>
Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Jan Vansteenkiste 2014-12-08 14:52:07 +01:00 committed by Ben Pfaff
parent 3a11fd5b2b
commit 2e601425c6
2 changed files with 2 additions and 1 deletions

View File

@ -72,6 +72,7 @@ Ian Campbell Ian.Campbell@citrix.com
Isaku Yamahata yamahata@valinux.co.jp
James P. roampune@gmail.com
James Page james.page@ubuntu.com
Jan Vansteenkiste jan@vstone.eu
Jarno Rajahalme jrajahalme@nicira.com
Jason Kölker jason@koelker.net
Jasper Capel jasper@capel.tv

View File

@ -33,7 +33,7 @@ test -e /etc/default/openvswitch-switch && . /etc/default/openvswitch-switch
network_interfaces () {
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}
}