]> git.proxmox.com Git - pve-ha-manager.git/blobdiff - src/PVE/HA/Sim/Hardware.pm
add CRM command to switch an online node manually into maintenance without reboot
[pve-ha-manager.git] / src / PVE / HA / Sim / Hardware.pm
index e72c87f80a04c807986a0ffcf589f7e75101488b..9c63b3f5fefdb29e0d9026a3ab203695f5186cde 100644 (file)
@@ -663,6 +663,8 @@ sub sim_hardware_cmd {
                }
            } elsif ($action eq 'start') {
                $d->{crm} = $self->crm_control('start', $d, $lock_fh) if !defined($d->{crm});
+           } elsif ($action eq 'enable-node-maintenance' || $action eq 'disable-node-maintenance') {
+               $self->queue_crm_commands_nolock("$action $node");
            } else {
                die "sim_hardware_cmd: unknown action '$action'";
            }