cinder.zonemanager.drivers.brocade.brcd_fc_zone_client_cli
Modulecinder.zonemanager.drivers.brocade.brcd_fc_zone_client_cli
Module¶Script to push the zone configuration to brocade SAN switches.
BrcdFCZoneClientCLI
(ipaddress, username, password, port, key)¶Bases: object
activate_zoneset
(cfgname)¶Method to Activate the zone config. Param cfgname - ZonesetName.
add_zones
(zones, activate, active_zone_set=None)¶Add zone configuration.
This method will add the zone configuration passed by user.
Parameters: | zones – zone names mapped to members. 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']
}
Parameters: |
|
---|
apply_zone_change
(cmd_list)¶Execute zoning cli with no status update.
Executes CLI commands such as addZone where status return is not expected.
cleanup
()¶deactivate_zoneset
()¶Method to deActivate the zone config.
delete_zones
(zone_names, activate, active_zone_set=None)¶Delete zones from fabric.
Method to delete the active zone config zones
Parameters: |
|
---|
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
is_supported_firmware
()¶Check firmware version is v6.4 or higher.
This API checks if the firmware version per the plug-in support level. This only checks major and minor version.
patrn
= <_sre.SRE_Pattern object>¶switch_ip
= None¶switch_key
= ‘none’¶switch_port
= ‘22’¶switch_pwd
= ‘none’¶switch_user
= ‘admin’¶update_zones
(zones, activate, operation, active_zone_set=None)¶Update the zone configuration.
This method will update the zone configuration passed by user.
Parameters: | zones – zone names mapped to members. 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']
}
Parameters: |
|
---|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.