Brocade south bound connector to communicate with switch using HTTP or HTTPS protocol.
Bases: object
Add zone configuration.
This method will add the zone configuration passed by user.
Parameters: | add_zones_info – 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: |
|
---|---|
Raises: | BrocadeZoningHttpException |
Add the zones and cfgs map based on the new zones info.
This method will return the updated zones,cfgs and active_cfg
Parameters: |
|
---|---|
Returns: | updated zones, zone configs map, and active_cfg |
Authenticate with the switch.
Returns authentication status with modified authentication header (Base64(username:xxx:random no)).
Returns: | Authentication status |
---|---|
Raises: | BrocadeZoningHttpException |
Change the VF context in the session.
Parameters: |
|
---|---|
Raises: | BrocadeZoningHttpException |
Check whether VF related configurations is valid and proceed.
Close session.
Connect to the switch using HTTP/HTTPS protocol.
Parameters: |
|
---|---|
Returns: | HTTP response data |
Raises: | BrocadeZoningHttpException |
Create the authentication token.
Creates the authentication token to use in the authentication header return authentication header (Base64(username:password:random no)).
Returns: | Authentication Header |
---|---|
Raises: | BrocadeZoningHttpException |
Delete zones from fabric.
Deletes zones in the active zone config.
Parameters: |
|
---|
Delete the zones and cfgs map based on the new zones info.
Return the updated zones, cfgs and active_cfg after deleting the required items.
Parameters: |
|
---|---|
Returns: | updated zones, zone config sets, and active zone config |
Raises: | BrocadeZoningHttpException |
Build the zone string in the required format.
Parameters: |
|
---|---|
Returns: | zonestring in the required format |
Raises: | BrocadeZoningHttpException |
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'
}
Raises: | BrocadeZoningHttpException |
---|
List of VFIDs that can be managed.
Parameters: | session_info – Session information from the switch |
---|---|
Returns: | manageable VF list |
Raises: | BrocadeZoningHttpException |
Get name server data from fabric.
Return the connected node port wwn list(local and remote) for the given switch fabric.
Returns: | name server information. |
---|
Get the value for the key passed.
Parameters: |
|
---|---|
Returns: | value for the NVP |
Return the sub string between the delimiters.
Parameters: |
|
---|---|
Returns: | substring between the delimiters |
Get the session information from the switch
Returns: | Connection status information. |
---|
Parse all the zone information and store it in the dictionary.
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.
Returns: | True if firmware is supported else False. |
---|---|
Raises: | BrocadeZoningHttpException |
To check whether VF is enabled or not.
Returns: | boolean to indicate VF enabled and session information |
---|
Send POST request to the switch with the payload.
Parameters: | data – payload to be sent to switch |
---|
Update zone configuration.
This method will update the zone configuration passed by user.
Parameters: | zone_info – 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: |
|
---|---|
Raises: | BrocadeZoningHttpException |