Exemple #1
0
def get_oem_handler(oemid, ipmicmd):
    try:
        #依据id号获得厂商对应的Handler对象
        return oemmap[oemid['manufacturer_id']].OEMHandler(oemid, ipmicmd)
    except KeyError:
        #未识别的vonder
        return generic.OEMHandler(oemid, ipmicmd)
Exemple #2
0
def get_oem_handler(oemid, ipmicmd, snmpcmd):
    try:
        #Treat the Reno (x3750M4) as IBM server
        if oemid['product_id'] == 309:
            oemid['manufacturer_id'] = 20301
        return oemmap[oemid['manufacturer_id']].OEMHandler(
            oemid, ipmicmd, snmpcmd)
    except KeyError:
        return generic.OEMHandler(oemid, ipmicmd, snmpcmd)
Exemple #3
0
def get_oem_handler(oemid, ipmicmd):
    try:
        return (oemmap[oemid['manufacturer_id']].OEMHandler(oemid, ipmicmd),
                True)
    except KeyError:
        return generic.OEMHandler(oemid, ipmicmd), False