]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Huawei: Consider bandwidth when selecting port
authorWilson Liu <liuxinguo@huawei.com>
Mon, 22 Feb 2016 08:09:33 +0000 (16:09 +0800)
committerWilson Liu <liuxinguo@huawei.com>
Sat, 27 Feb 2016 01:45:56 +0000 (09:45 +0800)
commit4a0a7b03f132536c1ef5b099c76a2e4ca03f448d
tree159e8cd064011bbf28ee6c19b8f5d9f90e8978f5
parent63cc4a2b773aeb401d42f0300a26097d32c3f345
Huawei: Consider bandwidth when selecting port

Currently we count the weight of each FC port when
selecting port for zoning, but if all the weights
are equal, for example, at the very beginning when
all ports' weight are zero, we should select the
ports which have the bigger bandwidth.

Closes-Bug: #1548220
Change-Id: I59b3f0bb9adb1038f54b2f4a3c1dfa8bdc520ae9
cinder/volume/drivers/huawei/fc_zone_helper.py
cinder/volume/drivers/huawei/huawei_driver.py