]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Adds friendly zone name support
authorAngela Smith <aallen@brocade.com>
Mon, 9 Nov 2015 18:14:35 +0000 (10:14 -0800)
committerAngela Smith <aallen@brocade.com>
Fri, 22 Jan 2016 23:59:46 +0000 (15:59 -0800)
commitc346612cc7c9ff0b6e4534534b1818b5db2cfbc4
tree5f38678b969a306dd8d80ad855735e182fd0a5fa
parent31141a9ff41bb88126e1308f1a1f0341d01b0b2e
Adds friendly zone name support

Added user friendly names for zones to include host and storage
names along with ids to easily identify the host and storage port
details.

This is done by extracting the host and storage name from connection
info object in the zone manager. The host and storage names are passed
to the zone drivers to form a friendly name. The method signature has
been changed which accepts host and storage name, with default as None.

Also added test cases to test this support. Changes have been made to
zone manager test code to accommodate the change in signature of some
methods.

Moved get_friendly_zone_name method to utils.py so that it can be used
by both cisco and brocade drivers

Changed cisco driver to accommodate host_name and storage_system
parameters in add/delete connection.

Implements: blueprint brocade-zone-driver-friendly-zone-names

Change-Id: I350493b96901675a1b8910d6104f31c7d677ebda
13 files changed:
cinder/tests/unit/zonemanager/test_driverutils.py [new file with mode: 0644]
cinder/tests/unit/zonemanager/test_fc_zone_manager.py
cinder/tests/unit/zonemanager/test_volume_driver.py
cinder/zonemanager/drivers/brocade/brcd_fabric_opts.py
cinder/zonemanager/drivers/brocade/brcd_fc_zone_driver.py
cinder/zonemanager/drivers/brocade/fc_zone_constants.py
cinder/zonemanager/drivers/cisco/cisco_fc_zone_driver.py
cinder/zonemanager/drivers/driver_utils.py [new file with mode: 0644]
cinder/zonemanager/drivers/fc_zone_driver.py
cinder/zonemanager/fc_zone_manager.py
cinder/zonemanager/fczm_constants.py [new file with mode: 0644]
cinder/zonemanager/utils.py
releasenotes/notes/friendly-zone-names-d5e131d356040de0.yaml [new file with mode: 0644]