The cinder.zonemanager.drivers.cisco.cisco_fc_zone_client_cli Module

Script to push the zone configuration to Cisco SAN switches.

class CiscoFCZoneClientCLI(ipaddress, username, password, port, vsan)

Bases: object

Cisco FC zone client cli implementation.

OpenStack Fibre Channel zone client cli connector to manage FC zoning in Cisco SAN fabrics.

Version history:
1.0 - Initial Cisco FC zone client cli
activate_zoneset(cfgname, fabric_vsan, zone_status)

Method to Activate the zone config. Param cfgname - ZonesetName.

add_zones(zones, activate, fabric_vsan, active_zone_set, zone_status)

Add zone configuration.

This method will add the zone configuration passed by user.

input params: zones - zone names mapped to members and VSANs. zone members are colon separated but case-insensitive { zonename1:[zonememeber1,zonemember2,...],

zonename2:[zonemember1, zonemember2,...]...}
e.g: {‘openstack50060b0000c26604201900051ee8e329’:
[‘50:06:0b:00:00:c2:66:04’, ‘20:19:00:05:1e:e8:e3:29’]

}

activate - True/False

cleanup()
delete_zones(zone_names, activate, fabric_vsan, active_zone_set, zone_status)

Delete zones from fabric.

Method to delete the active zone config zones

params zone_names: zoneNames separated by semicolon params activate: True/False

get_active_zone_set()

Return the active zone configuration.

Return active zoneset from fabric. When none of the configurations are active then it will return empty map.

Returns:Map – active zone set map in the following format
{
‘zones’:
{‘openstack50060b0000c26604201900051ee8e329’:
[‘50060b0000c26604’, ‘201900051ee8e329’]

},

‘active_zone_config’: ‘OpenStack_Cfg’

}

get_nameserver_info()

Get name server data from fabric.

This method will return the connected node port wwn list(local and remote) for the given switch fabric

show fcns database

get_zoning_status()

Return the zoning mode and session for a zoneset.

switch_ip = None
switch_port = '22'
switch_pwd = 'none'
switch_user = 'admin'

Previous topic

The cinder.zonemanager.drivers.cisco.cisco_fc_san_lookup_service Module

Next topic

The cinder.zonemanager.drivers.cisco.cisco_fc_zone_driver Module

Project Source

This Page