[pve-devel] [PATCH manager] add qdevice api method to cluster

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Apr 4 18:53:36 CEST 2019


On 4/4/19 3:43 PM, Oguz Bektas wrote:
> Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
> ---
>  PVE/API2/Cluster.pm | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/PVE/API2/Cluster.pm b/PVE/API2/Cluster.pm
> index c72a075b..81552847 100644
> --- a/PVE/API2/Cluster.pm
> +++ b/PVE/API2/Cluster.pm
> @@ -15,6 +15,7 @@ use PVE::API2::HAConfig;
>  use PVE::HA::Env::PVE2;
>  use PVE::HA::Config;
>  use PVE::API2::ClusterConfig;
> +use PVE::API2::QDevice;
>  use JSON;
>  use PVE::RESTHandler;
>  use PVE::RPCEnvironment;
> @@ -37,6 +38,11 @@ __PACKAGE__->register_method ({
>  });
>  
>  __PACKAGE__->register_method ({
> +    subclass => "PVE::API2::QDevice",
> +    path => 'qdevice',
> +});
> +
> +__PACKAGE__->register_method ({
>      subclass => "PVE::API2::Firewall::Cluster",  
>      path => 'firewall',
>  });
> @@ -101,6 +107,7 @@ __PACKAGE__->register_method ({
>  	    { name => 'nextid' },
>  	    { name => 'firewall' },
>  	    { name => 'config' },
> +	    { name => 'qdevice' },

why not in the /cluster/config subdir? then you could omit this patch at all
and contain this to the pve-cluster repo?

>  	    { name => 'acme' },
>  	    ];
>  
> 





More information about the pve-devel mailing list