[pve-devel] [PATCH manager v2 2/2] add star/stop/migrateall commands to pvenode

Dominik Csapak d.csapak at proxmox.com
Wed Jun 27 10:44:55 CEST 2018


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
changes from v1:
* use pvenode start/stop/migrateall instead of pvenode guests bulkstart/stop/migrate
  so that we are consistent with the api
 PVE/CLI/pvenode.pm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/PVE/CLI/pvenode.pm b/PVE/CLI/pvenode.pm
index e3bc884e..cf687666 100644
--- a/PVE/CLI/pvenode.pm
+++ b/PVE/CLI/pvenode.pm
@@ -7,6 +7,7 @@ use PVE::API2::ACME;
 use PVE::API2::ACMEAccount;
 use PVE::API2::Certificates;
 use PVE::API2::NodeConfig;
+use PVE::API2::Nodes;
 
 use PVE::CertHelpers;
 use PVE::Certificate;
@@ -165,6 +166,10 @@ our $cmddef = {
         set => [ 'PVE::API2::NodeConfig', 'set_options', [], { node => $nodename } ],
     },
 
+    startall => [ 'PVE::API2::Nodes::Nodeinfo', 'startall', [], { node => $nodename } ],
+    stopall => [ 'PVE::API2::Nodes::Nodeinfo', 'stopall', [], { node => $nodename } ],
+    migrateall => [ 'PVE::API2::Nodes::Nodeinfo', 'migrateall', [ 'target' ], { node => $nodename } ],
+
     cert => {
 	info => [ 'PVE::API2::Certificates', 'info', [], { node => $nodename }, sub {
 	    my ($res) = @_;
-- 
2.11.0





More information about the pve-devel mailing list