]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Huawei: Refactor driver for the second time
authorchenzongliang <chenzongliang@huawei.com>
Sat, 12 Dec 2015 09:11:55 +0000 (17:11 +0800)
committerWilson Liu <liuxinguo@huawei.com>
Mon, 18 Jan 2016 21:46:18 +0000 (05:46 +0800)
commit23115ee8e02ae5127681a84abd1615e9e55e958c
treeb4a05cf79a36da70eb26f2fe4a7a9c97a07e1433
parente5936310fba453ec629189420204276f59bf71a7
Huawei: Refactor driver for the second time

After a few new features being added into drivers,
we found it hard to maintain the code. For further working,
we need to refactor our code. The work contains the following:
1. Define a new class, named HuaweiConf, to parse xml config file.
   We used an external xml file to store SAN info.
   But we do config parsing anywhere in our code,
   even two different functions do the same parsing.
2. Adjust some function structures.
3. Rename some functions & variables.

DocImpact
Implements: blueprint refactor-huawei-driver
Change-Id: If935a38399809cf95848825344fb837bf04a7dd3
cinder/tests/unit/test_huawei_drivers.py
cinder/volume/drivers/huawei/constants.py
cinder/volume/drivers/huawei/fc_zone_helper.py
cinder/volume/drivers/huawei/huawei_conf.py [new file with mode: 0644]
cinder/volume/drivers/huawei/huawei_driver.py
cinder/volume/drivers/huawei/huawei_utils.py
cinder/volume/drivers/huawei/hypermetro.py
cinder/volume/drivers/huawei/rest_client.py
cinder/volume/drivers/huawei/smartx.py