def parse_ipmi_bmc(output):
    """Parse the output of the bmc info retrieved with ipmitool"""
    hrdw = []

    for line in output:
        items = line.split(':')
        if len(items) < 2:
            continue
        if items[0].lower().startswith('firmware revision'):
            hrdw.append(('firmware', 'bmc', 'version', items[1].strip()))
        elif items[0].lower().startswith('manufacturer name'):
            hrdw.append(('firmware', 'bmc', 'vendor', items[1].strip()))

    return hrdw