'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.'

def is_supported_firmware(self):

    cmd = ['version']
    firmware = 0
    try:
        (stdout, stderr) = self._execute_shell_cmd(cmd)
        if stdout:
            for line in stdout:
                if ('Fabric    OS:        v' in line):
                    LOG.debug('Firmware    version    string:    %s', line)
                    ver = line.split('Fabric    OS:        v')[1].split('.')
                    if ver:
                        firmware = int((ver[0] + ver[1]))
            return (firmware > 63)
        else:
            LOG.error('No    CLI    output    for    firmware    version    check')
            return False
    except processutils.ProcessExecutionError as e:
        msg = (_('Error    while    getting    data    via    ssh:    (command=%(cmd)s    error=%(err)s).') % {'cmd': cmd, 'err': six.text_type(e)})
        LOG.error(msg)
        raise exception.BrocadeZoningCliException(reason=msg)
