From 3083194a7dca7c33d96857a7195e73ea96c8af83 Mon Sep 17 00:00:00 2001 From: Aviram Bar-Haim Date: Tue, 15 Mar 2016 13:24:47 +0200 Subject: [PATCH] Fix sriovnicswitch vendor ID to static value Added support for Mellanox NIC VFs Change-Id: Ie4de722934733f08d6398008bf676d74b9408f0f --- deployment_scripts/puppet/manifests/controller.pp | 2 +- metadata.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment_scripts/puppet/manifests/controller.pp b/deployment_scripts/puppet/manifests/controller.pp index 081d144..f7b1486 100644 --- a/deployment_scripts/puppet/manifests/controller.pp +++ b/deployment_scripts/puppet/manifests/controller.pp @@ -11,7 +11,7 @@ if ( $mlnx['driver'] == 'mlx4_en' and $mlnx['mlnx_qos'] ) { } if ($mlnx['sriov']) { - $pci_vendor_devices = generate ("/bin/bash", "-c", 'lspci -nn | grep -i Mellanox | grep -i virtual | awk \'{print $NF}\' | sort -u | tr -d \']\' | tr -d \'[\'') + $pci_vendor_devices = '15b3:1004,15b3:1014,8086:10ca' $agent_required = 'True' class { 'mellanox_openstack::controller_sriov' : eswitch_vnic_type => $eswitch_vnic_type, diff --git a/metadata.yaml b/metadata.yaml index cf2501f..5a43602 100644 --- a/metadata.yaml +++ b/metadata.yaml @@ -5,7 +5,7 @@ name: mellanox-plugin title: Mellanox Openstack features # Plugin version -version: 2.0.34 +version: 2.0.35 # Description description: Enable features over Mellanox hardware