[pve-devel] [PATCH ovs 1/2] remove openvswitch-switch init script

Fabian Grünbichler f.gruenbichler at proxmox.com
Fri Aug 26 13:01:27 CEST 2016


On Fri, Aug 26, 2016 at 12:41:42PM +0200, Alexandre DERUMIER wrote:
> Are you sure that systemd manage correctly this part:
> 
> +-network_interfaces () {
> +-    INTERFACES="/etc/network/interfaces"
> +-    [ -e "${INTERFACES}" ] || return
> +-    bridges=`ifquery --allow ovs --list`
> +-    [ -n "${bridges}" ] && $1 --allow=ovs ${bridges}
> +-}
> 
> 
> ?
> 
> If I remember, the have keep the init script for this.
> I think the systemd unit only manage config from ovs database, but not debian /etc/network/interfaces

I tested it with a (OVS) bridge and intport defined in
/etc/network/interfaces, both are brought up without the init script
without any problems.

There are pre-up and post-down snippets installed in /etc/network/..
which should handle calling ovs binaries to add/remove the interfaces
defined in /etc/network/interfaces.

If you have a test or real setup that does not work without the init
script, please give details!




More information about the pve-devel mailing list