ovs-ctl: Do not load brcompat_mod if the bridge module is already loaded.
[openvswitch] / utilities / ovs-ctl.in
index 5640ee88d6c0b86db8f387549dddd8c770a35637..d1df6a8491f6ca81bebe653529cde71ab056a43a 100755 (executable)
@@ -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
 }