Brocade south bound connector to communicate with switch using HTTP or HTTPS protocol.
Bases: object
Add or update the zones and cfgs map based on the new zones info.
This method will return the updated zones,cfgs and active_cfg
Parameters: |
|
---|
:param add_zones_info :Zones map to add :param active_cfg :Existing active cfg :param cfg_name : New cfg name :returns: updated zones, zone configs map, and active_cfg
Add zone configuration.
This method will add the zone configuration passed by user.
Parameters: |
|
---|---|
Raises: | BrocadeZoningHttpException |
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 |
Add or update 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: |
|
---|
:param delete_zones_info :Zones map to add :param active_cfg :Existing active cfg :returns: updated zones, zone config sets, and active zone config :raises: BrocadeZoningHttpException
Delete zones from fabric.
Deletes zones in the active zone config.
Parameters: |
|
---|
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 |
---|
},
‘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: | data – String to manipulate |
---|
:param delim1 : Delimiter 1 :param delim2 : Delimiter 2 :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 |
---|