From 01ac98c70294d3805aad3bb4bc57fe995eb3c22a Mon Sep 17 00:00:00 2001 From: Stefan Reiter Date: Mon, 4 May 2020 12:58:40 +0200 Subject: [PATCH] api: register /nodes/X/cpu call for CPU models Signed-off-by: Stefan Reiter --- PVE/API2/Nodes.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm index 9008dcad..bbffb7c4 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;