[pve-devel] [PATCH v2 manager 3/6] api: register /nodes/X/cpu call for CPU models
Stefan Reiter
s.reiter at proxmox.com
Mon May 4 12:58:40 CEST 2020
Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
---
Depends on updated qemu-server.
PVE/API2/Nodes.pm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index 58497b2b..2ac838ea 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -34,6 +34,7 @@ use PVE::API2::Tasks;
use PVE::API2::Scan;
use PVE::API2::Storage::Status;
use PVE::API2::Qemu;
+use PVE::API2::Qemu::CPU;
use PVE::API2::LXC;
use PVE::API2::LXC::Status;
use PVE::API2::VZDump;
@@ -65,6 +66,11 @@ __PACKAGE__->register_method ({
path => 'qemu',
});
+__PACKAGE__->register_method ({
+ subclass => "PVE::API2::Qemu::CPU",
+ path => 'cpu',
+});
+
__PACKAGE__->register_method ({
subclass => "PVE::API2::LXC",
path => 'lxc',
@@ -241,6 +247,7 @@ __PACKAGE__->register_method ({
{ name => 'certificates' },
{ name => 'config' },
{ name => 'hosts' },
+ { name => 'cpu' },
];
push @$result, { name => 'sdn' } if $have_sdn;
--
2.20.1
More information about the pve-devel
mailing list