]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
Add suspend/resume support to pvectl
authorDan Hunsaker <danhunsaker@gmail.com>
Wed, 8 Oct 2014 23:02:06 +0000 (17:02 -0600)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 9 Oct 2014 07:23:55 +0000 (09:23 +0200)
Now that the API supports CT suspend/resume, it makes sense to have pvectl
support it, too.  It *does* use different names than vzctl does, but it
seems to make sense to be consistent with the API naming in a PVE utility.

Signed-off-by: Dan Hunsaker <danhunsaker@gmail.com>
bin/pvectl

index f8ae3ad12a9cb7e3278d2f45dd23f779dea469d4..8f2643d95f2731d5d38b4053e6052821e000a081 100755 (executable)
@@ -74,6 +74,8 @@ my $cmddef = {
                }],
 
     start => [ 'PVE::API2::OpenVZ', 'vm_start', ['vmid'], { node => $nodename }, $upid_exit],
+    suspend => [ 'PVE::API2::OpenVZ', 'vm_suspend', ['vmid'], { node => $nodename }, $upid_exit],
+    resume => [ 'PVE::API2::OpenVZ', 'vm_resume', ['vmid'], { node => $nodename }, $upid_exit],
     shutdown => [ 'PVE::API2::OpenVZ', 'vm_shutdown', ['vmid'], { node => $nodename }, $upid_exit],
     stop => [ 'PVE::API2::OpenVZ', 'vm_stop', ['vmid'], { node => $nodename }, $upid_exit],
     mount => [ 'PVE::API2::OpenVZ', 'vm_mount', ['vmid'], { node => $nodename }, $upid_exit],