'Validate that the configured host-type is available for the array.
Not all host-types are available on every firmware version.'

def _check_host_type(self):

    requested_host_type = (self.configuration.netapp_host_type or self.DEFAULT_HOST_TYPE)
    actual_host_type = self.HOST_TYPES.get(requested_host_type, requested_host_type)
    for host_type in self._client.list_host_types():
        if ((host_type.get('code') == actual_host_type) or (host_type.get('name') == actual_host_type)):
            self.host_type = host_type.get('code')
            return
    exc_msg = _("The    host-type    '%s'    is    not    supported    on    this    storage    system.")
    raise exception.NetAppDriverException((exc_msg % requested_host_type))
