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
This commit is contained in:
Rawan Herzallah 2016-06-26 06:42:19 +00:00
parent 650b396bf4
commit df713aecad
2 changed files with 3 additions and 2 deletions

View File

@ -85,7 +85,8 @@ class MellanoxVfsSettings(object):
vf_dict['vf_num'] = count;
vf_dict['pci_address'] = vf_info[0]
vf_dict['port_module'] = vf_info[1]
vf_dict['port_num'] = vf_info[12]
index_port_num = vf_info.index("port")
vf_dict['port_num'] = vf_info[index_port_num + 1]
vf_dict['mac'] = mac_list[count]
cls.mellanox_vfs.append(vf_dict)
count += 1;

View File

@ -5,7 +5,7 @@ name: mellanox-plugin
title: Mellanox ConnectX-4 Openstack Features
# Plugin version
version: 3.1.17
version: 3.1.18
# Description
description: Enable features over Mellanox ConnectX-4 Adapters