ovs-ctl: Start the rest of Open vSwitch if loading brcompat module fails.
authorBen Pfaff <blp@nicira.com>
Fri, 27 Jul 2012 20:11:20 +0000 (13:11 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 27 Jul 2012 20:11:20 +0000 (13:11 -0700)
This may be more useful in practice than failing the entire OVS startup
sequence.

Debian bug #681955.
CC: 681955@bugs.debian.org
Reported-by: Bastian Blank <waldi@debian.org>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Simon Horman <horms@verge.net.au>
utilities/ovs-ctl.in

index 552cef3781c621fa02356acb0dc87b3fdaa8cc56..59c2a3109cb4f1c51179ad573d52b4f7837945c7 100755 (executable)
@@ -64,7 +64,12 @@ insert_brcompat_mod_if_required () {
 insert_mod_if_required () {
     insert_openvswitch_mod_if_required || return 1
     if test X"$BRCOMPAT" = Xyes; then
-        insert_brcompat_mod_if_required || return 1
+        if insert_brcompat_mod_if_required; then
+            :
+        else
+            log_warning_msg "could not load brcompat module, disabling bridge compatibility"
+            BRCOMPAT=no
+        fi
     fi
 }