Exemplo n.º 1
0
def get_SCSIidlist(devconfig, sm_config):
    SCSIidlist = []
    if sm_config.has_key("SCSIid"):
        SCSIidlist = sm_config["SCSIid"].split(",")
    elif devconfig.has_key("SCSIid"):
        SCSIidlist.append(devconfig["SCSIid"])
    else:
        for key in sm_config:
            if util._isSCSIid(key):
                SCSIidlist.append(re.sub("^scsi-", "", key))
    return SCSIidlist
Exemplo n.º 2
0
def get_SCSIidlist(devconfig, sm_config):
    SCSIidlist = []
    if sm_config.has_key('SCSIid'):
        SCSIidlist = sm_config['SCSIid'].split(',')
    elif devconfig.has_key('SCSIid'):
        SCSIidlist.append(devconfig['SCSIid'])
    else:
        for key in sm_config:
            if util._isSCSIid(key):
                SCSIidlist.append(re.sub("^scsi-","",key))
    return SCSIidlist
Exemplo n.º 3
0
def get_SCSIidlist(devconfig, sm_config):
    SCSIidlist = []
    if sm_config.has_key('SCSIid'):
        SCSIidlist = sm_config['SCSIid'].split(',')
    elif devconfig.has_key('SCSIid'):
        SCSIidlist.append(devconfig['SCSIid'])
    elif devconfig.has_key('provider'):
        SCSIidlist.append(devconfig['ScsiId'])
    else:
        for key in sm_config:
            if util._isSCSIid(key):
                SCSIidlist.append(re.sub("^scsi-","",key))
    return SCSIidlist
Exemplo n.º 4
0
def get_SCSIidlist(devconfig, sm_config):
    SCSIidlist = []
    if 'SCSIid' in sm_config:
        SCSIidlist = sm_config['SCSIid'].split(',')
    elif 'SCSIid' in devconfig:
        SCSIidlist.append(devconfig['SCSIid'])
    elif 'provider' in devconfig:
        SCSIidlist.append(devconfig['ScsiId'])
    else:
        for key in sm_config:
            if util._isSCSIid(key):
                SCSIidlist.append(re.sub("^scsi-", "", key))
    return SCSIidlist