'Configure the iSCSI target to meet the environment.'

def set_target_mode(self, port, gid):

    hostmode_setting = []
    hostmode_setting[:] = _ISCSI_LINUX_MODE_OPTS
    hostmode_setting.append(_ISCSI_HOST_MODE_OPT)
    hostmode_setting.append(_ISCSI_HMO_REPORT_FULL_PORTAL)
    self.run_raidcom('modify', 'host_grp', '-port', '-'.join([port, gid]), *hostmode_setting)
