def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'boot_order' options['boot_list'] = options['boot_list'].split(',') _bmc_common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'add_user' _bmc_common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'bmc_factory_defaults' _bmc_common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'get_all_users' _bmc_common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'set_settings' _bmc_common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'power_cycle' _bmc_common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'bmc_reset' _bmc_common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'pass_change' if not options['change_username']: raise CommandError(_('Username to have password changed missing')) if not options['newpass']: raise CommandError(_('New password for username missing')) _bmc_common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' if options['force']: options['command'] = 'power_off' else: options['command'] = 'power_off_acpi' _bmc_common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'firmware_update' if not options['firmware_location']: raise CommandError(_('Firmware location missing. -f needed. See help')) if not isfile(options['firmware_location']): raise CommandError(_('Firmware file not found. Check command input')) _bmc_common.handle(self, *args, **options)
def handle(self, *args, **options): """ Handle command """ options["command"] = "get_all_users" result = _bmc_common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'firmware_update' if not options['firmware_location']: raise CommandError( _('Firmware location missing. -f needed. See help')) if not isfile(options['firmware_location']): raise CommandError( _('Firmware file not found. Check command input')) _bmc_common.handle(self, *args, **options)
def handle(self, *args, **options): """ Handle command """ options["command"] = "power_reset" result = _bmc_common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'remove_user' result = _bmc_common.handle(self, *args, **options)
def handle(self, *args, **options): """ Handle command """ options["command"] = "boot_order" options["boot_list"] = options["boot_list"].split(",") result = _bmc_common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'pass_change' result = _bmc_common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'license_set' result = _bmc_common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'power_on' result = _bmc_common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'set_ldap_settings' for s in options.keys(): if s == 'contexts' and options['contexts'] is not None: options['contexts'] = options['contexts'].split(':') if s == 'groupnames' and options['groupnames'] is not None: options['groupnames'] = options['groupnames'].split(':') if s == 'groupprivs' and options['groupprivs'] is not None: options['groupprivs'] = options['groupprivs'].split(':') if s == 'groupsids' and options['groupsids'] is not None: options['groupsids'] = options['groupsids'].split(':') _bmc_common.handle(self, *args, **options)
def handle(self, *args, **options): ''' Handle command ''' options['command'] = 'set_ldap_settings' for s in options.keys(): if s == 'contexts' and options['contexts'] is not None: options['contexts'] = options['contexts'].split(':') if s == 'groupnames' and options['groupnames'] is not None: options['groupnames'] = options['groupnames'].split(':') if s == 'groupprivs' and options['groupprivs'] is not None: options['groupprivs'] = options['groupprivs'].split(':') if s == 'groupsids' and options['groupsids'] is not None: options['groupsids'] = options['groupsids'].split(':') result = _bmc_common.handle(self, *args, **options)