Fix role param to match multiple roles
Change-Id: Idbc6a99ac71cec8894208a660552580d2a3c4dcb
This commit is contained in:
parent
3bcd9cbe8f
commit
80afeec75f
|
@ -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`
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue