cmdline.py File Reference

Go to the source code of this file.

Data Structures

class  ArgError
 This class represents a command line argument error. More...
class  CmdLine
 Class that encapsulates the command line arguments for lsmcli Note: This class is used by lsmcli and any python plug-ins. More...

Namespaces

namespace  lsmcli::cmdline

Functions

def cmd_line_wrapper
 Wraps the invocation to the command line.
def getch
 Get a character from stdin without needing a return key pressed.
def parse_convert_init

Variables

list list_choices
tuple provision_types = ('DEFAULT', 'THIN', 'FULL')
string provision_help = "provisioning type: "
tuple replicate_types = ('CLONE', 'COPY', 'MIRROR_ASYNC', 'MIRROR_SYNC')
string replicate_help = "replication type: "
string size_help = 'Can use B, KiB, MiB, GiB, TiB, PiB postfix (IEC sizing)'
tuple sys_id_opt = dict(name='--sys', metavar='<SYS_ID>', help='System ID')
tuple sys_id_filter_opt = sys_id_opt.copy()
tuple pool_id_opt = dict(name='--pool', metavar='<POOL_ID>', help='Pool ID')
tuple pool_id_filter_opt = pool_id_opt.copy()
tuple vol_id_opt = dict(name='--vol', metavar='<VOL_ID>', help='Volume ID')
tuple vol_id_filter_opt = vol_id_opt.copy()
tuple fs_id_opt = dict(name='--fs', metavar='<FS_ID>', help='File System ID')
tuple ag_id_opt = dict(name='--ag', metavar='<AG_ID>', help='Access Group ID')
tuple ag_id_filter_opt = ag_id_opt.copy()
tuple init_id_opt = dict(name='--init', metavar='<INIT_ID>', help='Initiator ID')
tuple snap_id_opt = dict(name='--snap', metavar='<SNAP_ID>', help='Snapshot ID')
tuple export_id_opt = dict(name='--export', metavar='<EXPORT_ID>', help='Export ID')
tuple nfs_export_id_filter_opt
tuple disk_id_filter_opt
tuple size_opt = dict(name='--size', metavar='<SIZE>', help=size_help)
tuple tgt_id_opt
tuple cmds
tuple aliases

Generated on 9 Jul 2015 for libStorageMgmt by  doxygen 1.6.1