The cinder.volume.targets.cxt Module

class CxtAdm(*args, **kwargs)

Bases: cinder.volume.targets.iscsi.ISCSITarget

Chiscsi target configuration for block storage devices.

This includes things like create targets, attach, detach etc.

TARGET_FMT = '\n target:\n TargetName=%s\n TargetDevice=%s\n PortalGroup=1@%s\n '
TARGET_FMT_WITH_CHAP = '\n target:\n TargetName=%s\n TargetDevice=%s\n PortalGroup=1@%s\n AuthMethod=CHAP\n Auth_CHAP_Policy=Oneway\n Auth_CHAP_Initiator=%s\n '
create_iscsi_target(name, tid, lun, path, chap_auth=None, **kwargs)
cxt_subdir = 'cxt'
remove_iscsi_target(tid, lun, vol_id, vol_name, **kwargs)

Previous topic

The cinder.volume.rpcapi Module

Next topic

The cinder.volume.targets.driver Module

This Page