plug new ClusterConfig API at /cluster/config

This commit is contained in:
Dietmar Maurer 2016-11-29 12:07:38 +01:00
parent 2b9e88286e
commit ac04fb558b

View File

@ -15,6 +15,7 @@ use PVE::API2Tools;
use PVE::API2::Backup; use PVE::API2::Backup;
use PVE::API2::HAConfig; use PVE::API2::HAConfig;
use PVE::HA::Config; use PVE::HA::Config;
use PVE::API2::ClusterConfig;
use JSON; use JSON;
use PVE::RESTHandler; use PVE::RESTHandler;
use PVE::RPCEnvironment; use PVE::RPCEnvironment;
@ -24,6 +25,11 @@ use PVE::API2::Firewall::Cluster;
use base qw(PVE::RESTHandler); use base qw(PVE::RESTHandler);
__PACKAGE__->register_method ({
subclass => "PVE::API2::ClusterConfig",
path => 'config',
});
__PACKAGE__->register_method ({ __PACKAGE__->register_method ({
subclass => "PVE::API2::Firewall::Cluster", subclass => "PVE::API2::Firewall::Cluster",
path => 'firewall', path => 'firewall',
@ -82,6 +88,7 @@ __PACKAGE__->register_method ({
{ name => 'status' }, { name => 'status' },
{ name => 'nextid' }, { name => 'nextid' },
{ name => 'firewall' }, { name => 'firewall' },
{ name => 'config' },
]; ];
return $result; return $result;