summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRawan Herzallah <rherzallah@asaltech.com>2016-06-26 06:42:19 +0000
committerRawan Herzallah <rherzallah@asaltech.com>2016-06-26 06:45:02 +0000
commitdf713aecadd454c6eb0156b44e7607ac10100e11 (patch)
treec8da0bada506f519810099e0cb844967faa19560
parent650b396bf4d758f5709b07a781a8110bcdc8325a (diff)
Fix configuring mellanox VFs for ConnectX-4 LX cards
Added a parsing fix for configuring mellanox vfs script to handle LX ConnectX-4 cards. Change-Id: I9e1202eae1d1bc72faf3af0df0fb238b388dfc02
Notes
Notes (review): Code-Review+1: Rawan Herzallah <rherzallah@asaltech.com> Code-Review+2: Aviram Bar-Haim <aviramb@mellanox.com> Workflow+1: Aviram Bar-Haim <aviramb@mellanox.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Mon, 27 Jun 2016 08:53:03 +0000 Reviewed-on: https://review.openstack.org/334226 Project: openstack/fuel-plugin-mellanox Branch: refs/heads/master
-rwxr-xr-xdeployment_scripts/configure_mellanox_vfs.py3
-rw-r--r--metadata.yaml2
2 files changed, 3 insertions, 2 deletions
diff --git a/deployment_scripts/configure_mellanox_vfs.py b/deployment_scripts/configure_mellanox_vfs.py
index d4cdca7..26bcf2d 100755
--- a/deployment_scripts/configure_mellanox_vfs.py
+++ b/deployment_scripts/configure_mellanox_vfs.py
@@ -85,7 +85,8 @@ class MellanoxVfsSettings(object):
85 vf_dict['vf_num'] = count; 85 vf_dict['vf_num'] = count;
86 vf_dict['pci_address'] = vf_info[0] 86 vf_dict['pci_address'] = vf_info[0]
87 vf_dict['port_module'] = vf_info[1] 87 vf_dict['port_module'] = vf_info[1]
88 vf_dict['port_num'] = vf_info[12] 88 index_port_num = vf_info.index("port")
89 vf_dict['port_num'] = vf_info[index_port_num + 1]
89 vf_dict['mac'] = mac_list[count] 90 vf_dict['mac'] = mac_list[count]
90 cls.mellanox_vfs.append(vf_dict) 91 cls.mellanox_vfs.append(vf_dict)
91 count += 1; 92 count += 1;
diff --git a/metadata.yaml b/metadata.yaml
index 9c87295..1e92dd0 100644
--- a/metadata.yaml
+++ b/metadata.yaml
@@ -5,7 +5,7 @@ name: mellanox-plugin
5title: Mellanox ConnectX-4 Openstack Features 5title: Mellanox ConnectX-4 Openstack Features
6 6
7# Plugin version 7# Plugin version
8version: 3.1.17 8version: 3.1.18
9 9
10# Description 10# Description
11description: Enable features over Mellanox ConnectX-4 Adapters 11description: Enable features over Mellanox ConnectX-4 Adapters