summaryrefslogtreecommitdiff
path: root/utilities/ovs-ctl.in
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-01-16 14:43:22 -0800
committerBen Pfaff <blp@nicira.com>2012-01-16 14:43:22 -0800
commit258748613a8b53a571d93f58fbfda57f91b81b2b (patch)
tree5d074bbb50ba8ca3520f4406b58acd566a58d79e /utilities/ovs-ctl.in
parentf23d28456f4ce2c4720a9c100ceff828b79c2360 (diff)
downloadopenvswitch-258748613a8b53a571d93f58fbfda57f91b81b2b.tar.gz
ovs-ctl: Do not load brcompat_mod if the bridge module is already loaded.
brcompat_mod and the Linux bridge module are incompatible, so it doesn't make sense to try to load both at the same time. This commit prevents ovs-ctl from trying. Signed-off-by: Ben Pfaff <blp@nicira.com> Reported-by: Rogério Vinhal Nunes Launchpad bug #917309.
Diffstat (limited to 'utilities/ovs-ctl.in')
-rwxr-xr-xutilities/ovs-ctl.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/utilities/ovs-ctl.in b/utilities/ovs-ctl.in
index 5640ee88d..d1df6a849 100755
--- a/utilities/ovs-ctl.in
+++ b/utilities/ovs-ctl.in
@@ -52,6 +52,10 @@ insert_openvswitch_mod_if_required () {
}
insert_brcompat_mod_if_required () {
+ if test -e /sys/module/bridge; then
+ log_warning_msg "bridge module is loaded, not loading brcompat_mod"
+ return 1
+ fi
test -e /sys/module/brcompat_mod && return 0
action "Inserting brcompat module" modprobe brcompat_mod
}