The cinder.zonemanager.fc_san_lookup_service Module

Base Lookup Service for name server lookup to find the initiator to target port mapping for available SAN contexts. Vendor specific lookup classes are expected to implement the interfaces defined in this class.

class FCSanLookupService(**kwargs)

Bases: cinder.zonemanager.fc_common.FCCommon

Base Lookup Service.

Base Lookup Service for name server lookup to find the initiator to target port mapping for available SAN contexts.

get_device_mapping_from_network(initiator_list, target_list)

Get device mapping from FC network.

Gets a filtered list of initiator ports and target ports for each SAN available. :param initiator_list: list of initiator port WWN :param target_list: list of target port WWN :returns: device wwn map in following format

{
    <San name>: {
        'initiator_port_wwn_list':
        ('200000051E55A100', '200000051E55A121'..)
        'target_port_wwn_list':
        ('100000051E55A100', '100000051E55A121'..)
    }
}
Raises:Exception – when a lookup service implementation is not specified in cinder.conf:fc_san_lookup_service
lookup_service = None