Ejemplo n.º 1
0
                         version='%(prog)s 1.0',
                         help='show version number of program and exit')


def display_version():
    print common.get_viprcli_version()


# register module specific parsers with the common_parser
module_parsers = main_parser.add_subparsers(help='Use One Of Commands')

volumegroup.volume_group_parser(module_parsers, common_parser)
authentication.authenticate_parser(module_parsers, vipr_ip, vipr_port, vipr_username, vipr_password, vipr_proxy_token)
authentication.logout_parser(module_parsers, vipr_ip, vipr_port)
authentication.authentication_parser(module_parsers, common_parser)
approval.approval_parser(module_parsers, common_parser)
assetoptions.assetoptions_parser(module_parsers, common_parser)
catalog.catalog_parser(module_parsers, common_parser)
executionwindow.executionwindow_parser(module_parsers, common_parser)
order.order_parser(module_parsers, common_parser)
task.task_parser(module_parsers, common_parser)
event.event_parser(module_parsers, common_parser)
virtualpool.vpool_parser(module_parsers, common_parser)
tenant.tenant_parser(module_parsers, common_parser)
project.project_parser(module_parsers, common_parser)
fileshare.fileshare_parser(module_parsers, common_parser)
snapshot.snapshot_parser(module_parsers, common_parser)
volume.volume_parser(module_parsers, common_parser)
consistencygroup.consistencygroup_parser(module_parsers, common_parser)
storagepool.storagepool_parser(module_parsers, common_parser)
metering.meter_parser(module_parsers, common_parser)
Ejemplo n.º 2
0
                         action='version',
                         version='%(prog)s 1.0',
                         help='show version number of program and exit')


def display_version():
    print common.get_viprcli_version()


# register module specific parsers with the common_parser
module_parsers = main_parser.add_subparsers(help='Use One Of Commands')

authentication.authenticate_parser(module_parsers, vipr_ip, vipr_port)
authentication.logout_parser(module_parsers, vipr_ip, vipr_port)
authentication.authentication_parser(module_parsers, common_parser)
approval.approval_parser(module_parsers, common_parser)
assetoptions.assetoptions_parser(module_parsers, common_parser)
catalog.catalog_parser(module_parsers, common_parser)
executionwindow.executionwindow_parser(module_parsers, common_parser)
order.order_parser(module_parsers, common_parser)
virtualpool.vpool_parser(module_parsers, common_parser)
tenant.tenant_parser(module_parsers, common_parser)
project.project_parser(module_parsers, common_parser)
fileshare.fileshare_parser(module_parsers, common_parser)
snapshot.snapshot_parser(module_parsers, common_parser)
volume.volume_parser(module_parsers, common_parser)
consistencygroup.consistencygroup_parser(module_parsers, common_parser)
storagepool.storagepool_parser(module_parsers, common_parser)
metering.meter_parser(module_parsers, common_parser)
monitoring.monitor_parser(module_parsers, common_parser)
storageprovider.storageprovider_parser(module_parsers, common_parser)