The nova.virt.powervm.lpar Module

PowerVM Logical Partition (LPAR)

PowerVM LPAR configuration attributes.

class LPAR(**kwargs)

Bases: object

Simple class representing a logical partition and the attributes for the partition and/or its selected profile.

LPAR_ATTRS = ('name', 'lpar_id', 'lpar_env', 'state', 'resource_config', 'os_version', 'logical_serial_num', 'default_profile', 'profile_name', 'curr_profile', 'work_group_id', 'allow_perf_collection', 'power_ctrl_lpar_ids', 'boot_mode', 'lpar_keylock', 'auto_start', 'uptime', 'lpar_avail_priority', 'desired_lpar_proc_compat_mode', 'curr_lpar_proc_compat_mode', 'virtual_eth_mac_base_value', 'rmc_ipaddr')
LPAR_PROFILE_ATTRS = ('name', 'lpar_name', 'lpar_id', 'os_type', 'all_resources', 'mem_mode', 'min_mem', 'desired_mem', 'max_mem', 'proc_mode', 'min_proc_units', 'desired_proc_units', 'max_proc_units', 'min_procs', 'desired_procs', 'max_procs', 'sharing_mode', 'uncap_weight', 'io_slots', 'lpar_io_pool_ids', 'max_virtual_slots', 'virtual_serial_adapters', 'virtual_scsi_adapters', 'virtual_eth_adapters', 'boot_mode', 'conn_monitoring', 'auto_start', 'power_ctrl_lpar_ids', 'lhea_logical_ports', 'lhea_capabilities', 'lpar_proc_compat_mode', 'virtual_fc_adapters')
to_string(exclude_attribs=[])
load_from_conf_data(conf_data)

LPAR configuration data parser.

The configuration data is a string representation of the attributes of a Logical Partition. The attributes consists of name/value pairs, which are in command separated value format. Example format: name=lpar_name,lpar_id=1,lpar_env=aixlinux

Parameters:conf_data – string containing the LPAR configuration data.
Returns:LPAR – LPAR object.

Previous topic

The nova.virt.powervm.exception Module

Next topic

The nova.virt.powervm.operator Module

This Page