mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 13:58:14 +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:
parent
3a11fd5b2b
commit
2e601425c6
1
AUTHORS
1
AUTHORS
@ -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
|
||||
|
2
debian/openvswitch-switch.init
vendored
2
debian/openvswitch-switch.init
vendored
@ -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}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user