The cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory Module

Infortrend basic CLI factory.

class BaseCommand

Bases: object

The BaseCommand abstract class.

execute(*args, **kwargs)
class CLIBaseCommand(cli_conf)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.BaseCommand

The CLIBaseCommand class.

execute(*args, **kwargs)
set_ip(ip)

Set the Raid’s ip.

class CreateIQN(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.CLIBaseCommand

Create host iqn for CHAP or lun filter.

create iqn [IQN] [IQN-alias-name] [user={username}] [password={secret}]
[target={name}] [target-password={secret}] [ip={ip-address}] [mask={netmask-ip}]
class CreateLD(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.CLIBaseCommand

The Create LD Command.

class CreateLV(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.CLIBaseCommand

The Create LV Command.

class CreateMap(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.CLIBaseCommand

Map the Partition on the channel.

create map [part] [partition-ID] [Channel-ID]
[Target-ID] [LUN-ID] [assign={assign-to}]
class CreatePartition(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.CLIBaseCommand

Create Partition.

create part [LV-ID] [name] [size={partition-size}]
[min={minimal-reserve-size}] [init={switch}] [tier={tier-level-list}]
class CreateReplica(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.CLIBaseCommand

Create partition or snapshot’s replica.

create replica [name] [part | si] [source-volume-ID]
[part] [target-volume-ID] [type={replication-mode}] [priority={level}] [desc={description}] [incremental={switch}] [timeout={value}] [compression={switch}]
class CreateSnapshot(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.CLIBaseCommand

Create partition’s Snapshot.

create si [part] [partition-ID]

class DeleteIQN(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.CLIBaseCommand

Delete host iqn by name.

delete iqn [name]

class DeleteMap(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.CLIBaseCommand

Unmap the Partition on the channel.

delete map [part] [partition-ID] [Channel-ID]
[Target-ID] [LUN-ID] [-y]
class DeletePartition(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.CLIBaseCommand

Delete Partition.

delete part [partition-ID] [-y]

class DeleteReplica(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.CLIBaseCommand

Delete and terminate specific replication job.

delete replica [volume-pair-ID] [-y]

class DeleteSnapshot(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.CLIBaseCommand

Delete partition’s Snapshot.

delete si [snapshot-image-ID] [-y]

class ExecuteCommand(cli_conf)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.BaseCommand

The Common ExecuteCommand.

execute(*args, **kwargs)
class SetPartition(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.CLIBaseCommand

Set Partition.

set part [partition-ID] [name={partition-name}]
         [min={minimal-reserve-size}]
set part expand [partition-ID] [size={expand-size}]
set part purge [partition-ID] [number] [rule-type]
set part reclaim [partition-ID]
class ShowChannel(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.ShowCommand

Show Channel.

show channel

class ShowCommand(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.CLIBaseCommand

Basic Show Command.

detect_detail_start_index(content)
detect_table_start_index(content)
detect_type()
class ShowDevice(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.ShowCommand

Show Device.

show device

class ShowDisk(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.ShowCommand

The Show Disk Command.

show disk [disk-index-list | channel={ch}]

class ShowIQN(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.ShowCommand

Show iSCSI initiator IQN which is set by create iqn.

show iqn

LIST_START_LINE = 'List of initiator IQN(s):'
detect_detail_start_index(content)
class ShowLD(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.ShowCommand

Show LD.

show ld [index-list]

class ShowLV(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.ShowCommand

Show LV.

show lv [lv={LV-IDs}] [-l]

detect_table_start_index(content)
class ShowLicense(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.ShowCommand

Show License.

show license

class ShowMap(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.ShowCommand

Show Map.

show map [part={partition-IDs} | channel={channel-IDs}] [-l]

class ShowNet(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.ShowCommand

Show IP network.

show net [id={channel-IDs}] [-l]

class ShowPartition(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.ShowCommand

Show Partition.

show part [part={partition-IDs} | lv={LV-IDs}] [-l]

class ShowReplica(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.ShowCommand

Show information of all replication jobs or specific job.

show replica [id={volume-pair-IDs}] [-l] id={volume-pair-IDs}

class ShowSnapshot(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.ShowCommand

Show Snapshot.

show si [si={snapshot-image-IDs} | part={partition-IDs} | lv={LV-IDs}] [-l]

class ShowWWN(*args, **kwargs)

Bases: cinder.volume.drivers.infortrend.raidcmd_cli.cli_factory.ShowCommand

Show Fibre network.

show wwn

content_lines_to_dict(content_lines)
retry_cli(func)
strip_empty_in_list(list)
table_to_dict(table)
util_execute(command_line)