[ovs-discuss] [PATCH] rhel: Add ability to enable bridge compatibility mode in /etc/sysconfig/openvswitch

Tyler Coumbes coumbes at gmail.com
Sun Nov 13 23:45:10 UTC 2011


Add the ability to enable bridge compatibility mode through BRCOMPAT
variable in /etc/sysconfig/openvswitch for the rhel build. When
BRCOMPAT is set to 'yes' the brcompat_mod will be loaded and
ovs-brcompatd daemon will be started.
---
 rhel/etc_init.d_openvswitch                        |    3 +++
 ...sr_share_openvswitch_scripts_sysconfig.template |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/rhel/etc_init.d_openvswitch b/rhel/etc_init.d_openvswitch
index 5501d18..dab2b4b 100755
--- a/rhel/etc_init.d_openvswitch
+++ b/rhel/etc_init.d_openvswitch
@@ -45,6 +45,9 @@ start () {
     if test X"$VSWITCHD_MLOCKALL" != X; then
        set "$@" --mlockall="$VSWITCHD_MLOCKALL"
     fi
+    if test X"$BRCOMPAT" == Xyes; then
+        set "$@" --brcompat
+    fi
     "$@"

     $ovs_ctl --protocol=gre enable-protocol
diff --git a/rhel/usr_share_openvswitch_scripts_sysconfig.template
b/rhel/usr_share_openvswitch_scripts_sysconfig.template
index 26543af..257fc82 100644
--- a/rhel/usr_share_openvswitch_scripts_sysconfig.template
+++ b/rhel/usr_share_openvswitch_scripts_sysconfig.template
@@ -18,3 +18,6 @@
 #     system memory pressure in extraordinary situations, such as multiple
 #     concurrent VM import operations.
 # VSWITCHD_MLOCKALL=yes
+
+# BRCOMPAT: If 'yes' compatibility mode will be enabled.
+# BRCOMPAT=yes



More information about the discuss mailing list