The cinder.zonemanager.drivers.cisco.cisco_fc_zone_driver Module

Cisco Zone Driver is responsible to manage access control using FC zoning for Cisco FC fabrics. This is a concrete implementation of FCZoneDriver interface implementing add_connection and delete_connection interfaces.

Related Flags

zone_activate:Used by: class: ‘FCZoneDriver’. Defaults to True
zone_name_prefix:
 Used by: class: ‘FCZoneDriver’. Defaults to ‘openstack’
class CiscoFCZoneDriver(**kwargs)

Bases: cinder.zonemanager.drivers.fc_zone_driver.FCZoneDriver

Cisco FC zone driver implementation.

OpenStack Fibre Channel zone driver to manage FC zoning in Cisco SAN fabrics.

Version history:
1.0 - Initial Cisco FC zone driver 1.1 - Added friendly zone name support
CI_WIKI_NAME = 'Cisco_ZM_CI'
VERSION = '1.1.0'
add_connection(*args, **kwargs)

Concrete implementation of add_connection.

Based on zoning policy and state of each I-T pair, list of zone members are created and pushed to the fabric to add zones. The new zones created or zones updated are activated based on isActivate flag set in cinder.conf returned by volume driver after attach operation.

Parameters:
  • fabric – Fabric name from cinder.conf file
  • initiator_target_map – Mapping of initiator to list of targets
delete_connection(*args, **kwargs)

Concrete implementation of delete_connection.

Based on zoning policy and state of each I-T pair, list of zones are created for deletion. The zones are either updated deleted based on the policy and attach/detach state of each I-T pair.

Parameters:
  • fabric – Fabric name from cinder.conf file
  • initiator_target_map – Mapping of initiator to list of targets
get_active_zone_set(fabric_ip, fabric_user, fabric_pwd, fabric_port, zoning_vsan)

Gets active zoneset config for vsan.

get_san_context(target_wwn_list)

Lookup SAN context for visible 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_zoning_status(fabric_ip, fabric_user, fabric_pwd, fabric_port, zoning_vsan)

Gets zoneset status and mode.

Previous topic

The cinder.zonemanager.drivers.cisco.cisco_fc_zone_client_cli Module

Next topic

The cinder.zonemanager.drivers.cisco.fc_zone_constants Module

This Page