summaryrefslogtreecommitdiff
path: root/rhel
diff options
context:
space:
mode:
authorTyler Coumbes <coumbes@gmail.com>2011-11-14 09:08:03 -0800
committerBen Pfaff <blp@nicira.com>2011-11-14 09:08:13 -0800
commit279320b8276011df3667478de6750d5a40d0c6eb (patch)
tree5fcfbf4c15a055d00f650a9abbbc6c58d545875e /rhel
parente9b14f9f010f365083b92336c579e68d581272dc (diff)
downloadopenvswitch-279320b8276011df3667478de6750d5a40d0c6eb.tar.gz
rhel: Add ability to enable bridge compatibility mode in /etc/sysconfig/openvswitch
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.
Diffstat (limited to 'rhel')
-rwxr-xr-xrhel/etc_init.d_openvswitch3
-rw-r--r--rhel/usr_share_openvswitch_scripts_sysconfig.template3
2 files changed, 6 insertions, 0 deletions
diff --git a/rhel/etc_init.d_openvswitch b/rhel/etc_init.d_openvswitch
index 5501d1881..f1a34c7a9 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 26543af1b..257fc8239 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