COT.edit_hardware module

Module for editing hardware details of a VM.

Classes

COTEditHardware Edit hardware information (CPUs, RAM, NICs, etc.).
class COTEditHardware(UI)[source]

Bases: COT.submodule.COTSubmodule

Edit hardware information (CPUs, RAM, NICs, etc.).

Inherited attributes: UI, package, output

Attributes: profiles, cpus, memory, nics, nic_type, mac_addresses_list, nic_networks, nic_names, serial_ports, serial_connectivity, scsi_subtype, ide_subtype, virtual_system_type

create_subparser(parent, storage)[source]

Add subparser for the CLI of this submodule.

Parameters:
  • parent (object) – Subparser grouping object returned by ArgumentParser.add_subparsers()
  • storage (dict) – Dict of { ‘label’: subparser } to be updated with subparser(s) created, if any.
ready_to_run()[source]

Check whether the module is ready to run().

Returns:(True, ready_message) or (False, reason_why_not)
run()[source]

Do the actual work of this submodule.

Raises InvalidInputError:
 if ready_to_run() reports False
cpus[source]

Number of CPUs to set.

ide_subtype = None

Subtype string for IDE controllers

mac_addresses_list = None

List of MAC addresses to set.

memory[source]

Amount of RAM (in megabytes) to set.

nic_names = None

List of NIC name strings

nic_networks = None

List of NIC-to-network mappings.

nic_type[source]

NIC type string to set.

nics[source]

Number of NICs to set.

profiles = None

Configuration profile(s) to edit.

scsi_subtype = None

Subtype string for SCSI controllers

serial_connectivity = None

List of serial connection strings.

serial_ports[source]

Serial port count to set.

virtual_system_type = None

Virtual system type