diff options
author | Ben Pfaff <blp@nicira.com> | 2012-01-16 14:43:22 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-01-16 14:43:22 -0800 |
commit | 258748613a8b53a571d93f58fbfda57f91b81b2b (patch) | |
tree | 5d074bbb50ba8ca3520f4406b58acd566a58d79e /utilities/ovs-ctl.in | |
parent | f23d28456f4ce2c4720a9c100ceff828b79c2360 (diff) | |
download | openvswitch-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-x | utilities/ovs-ctl.in | 4 |
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 } |