def _get_brcd_nsinfo(self, fabric):
    conn = self.zm.driver._get_cli_client(fabric)
    try:
        nsinfo = conn.get_nameserver_info()
        LOG.debug('name server info from fabric: %s', nsinfo)
        conn.cleanup()
    except exception.BrocadeZoningCliException:
        if (not conn.is_supported_firmware()):
            msg = (_('Unsupported firmware on switch %s. Make sure switch is running firmware v6.4 or higher.') % conn.switch_ip)
            LOG.error(msg)
            raise exception.FCZoneDriverException(msg)
        with excutils.save_and_reraise_exception():
            LOG.exception(_LE('Error getting name server info.'))
    except Exception:
        msg = _('Failed to get name server info.')
        LOG.exception(msg)
        raise exception.FCZoneDriverException(msg)
    return nsinfo
def _get_brcd_nsinfo(self, fabric):
    conn = self.zm.driver._get_cli_client(fabric)
    try:
        nsinfo = conn.get_nameserver_info()
        LOG.debug('name server info from fabric: %s', nsinfo)
        conn.cleanup()
    except exception.BrocadeZoningCliException:
        if (not conn.is_supported_firmware()):
            msg = (_('Unsupported firmware on switch %s. Make sure switch is running firmware v6.4 or higher.') % conn.switch_ip)
            LOG.error(msg)
            raise exception.FCZoneDriverException(msg)
        with excutils.save_and_reraise_exception():
            LOG.exception(_LE('Error getting name server info.'))
    except Exception:
        msg = _('Failed to get name server info.')
        LOG.exception(msg)
        raise exception.FCZoneDriverException(msg)
    return nsinfo