[pve-devel] [PATCH manager 2/2] add star/stop/migrateall commands to pvenode
Dominik Csapak
d.csapak at proxmox.com
Tue Jun 19 14:27:37 CEST 2018
under pvenode guests bulkstart/stop/migrate
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
PVE/CLI/pvenode.pm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/PVE/CLI/pvenode.pm b/PVE/CLI/pvenode.pm
index e3bc884e..2ae20ca0 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,12 @@ our $cmddef = {
set => [ 'PVE::API2::NodeConfig', 'set_options', [], { node => $nodename } ],
},
+ guests => {
+ bulkstart => [ 'PVE::API2::Nodes::Nodeinfo', 'startall', [], { node => $nodename } ],
+ bulkstop => [ 'PVE::API2::Nodes::Nodeinfo', 'stopall', [], { node => $nodename } ],
+ bulkmigrate => [ '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