debian: Don't recreate bridges during manual restart.
authorGurucharan Shetty <gshetty@nicira.com>
Wed, 20 Nov 2013 21:43:45 +0000 (13:43 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Fri, 22 Nov 2013 16:07:18 +0000 (08:07 -0800)
commitb2a0daa5bdbb4594d778a6feb9a108128428142c
treebd5d47a07dfa9247c4383a829035c0e21ad01f57
parent2cd0c475838d048edaec57d137c49bc552c45a08
debian: Don't recreate bridges during manual restart.

Open vSwitch bridges and ports can be configured through
the /etc/network/interfaces script. During system startup,
Open vSwitch startup script reads the interfaces file
and creates the bridges and ports. During system shutdown,
the bridges and ports are removed.

The same behavior also can occur with a manual 'restart' of
Open vswitch (ex: service openvswitch-switch restart).
This behavior has come across as undesirable in some cases.
ex: When some one manually creates interfaces through ovs-vsctl
and then restarts Open vSwitch, that interface is lost.

This commit changes the startup script such that, interfaces
are created and deleted through the startup script only when
RUNLEVEL environment variable is set. This behavior will be
consistent with the OVS RHEL ifcfg-* scripts too.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
debian/openvswitch-switch.init