The cinder.zonemanager.fc_zone_manager Module

ZoneManager is responsible to manage access control using FC zoning when zoning mode is set as ‘fabric’. ZoneManager provides interfaces to add connection and remove connection for given initiator and target list associated with a FC volume attach and detach operation.

Related Flags

zone_driver:Used by:class:ZoneManager. Defaults to cinder.zonemanager.drivers.brocade.brcd_fc_zone_driver.BrcdFCZoneDriver
zoning_policy:Used by: class: ‘ZoneManager’. Defaults to ‘none’
class ZoneManager(**kwargs)

Bases: cinder.zonemanager.fc_common.FCCommon

Manages Connection control during attach/detach.

Version History:
1.0 - Initial version 1.0.1 - Added __new__ for singleton 1.0.2 - Added friendly zone name
VERSION = '1.0.2'
add_connection(conn_info)

Add connection control.

Adds connection control for the given initiator target map. initiator_target_map - each initiator WWN mapped to a list of one or more target WWN:

e.g.:
{
    '10008c7cff523b01': ['20240002ac000a50', '20240002ac000a40']
}
delete_connection(conn_info)

Delete connection.

Updates/deletes connection control for the given initiator target map. initiator_target_map - each initiator WWN mapped to a list of one or more target WWN:

e.g.:
{
    '10008c7cff523b01': ['20240002ac000a50', '20240002ac000a40']
}
driver = None
fabric_names = []
get_san_context(target_wwn_list)

SAN lookup for end devices.

Look up each SAN configured and return a map of SAN (fabric IP) to list of target WWNs visible to the fabric.

get_valid_initiator_target_map(initiator_target_map, add_control)

Reference count check for end devices.

Looks up the reference count for each initiator-target pair from the map and returns a filtered list based on the operation type add_control - operation type can be true for add connection control and false for remove connection control

get_zoning_state_ref_count(initiator_wwn, target_wwn)

Zone management state check.

Performs state check for given I-T pair to return the current count of active attach for the pair.

initialized
set_initialized(value=True)

Previous topic

The cinder.zonemanager.fc_san_lookup_service Module

Next topic

The cinder.zonemanager.fczm_constants Module

This Page