def _get_nameserver_info(self, fabric):
    driver_vendor = self._get_fabric_vendor()
    if (driver_vendor == 'brocade'):
        nsinfo = self._get_brcd_nsinfo(fabric)
    elif (driver_vendor == 'cisco'):
        nsinfo = self._get_cisco_nsinfo(fabric)
    else:
        msg = ('Unsupported fabric, vendor name: %s.' % driver_vendor)
        LOG.error(msg)
        raise exception.VolumeBackendAPIException(data=msg)
    return nsinfo
def _get_nameserver_info(self, fabric):
    driver_vendor = self._get_fabric_vendor()
    if (driver_vendor == 'brocade'):
        nsinfo = self._get_brcd_nsinfo(fabric)
    elif (driver_vendor == 'cisco'):
        nsinfo = self._get_cisco_nsinfo(fabric)
    else:
        msg = ('Unsupported fabric, vendor name: %s.' % driver_vendor)
        LOG.error(msg)
        raise exception.VolumeBackendAPIException(data=msg)
    return nsinfo