mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 12:09:14 +00:00
api: register /nodes/X/cpu call for CPU models
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
parent
50ba40ec59
commit
01ac98c702
@ -34,6 +34,7 @@ use PVE::API2::Tasks;
|
|||||||
use PVE::API2::Scan;
|
use PVE::API2::Scan;
|
||||||
use PVE::API2::Storage::Status;
|
use PVE::API2::Storage::Status;
|
||||||
use PVE::API2::Qemu;
|
use PVE::API2::Qemu;
|
||||||
|
use PVE::API2::Qemu::CPU;
|
||||||
use PVE::API2::LXC;
|
use PVE::API2::LXC;
|
||||||
use PVE::API2::LXC::Status;
|
use PVE::API2::LXC::Status;
|
||||||
use PVE::API2::VZDump;
|
use PVE::API2::VZDump;
|
||||||
@ -65,6 +66,11 @@ __PACKAGE__->register_method ({
|
|||||||
path => 'qemu',
|
path => 'qemu',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
__PACKAGE__->register_method ({
|
||||||
|
subclass => "PVE::API2::Qemu::CPU",
|
||||||
|
path => 'cpu',
|
||||||
|
});
|
||||||
|
|
||||||
__PACKAGE__->register_method ({
|
__PACKAGE__->register_method ({
|
||||||
subclass => "PVE::API2::LXC",
|
subclass => "PVE::API2::LXC",
|
||||||
path => 'lxc',
|
path => 'lxc',
|
||||||
@ -241,6 +247,7 @@ __PACKAGE__->register_method ({
|
|||||||
{ name => 'certificates' },
|
{ name => 'certificates' },
|
||||||
{ name => 'config' },
|
{ name => 'config' },
|
||||||
{ name => 'hosts' },
|
{ name => 'hosts' },
|
||||||
|
{ name => 'cpu' },
|
||||||
];
|
];
|
||||||
|
|
||||||
push @$result, { name => 'sdn' } if $have_sdn;
|
push @$result, { name => 'sdn' } if $have_sdn;
|
||||||
|
Loading…
Reference in New Issue
Block a user