def __map_explicit(devices): for device in devices: realpath = os.path.realpath(device) base = os.path.basename(realpath) util.SMlog("Adding mpath path '%s'" % base) try: mpath_cli.add_path(base) except: util.SMlog("WARNING: exception raised while attempting to add path %s" % base)
def __map_explicit(devices): for device in devices: realpath = os.path.realpath(device) base = os.path.basename(realpath) util.SMlog("Adding mpath path '%s'" % base) try: mpath_cli.add_path(base) except: util.SMlog( "WARNING: exception raised while attempting to add path %s" % base)
def add(scsi_id): devices = scsiutil._genReverseSCSIidmap(scsi_id) for device in devices: realpath = os.path.realpath(device) base = os.path.basename(realpath) mpath_cli.add_path(base)