This commit makes OVS deletes all bridges at boot time for RHEL. This is to prevent the adding of non-existent interfaces (e.g. KVM vifs) after cold power off.
VMware-BZ: #1411523 Signed-off-by: Alex Wang <al...@nicira.com> --- rhel/etc_init.d_openvswitch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rhel/etc_init.d_openvswitch b/rhel/etc_init.d_openvswitch index 3921aab..7b4a818 100755 --- a/rhel/etc_init.d_openvswitch +++ b/rhel/etc_init.d_openvswitch @@ -45,6 +45,10 @@ start () { if test X"$VSWITCHD_MLOCKALL" != X; then set "$@" --mlockall="$VSWITCHD_MLOCKALL" fi + if test ! -e /var/run/openvswitch.booted; then + touch /var/run/openvswitch.booted + set "$@" --delete-bridges + fi set "$@" $OVS_CTL_OPTS "$@" -- 1.7.9.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev