Data Structures | |
class | PlugData |
class | VolumeRAIDInfo |
class | PoolRAIDInfo |
class | VcrCap |
class | DisplayData |
Functions | |
def | out |
Users are reporting errors with broken pipe when piping output to another program. | |
def | system_status_to_str |
def | pool_status_to_str |
def | pool_element_type_to_str |
def | pool_unsupported_actions_to_str |
def | vol_provision_str_to_type |
def | vol_admin_state_to_str |
def | vol_rep_type_str_to_type |
def | disk_type_to_str |
def | disk_status_to_str |
def | ag_init_type_to_str |
def | ag_init_type_str_to_lsm |
def | tgt_port_type_to_str |
Variables | |
string | BIT_MAP_STRING_SPLITTER = ',' |
dictionary | _SYSTEM_STATUS_CONV |
dictionary | _POOL_STATUS_CONV |
dictionary | _POOL_ELEMENT_TYPE_CONV |
dictionary | _POOL_UNSUPPORTED_ACTION_CONV |
dictionary | _VOL_PROVISION_CONV |
dictionary | _VOL_ADMIN_STATE_CONV |
dictionary | _VOL_REP_TYPE_CONV |
dictionary | _DISK_TYPE_CONV |
dictionary | _DISK_STATUS_CONV |
dictionary | _AG_INIT_TYPE_CONV |
dictionary | _TGT_PORT_TYPE_CONV |
def lsmcli::data_display::ag_init_type_str_to_lsm | ( | init_type_str | ) |
Definition at line 223 of file data_display.py.
def lsmcli::data_display::ag_init_type_to_str | ( | init_type | ) |
Definition at line 219 of file data_display.py.
def lsmcli::data_display::disk_status_to_str | ( | disk_status | ) |
Definition at line 206 of file data_display.py.
def lsmcli::data_display::disk_type_to_str | ( | disk_type | ) |
Definition at line 184 of file data_display.py.
def lsmcli::data_display::out | ( | msg | ) |
Users are reporting errors with broken pipe when piping output to another program.
This appears to be related to this issue: http://bugs.python.org/issue11380 Unable to reproduce, but hopefully this will address it.
msg | The message to be written to stdout |
Definition at line 38 of file data_display.py.
def lsmcli::data_display::pool_element_type_to_str | ( | element_type | ) |
Definition at line 124 of file data_display.py.
def lsmcli::data_display::pool_status_to_str | ( | pool_status | ) |
Definition at line 104 of file data_display.py.
def lsmcli::data_display::pool_unsupported_actions_to_str | ( | unsupported_actions | ) |
Definition at line 128 of file data_display.py.
def lsmcli::data_display::system_status_to_str | ( | system_status | ) |
Definition at line 86 of file data_display.py.
def lsmcli::data_display::tgt_port_type_to_str | ( | port_type | ) |
Definition at line 235 of file data_display.py.
def lsmcli::data_display::vol_admin_state_to_str | ( | vol_admin_state | ) |
Definition at line 150 of file data_display.py.
def lsmcli::data_display::vol_provision_str_to_type | ( | vol_provision_str | ) |
Definition at line 140 of file data_display.py.
def lsmcli::data_display::vol_rep_type_str_to_type | ( | vol_rep_type_str | ) |
Definition at line 163 of file data_display.py.
dictionary _AG_INIT_TYPE_CONV |
{ AccessGroup.INIT_TYPE_UNKNOWN: 'Unknown', AccessGroup.INIT_TYPE_OTHER: 'Other', AccessGroup.INIT_TYPE_WWPN: 'WWPN', AccessGroup.INIT_TYPE_ISCSI_IQN: 'iSCSI', AccessGroup.INIT_TYPE_ISCSI_WWPN_MIXED: 'iSCSI/WWPN Mixed', }
Definition at line 210 of file data_display.py.
dictionary _DISK_STATUS_CONV |
{ Disk.STATUS_UNKNOWN: 'Unknown', Disk.STATUS_OK: 'OK', Disk.STATUS_OTHER: 'Other', Disk.STATUS_PREDICTIVE_FAILURE: 'Predictive failure', Disk.STATUS_ERROR: 'Error', Disk.STATUS_REMOVED: 'Removed', Disk.STATUS_STARTING: 'Starting', Disk.STATUS_STOPPING: 'Stopping', Disk.STATUS_STOPPED: 'Stopped', Disk.STATUS_INITIALIZING: 'Initializing', Disk.STATUS_MAINTENANCE_MODE: 'Maintenance', Disk.STATUS_SPARE_DISK: 'Spare', Disk.STATUS_RECONSTRUCT: 'Reconstruct', Disk.STATUS_FREE: 'Free', }
Definition at line 188 of file data_display.py.
dictionary _DISK_TYPE_CONV |
{ Disk.TYPE_UNKNOWN: 'UNKNOWN', Disk.TYPE_OTHER: 'Other', Disk.TYPE_ATA: 'ATA', Disk.TYPE_SATA: 'SATA', Disk.TYPE_SAS: 'SAS', Disk.TYPE_FC: 'FC', Disk.TYPE_SOP: 'SCSI Over PCI-E(SSD)', Disk.TYPE_SCSI: 'SCSI', Disk.TYPE_NL_SAS: 'NL_SAS', Disk.TYPE_HDD: 'HDD', Disk.TYPE_SSD: 'SSD', Disk.TYPE_HYBRID: 'Hybrid', Disk.TYPE_LUN: 'Remote LUN', }
Definition at line 167 of file data_display.py.
dictionary _POOL_ELEMENT_TYPE_CONV |
{ Pool.ELEMENT_TYPE_POOL: 'POOL', Pool.ELEMENT_TYPE_VOLUME: 'VOLUME', Pool.ELEMENT_TYPE_VOLUME_THIN: 'VOLUME_THIN', Pool.ELEMENT_TYPE_VOLUME_FULL: 'VOLUME_FULL', Pool.ELEMENT_TYPE_FS: 'FS', Pool.ELEMENT_TYPE_SYS_RESERVED: 'SYSTEM_RESERVED', Pool.ELEMENT_TYPE_DELTA: "DELTA", }
Definition at line 108 of file data_display.py.
dictionary _POOL_STATUS_CONV |
{ Pool.STATUS_UNKNOWN: 'Unknown', Pool.STATUS_OK: 'OK', Pool.STATUS_OTHER: 'Other', Pool.STATUS_DEGRADED: 'Degraded', Pool.STATUS_ERROR: 'Error', Pool.STATUS_STOPPED: 'Stopped', Pool.STATUS_RECONSTRUCTING: 'Reconstructing', Pool.STATUS_VERIFYING: 'Verifying', Pool.STATUS_INITIALIZING: 'Initializing', Pool.STATUS_GROWING: 'Growing', }
Definition at line 90 of file data_display.py.
dictionary _POOL_UNSUPPORTED_ACTION_CONV |
{ Pool.UNSUPPORTED_VOLUME_GROW: "Volume Grow", Pool.UNSUPPORTED_VOLUME_SHRINK: "Volume Shrink" }
Definition at line 118 of file data_display.py.
dictionary _SYSTEM_STATUS_CONV |
{ System.STATUS_UNKNOWN: 'Unknown', System.STATUS_OK: 'OK', System.STATUS_ERROR: 'Error', System.STATUS_DEGRADED: 'Degraded', System.STATUS_PREDICTIVE_FAILURE: 'Predictive failure', System.STATUS_OTHER: 'Other', }
Definition at line 76 of file data_display.py.
dictionary _TGT_PORT_TYPE_CONV |
{ TargetPort.TYPE_OTHER: 'Other', TargetPort.TYPE_FC: 'FC', TargetPort.TYPE_FCOE: 'FCoE', TargetPort.TYPE_ISCSI: 'iSCSI', }
Definition at line 227 of file data_display.py.
dictionary _VOL_ADMIN_STATE_CONV |
{ Volume.ADMIN_STATE_DISABLED: 'Yes', Volume.ADMIN_STATE_ENABLED: 'No', }
Definition at line 144 of file data_display.py.
dictionary _VOL_PROVISION_CONV |
{ Volume.PROVISION_DEFAULT: 'DEFAULT', Volume.PROVISION_FULL: 'FULL', Volume.PROVISION_THIN: 'THIN', Volume.PROVISION_UNKNOWN: 'UNKNOWN', }
Definition at line 132 of file data_display.py.
dictionary _VOL_REP_TYPE_CONV |
{ Volume.REPLICATE_CLONE: 'CLONE', Volume.REPLICATE_COPY: 'COPY', Volume.REPLICATE_MIRROR_SYNC: 'MIRROR_SYNC', Volume.REPLICATE_MIRROR_ASYNC: 'MIRROR_ASYNC', Volume.REPLICATE_UNKNOWN: 'UNKNOWN', }
Definition at line 154 of file data_display.py.
string BIT_MAP_STRING_SPLITTER = ',' |
Definition at line 30 of file data_display.py.