]> git.proxmox.com Git - pve-ha-manager.git/commitdiff
sim: hardware: update & reformat comment for available commands
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 1 Jul 2021 13:59:18 +0000 (15:59 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 1 Jul 2021 14:00:51 +0000 (16:00 +0200)
The service addition and deletion, and also the artificial delay
(useful to force continuation of the HW) commands where missing
completely.

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

index 121cd1b1cf3093f429701266c8422b149b63499f..ba731e501ed7dd0760340aa2fdb6b38130e65aac 100644 (file)
@@ -532,18 +532,19 @@ sub get_cfs_state {
     return !defined($res) || $res;
 }
 
-# simulate hardware commands
-# power <node> <on|off>
-# network <node> <on|off>
-# cfs <node> <rw|update> <work|fail>
-# reboot <node>
-# shutdown <node>
-# restart-lrm <node>
-# service <sid> <started|disabled|stopped|ignored>
-# service <sid> <migrate|relocate> <target>
-# service <sid> stop <timeout>
-# service <sid> lock/unlock [lockname]
-
+# simulate hardware commands, the following commands are available:
+#   power <node> <on|off>
+#   network <node> <on|off>
+#   delay <seconds>
+#   cfs <node> <rw|update> <work|fail>
+#   reboot <node>
+#   shutdown <node>
+#   restart-lrm <node>
+#   service <sid> <started|disabled|stopped|ignored>
+#   service <sid> <migrate|relocate> <target>
+#   service <sid> stop <timeout>
+#   service <sid> lock/unlock [lockname]
+#   service <sid> <add|delete>
 sub sim_hardware_cmd {
     my ($self, $cmdstr, $logid) = @_;