Bases: object
BareMetalDom class handles fake domain for bare metal back ends.
This implements the singleton pattern.
Changes domain state by the given state and updates domain file.
Adds a domain to domains list and activates an idle bare-metal node.
Removes domain from domains list and deactivates node.
Finds domain by the given name and returns the domain.
Finds domain by the given instance_name and returns informaiton.
For example, status, memory_kb, vcpus, etc.
Returns the instance name from domains list.
Finds domain and deactivates (power down) bare-metal node.
Activates the node again. In case of fail, destroys the domain from domains list.
Stores fake domains to the file.