diff options
author | Justin Pettit <jpettit@nicira.com> | 2010-04-13 20:52:48 -0700 |
---|---|---|
committer | Justin Pettit <jpettit@nicira.com> | 2010-04-14 20:53:16 -0700 |
commit | 4dcf0d73c247c538807dbb642437aaf33589822b (patch) | |
tree | 5cacfa8f20aa4fcf6ab460fc9fa530cdb73093ea /xenserver/etc_init.d_openvswitch | |
parent | 5b9334be31c1992ddb6e14e8aea6413f00ddb1ab (diff) |
xenserver: Load veth driver on 2.6.18 systems
In a future commit, the "patch" netdev type will be introduced. The
initial implementation will be based on veth, for which we have a kernel
module on 2.6.18. A more general solution will be used in the future,
at which time, this loading of the veth module can be removed.
Diffstat (limited to 'xenserver/etc_init.d_openvswitch')
-rwxr-xr-x | xenserver/etc_init.d_openvswitch | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xenserver/etc_init.d_openvswitch b/xenserver/etc_init.d_openvswitch index b7feb9b4..6adf654b 100755 --- a/xenserver/etc_init.d_openvswitch +++ b/xenserver/etc_init.d_openvswitch @@ -126,6 +126,9 @@ function insert_modules_if_required { if [ "$ENABLE_BRCOMPAT" = "y" ] && [ -n "$BRCOMPATD_PIDFILE" ] && ! lsmod | grep -q "brcompat_mod"; then action "Inserting brcompat module" modprobe brcompat_mod fi + if [ -f "/lib/modules/`uname -r`/kernel/extra/openvswitch/veth_mod.ko" ] && ! lsmod | grep -q "veth_mod"; then + action "Inserting veth module" modprobe veth + fi if [ -f "/lib/modules/`uname -r`/kernel/extra/openvswitch/ip_gre_mod.ko" ] && ! lsmod | grep -q "ip_gre_mod"; then action "Inserting ip_gre module" modprobe ip_gre_mod fi |