[ovs-dev] [PATCH] rhel: Delete bridges at boot.

Gurucharan Shetty shettyg at nicira.com
Thu Mar 19 02:40:49 UTC 2015


On Wed, Mar 18, 2015 at 3:30 PM, Alex Wang <alexw at nicira.com> wrote:
> 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
So this reverts
http://permalink.gmane.org/gmane.network.openvswitch.devel/4252

For all the bridges created via ovs-vsctl previously, how do you
re-create them now?

>
> Signed-off-by: Alex Wang <alexw at 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 at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev



More information about the dev mailing list