Fix VLAN param casting to int in mellanox conf

Change-Id: Idb3f67e6f12f089f48d2316a1249ee0ee7ff124b
This commit is contained in:
Aviram Bar-Haim 2016-01-14 14:35:57 +02:00
parent 6717738158
commit 4dd7266601
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ class MellanoxSettings(object):
"Failed reading vlan for br-storage"
)
if mlnx['driver'] == 'eth_ipoib':
pkey = format((vlan ^ 0x8000),'04x')
pkey = format((int(vlan) ^ 0x8000),'04x')
mlnx['storage_pkey'] = pkey
@classmethod

View File

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