def _get_active_zone_set(self, fabric):
    driver_vendor = self._get_fabric_vendor()
    if (driver_vendor == 'brocade'):
        conn = self.zm.driver._get_cli_client(fabric)
        cfgmap_from_fabric = self.zm.driver._get_active_zone_set(conn)
        conn.cleanup()
    elif (driver_vendor == 'cisco'):
        (fabric_ip, fabric_user, fabric_pwd, fabric_port, zoning_vsan) = self._get_cisco_config(fabric)
        cfgmap_from_fabric = self.zm.driver.get_active_zone_set(fabric_ip, fabric_user, fabric_pwd, fabric_port, zoning_vsan)
    else:
        msg = ('Unsupported fabric, vendor name: %s.' % driver_vendor)
        LOG.error(msg)
        raise exception.VolumeBackendAPIException(data=msg)
    return cfgmap_from_fabric
def _get_active_zone_set(self, fabric):
    driver_vendor = self._get_fabric_vendor()
    if (driver_vendor == 'brocade'):
        conn = self.zm.driver._get_cli_client(fabric)
        cfgmap_from_fabric = self.zm.driver._get_active_zone_set(conn)
        conn.cleanup()
    elif (driver_vendor == 'cisco'):
        (fabric_ip, fabric_user, fabric_pwd, fabric_port, zoning_vsan) = self._get_cisco_config(fabric)
        cfgmap_from_fabric = self.zm.driver.get_active_zone_set(fabric_ip, fabric_user, fabric_pwd, fabric_port, zoning_vsan)
    else:
        msg = ('Unsupported fabric, vendor name: %s.' % driver_vendor)
        LOG.error(msg)
        raise exception.VolumeBackendAPIException(data=msg)
    return cfgmap_from_fabric