]> git.proxmox.com Git - pve-ha-manager.git/commit
factor out and unify sim_hardware_cmd
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 19 Jan 2017 12:32:46 +0000 (13:32 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 24 Jan 2017 08:50:40 +0000 (09:50 +0100)
commite08a0717de46cc67bcf22472ab874698df41c31b
tree539b0ad94db5c95e7dfc51a37a65961d3087d774
parentd49a8daac8979673ca1c5bd0dc29989214751d38
factor out and unify sim_hardware_cmd

Most things done by sim_hardware_cmd are already abstracted and
available in both, the TestHardware and the RTHardware class.

Abstract out the CRM and LRM control to allow the unification of both
classes sim_hardware_cmd.

As in the last year mostly the regression test systems TestHardware
class saw new features use it as base.

We return now the current status out of the locked context, this
allows to update the simulators GUI out of the locked context.

This changes increases the power of the HA Simulator, but the new
possible actions must be still implemented in its GUI. This will be
done in future patches.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/Sim/Hardware.pm
src/PVE/HA/Sim/RTHardware.pm
src/PVE/HA/Sim/TestHardware.pm