Fix role param to match multiple roles

Change-Id: Idbc6a99ac71cec8894208a660552580d2a3c4dcb
This commit is contained in:
Aviram Bar-Haim 2016-03-02 16:14:00 +02:00
parent 3bcd9cbe8f
commit 80afeec75f
4 changed files with 4 additions and 4 deletions

View File

@ -87,5 +87,5 @@ readonly ISER=`get_mlnx_param iser`
readonly MAX_VFS=128
readonly MIN_VFS=1
readonly VXLAN_OFFLOADING=`get_mlnx_param vxlan_offloading`
readonly ROLE=`get_param role`
readonly ROLE=`get_param roles`
readonly DEBUG=`get_param debug`

View File

@ -36,7 +36,7 @@ if [ $DISTRO == 'ubuntu' ] && [ $DRIVER == 'eth_ipoib' ]; then
service openibd restart && service openvswitch-switch restart
if [[ $ROLE == compute ]] && [ -f /etc/init.d/nova-compute ]; then
if [[ $ROLE == *compute* ]] && [ -f /etc/init.d/nova-compute ]; then
service nova-compute restart
fi

View File

@ -56,7 +56,7 @@ function calculate_total_vfs () {
# SR-IOV is enabled, the given number of VFs is used
# iSER is also enabled, the iSER VF is among the given SR-IOV VFs
if [ $SRIOV == true ] && [ $ROLE == compute ]; then
if [ $SRIOV == true ] && [[ $ROLE == *compute* ]]; then
num_of_vfs=${USER_NUM_OF_VFS}
# SR-IOV is disabled with iSER enabled, then use only the storage VF

View File

@ -5,7 +5,7 @@ name: mellanox-plugin
title: Mellanox Openstack features
# Plugin version
version: 2.0.29
version: 2.0.30
# Description
description: Enable features over Mellanox hardware