Change-Id: I8c58d998011427a202c79c45b87b5eca5ceaaa71
Closes-bug: #1331111
| ... | ... |
@@ -38,7 +38,14 @@ function _neutron_ovs_base_install_agent_packages {
|
| 38 | 38 |
# FIXME add to ``files/apts/neutron``, but don't install if not needed! |
| 39 | 39 |
if is_ubuntu; then |
| 40 | 40 |
kernel_version=`cat /proc/version | cut -d " " -f3` |
| 41 |
- install_package make fakeroot dkms openvswitch-switch openvswitch-datapath-dkms linux-headers-$kernel_version |
|
| 41 |
+ ovs_packages="make fakeroot dkms openvswitch-switch" |
|
| 42 |
+ # From kernel 3.13 on, openvswitch-datapath-dkms is not needed |
|
| 43 |
+ kernel_major_minor=`echo $kernel_version | cut -d. -f1-2` |
|
| 44 |
+ if [ `vercmp_numbers "$kernel_major_minor" "3.13"` -lt "0" ]; then |
|
| 45 |
+ ovs_packages="$ovs_packages openvswitch-datapath-dkms" |
|
| 46 |
+ fi |
|
| 47 |
+ ovs_packages="$ovs_packages linux-headers-$kernel_version" |
|
| 48 |
+ install_package $ovs_packages |
|
| 42 | 49 |
elif is_fedora; then |
| 43 | 50 |
install_package openvswitch |
| 44 | 51 |
# Ensure that the service is started |